Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Web tag error

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Web tag error

Post by PaulMy »

Running MX b3048 with WifiLogger

Recently I have been getting ongoing ***web tag error - see MXDiags file*** messages in main start up DOS screen.
Data seems ok

The MXDiags has at most 5-min update interval.
2019-04-09 09:25:00.862 Writing today.ini, LastUpdateTime = 09/04/2019 9:25:00 AM raindaystart = 134.6 rain counter = 135
Web tag error
Exception: i=23574 len=29498
inputText.Length=29498
token=<#RecentRainToday h=20 m=>
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at CumulusMX.Cumulus.TokenParserOnToken(String strToken, String& strReplacement) in C:\Code\CumulusMX\CumulusMX\Cumulus.cs:line 2174
at CumulusMX.TokenParser.Parse3() in C:\Code\CumulusMX\CumulusMX\TokenParser.cs:line 228
2019-04-09 09:25:01.331 Data 17: 4C-4F-4F-3C-00-8F-01-0F-74-FE-02-20-B5-01-03-06-68-01-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-FF-48-FF-FF-FF-FF-FF-FF-FF-00-00-05-80-00-02-00-93-44-02-00-33-00-A3-02-0A-00-46-00-95-01-FF-FF-FF-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-09-03-08-78-8E-02-D1-07-0A-0D-FB-BF
I don't have a C:\Code\CumulusMX folder where I can look for C:\Code\CumulusMX\CumulusMX\TokenParser.cs:line 228

Most recent restart MXDiags attached.

Any suggestions?

Enjoy,
Paul
You do not have the required permissions to view the files attached to this post.
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Web tag error

Post by mcrossley »

Paul, your web token is missing the value for the "m=" parameter.

It specifies an hour value, but no minute.

<#RecentRainToday h=20 m=>
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Web tag error

Post by PaulMy »

Thanks Mark. I found the error.
It is an old script from Acer1 that I added 5 years ago in my Cumulus1 uploads and the error never was highlighted in Cumulus1 http://www.komokaweather.com/weather/obe.htm

I added the script to my CumulusMX uploads for testing just a few days ago http://www.komokaweather.com/cumulusmx/obe.htm
CumulusMX has been running so well I didn't even check on it for several days until yesterday that I saw the error.
I also found similar omission in 4 other places in the original script.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Web tag error

Post by mcrossley »

If you don't want minutes, I think you can omit the parameter and just use the "h=20"
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Web tag error

Post by PaulMy »

Thanks Mark,
The original script provided the conditions at 30 minute interval and I wanted to experiment with some more frequent interval, using my CumulusMX test site, so added every 5 minutes for the first half hour. But that is likely not possible as my Cumulus log files are at 10 min interval. I also forgot about the time code differences between Cumulus 1 and CumulusMX so will need to look at that.
Cumulus 1 http://www.komokaweather.com/weather/obe.htm (shows date and time)
CumulusMX http://www.komokaweather.com/cumulusmx/obe.htm (shows time only) and haven't done anything yet with the 48, 72, 96 and 120 hour pages)

I will continue on...

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
Post Reply