Page 1 of 1

Historic charts: Dew point data problems prior to v1.9.2 beta build

Posted: Wed 16 Dec 2020 9:00 am
by gerardwood
I'm having a problem with the creation of alldailytempdata.json - specifically, for max/min dew point data for dayfile.txt entries created prior to v1.9.2 beta (which is the point at which dew point data was added). For me, this changeover occurred on 2/2/2011.

I have 'fixed' my dayfile.txt to have the correct number of 'columns' (i.e. additional commas at the end of each data row), but this doesn't solve the problem.

What happens is this:
  • "maxDew" appears to have duplicated null entries for each day, but with no comma separating the two, creating invalid JSON. What is more likely to be happening is that the max and min values are both being output together:
    "maxDew":[[1280880000000,null][1280880000000,null],[1280966400000,null][1280966400000,null], ...]
  • "minDew" has no entries for corresponding each day, again creating invalid JSON:
    "minDew":[,,,,,,,,,,,,,,,,,, ...]
Removing these two rogue areas manually from alldailytempdata.json and reuploading 'solves' the problem, but I don't want to be doing this every morning!

I've attached my dayfile.txt and today's alldailytempdata.json (before the manual fix).

If there's a 'fix' I can make to my dayfile.txt (which doesn't involve inventing fake data), I'd be happy to hear about it!

Thanks,
Gerard.

Re: Historic charts: Dew point data problems prior to v1.9.2 beta build

Posted: Wed 16 Dec 2020 10:37 am
by mcrossley
Thanks for the report - it is a problem in Cumulus that I will fix for the next release.