Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.0 (build 4022) - 11 May 2024

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

Legacy Cumulus 1 release 1.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 <#MonthTempAvg>

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. 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
Dador
Posts: 228
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Web tag error <#MonthTempAvg>

Post by Dador »

Hi,

Today is the first day of the new month and CMXv4 reports a webtag error for <#MonthTempAvg>. The error will probably disappear tomorrow, but today the console is bombarded with an error:

Code: Select all

*** web tag error in file 'C:\CumulusMX\web\websitedataT.json' - see MXdiags file ***
MXDiags seys:

Code: Select all

2024-05-01 07:56:51.459 Web tag error in file: C:\CumulusMX\web\websitedataT.json
2024-05-01 07:56:51.459 token=<#MonthTempAvg>
2024-05-01 07:56:51.459 Position in file (character)=6466
2024-05-01 07:56:51.459 Exception: i=6447 len=35402
2024-05-01 07:56:51.459 inputText.Length=35402
2024-05-01 07:56:51.459 System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.Average[TSource,TSelector,TAccumulator,TResult](IEnumerable`1 source, Func`2 selector)
   at System.Linq.Enumerable.Average[TSource](IEnumerable`1 source, Func`2 selector)
   at CumulusMX.WebTags.TagMonthTempAvg(Dictionary`2 tagParams)
   at CumulusMX.WebTags.GetWebTagText(String tagString, Dictionary`2 tagParams)
   at CumulusMX.Cumulus.TokenParserOnToken(String strToken, String& strReplacement)
   at CumulusMX.TokenParser.Parse3()
2024-05-01 07:56:51.459 ** The output file will contain an error message starting "**Web tag error"
User avatar
mcrossley
Posts: 12852
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 <#MonthTempAvg>

Post by mcrossley »

Oh, dear, fixed for the next build, meanwhile just remove the line from the websitedataT.json file for today and put it back tomorrow.
Post Reply