I found time to scan every web tag produced by MX (using the script at
viewtopic.php?p=156602#p156602, and I cannot spot any more initialisation figures, but a proper check will have to wait until 1 January!
BCJKiwi wrote: ↑Sat 05 Mar 2022 8:18 pm
The default MX website shows
Longest Dry Period 6 days to 05 March
Longest Wet Period -9999 days to 01 March
mcrossley wrote: ↑Wed 30 Mar 2022 1:40 pm
OK, I have fixed the "longest dry/wet" count web tags for the next release.
Thinking about these tags, in Brian's example, the last day of his previous month was dry, and so were the first five days of March. This is why the web tag reports on 5 March, there have been 6 dry days.
There have been no wet days in the same 6 days, so surely the tag should report zero days as the longest wet period. Your top tens web page has a query to count longest dry/wet period and that will output zero IIRC in the same circumstances.
freddie wrote: ↑Sat 05 Mar 2022 9:51 pm
Looks like the "undefined" value. As you have had no rain this month then the "longest wet period" is undefined. In an ideal world they would be null values (or perhaps 0).
Freddie says no rain means the period is undefined.
Is no days really an undefined period? I have not yet caught Covid, although I know some people have caught it more than once, does that mean I should be telling people that the longest number of days I have been ill with Covid (reporting for this month, this year, and all-time) is undefined?
I would see "--" as being used when there are no rain measurements due to a missing sensor, just like
<#AirLinkAqiPm10_1hrIn > reports "--" as I have no airlink sensor.
I understand you have already coded it to report "--", but my illness example, shows zero would be better.
mcrossley wrote: ↑Wed 30 Mar 2022 1:40 pm
The #chillhourstoday I do not understand, as neither the ChillHours and YestChillHours variables (which can both be used to determine the today value) are ever initialised to the "null" 9999 values, always to -1 or 0. If the value is still -1 the tag outputs "n/a"
There is a definite bug in your code.
I find the naming of these new Chill Hours tags confuses my brain. It would be better if names included words like "Cumulative" and "Increment", then it would be clear what they are supposed to be reporting.
There are 4 tags now, this is a recent snapshot of their contents for me
<#chillhours> reports "1692.2"
<#chillhoursToday> reports "1692.2"
<#chillhoursYest> reports "4.0"
<#Ychillhours> reports "1692.2";
So far today has been mild, therefore the increment today should be reporting as zero, this reporting of the cumulative number in error (when there are no chill hours in the day) means it can report 99 or 999, or any other number. It is just a coincidence that it was reporting the number you use for initilisation when I made previous check for you.
When there are some chill hours in the day, it shows a number between 0.1 and 24.0. I prefer 2 decimal places, but you provide a decimal place output modification parameter, so I use that.
When Steve introduced chill hours, there was quite a bit of interest, and for those still using the legacy software there probably still is, as the cumulative figure shows both on the "this year" screen, and the "this year" web page.
No chill hours figure appears in any MX interface page nor any .json file. So it is possible I am the only gardener still appreciating this output. Perhaps other people look at alldailydegdaydata.json?