Page 1 of 1
nwsForecast Block Error
Posted: Mon Feb 05, 2018 11:52 am
by enephler
Hello... There seems to be an issue with the nwsForecast block forecast temperatures, they are 12 hours off.

- Meteotemplate NWS Error.jpg (210.96 KiB) Viewed 6013 times

- NWS Correct.jpg (180.99 KiB) Viewed 6013 times
Re: nwsForecast Block Error
Posted: Mon Feb 05, 2018 12:22 pm
by Jachym
Hi,
the problem is in the fact that the block uses HTML scraping and given how often NWS changes their website it is pointless trying to fix this.
What I need is some machine readable format - JSON, XML etc. so if anyone knows about something it would be great. Otherwise it is just fixing something that is likely to break in couple of weeks again
Re: nwsForecast Block Error
Posted: Mon Feb 05, 2018 12:27 pm
by enephler
Not sure if this is what you're looking for, but it's NWS's XML link from the same forecast page...
https://forecast.weather.gov/MapClick.p ... tType=dwml
P.S. The text/detailed forecast under the "More" link is correct, just not the icon forecast.
Re: nwsForecast Block Error
Posted: Mon Feb 05, 2018 12:46 pm
by nineback
Mine is working fine here.

- Screenshot 2018-02-05 06.43.49.png (117.88 KiB) Viewed 6004 times
Re: nwsForecast Block Error
Posted: Mon Feb 05, 2018 12:49 pm
by enephler
Are you using "station" or coordinates in the block setup?
I'm using station.
Re: nwsForecast Block Error
Posted: Mon Feb 05, 2018 12:53 pm
by nineback
Station.