ktrue / CU-HWS

Home Weather Station website template for Cumulus (WeeWX, WeatherCat too)
Other
23 stars 13 forks source link

Graphique #110

Closed neomanu16 closed 5 years ago

neomanu16 commented 5 years ago

HI,

there are always worries with WU graphics often have problems, as they are stuck since at 4am ... BestRegards, FireShot Capture 077 - Station Météo de   Vars, CH, FR - www meteo16-vars com

ktrue commented 5 years ago

I think I fixed this issue with the latest commit (updated jsondata/wuupdate.php) to use a different URL for the today data from WU/TWC .. also enabled decimal precision in the returned data.

neomanu16 commented 5 years ago

HI it's okay, Ken no idea to make an annual chart to see with records ... it would be top there is missing on our version Cumulus ..

ktrue commented 5 years ago

Unfortunately, the WU/TWC API does not offer a Year call, only a Month call (max of 30 days data), unlike the old WU API. It's a bit complicated to have the year's data fetched automatically, cached by month, then rolled-up into a 'this year' return for the graph. It's the reason I omitted it from the CU-HWS when the old WU API was discontinued. So, for now, we have graph data that can be presented with one API call for 'today' and one API call for 'this month', and the graphs reflect that.