Page 1 of 1

Month rain reporting incorrectly

Posted: Mon 10 Jun 2019 12:10 pm
by Chapel
I was looking at the months rainfall report for June today and noticed it is not reporting correctly. So I checked WU which I believe is the source of data for the chart and it is completely different, also it is showing as the last 7 days and not the month.

It looks to be applying a scaling factor of 10x. Thoughts anyone?
WU Rain June.PNG
Station June.PNG

Re: Month rain reporting incorrectly

Posted: Mon 10 Jun 2019 12:54 pm
by PaulMy
I have just checked mine and for the 3 days of rain in June it shows the same 10x factor - June 1 shows 111.2 mm vs actual 11.2 mm. Similar for June 2 at 17.8 mm vs actual 1.8 and June 5 15.2 mm vs actual 1.6.

Hopefully Ken can have a look when he is settled back home.

Enjoy,
Paul

Re: Month rain reporting incorrectly

Posted: Mon 10 Jun 2019 2:28 pm
by Chapel
Thanks Paul, I am pleased it is not just me!

Re: Month rain reporting incorrectly

Posted: Mon 10 Jun 2019 3:45 pm
by saratogaWX
I've done an update to CU-HWS to replace chartswu/conversion.php and settings.php to remove the scale factors from metric.

Previously, the WU CSV had reported the rain data in CM so a 10x scaling was done to display MM. The new WU/TWC API returns the data in mm (despite the docs saying CM), so that's why it appears 10x off.

Update those two files, and the graphs should appear normally scaled again with the new JSON data. https://github.com/CU-HWS

Re: Month rain reporting incorrectly

Posted: Mon 10 Jun 2019 4:21 pm
by Chapel
That works for me, many thanks for such a prompt response.

David