nwsForecast Block Error

Post Reply
enephler
Observer
Observer
Posts: 19
Joined: Mon Sep 04, 2017 9:49 pm
Location: L'Anse, MI USA
Station model: Davis Pro2
Software: Meteobridge
Contact:

nwsForecast Block Error

Post by enephler » Mon Feb 05, 2018 11:52 am

Hello... There seems to be an issue with the nwsForecast block forecast temperatures, they are 12 hours off.
Meteotemplate NWS Error.jpg
Meteotemplate NWS Error.jpg (210.96 KiB) Viewed 6012 times
NWS Correct.jpg
NWS Correct.jpg (180.99 KiB) Viewed 6012 times

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: nwsForecast Block Error

Post by Jachym » Mon Feb 05, 2018 12:22 pm

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

enephler
Observer
Observer
Posts: 19
Joined: Mon Sep 04, 2017 9:49 pm
Location: L'Anse, MI USA
Station model: Davis Pro2
Software: Meteobridge
Contact:

Re: nwsForecast Block Error

Post by enephler » Mon Feb 05, 2018 12:27 pm

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.

nineback
Advisor
Advisor
Posts: 73
Joined: Thu Aug 24, 2017 11:12 am
Location: Alabama
Station model: Davis Pro2
Software: WeeWX
Contact:

Re: nwsForecast Block Error

Post by nineback » Mon Feb 05, 2018 12:46 pm

Mine is working fine here.
Screenshot 2018-02-05 06.43.49.png
Screenshot 2018-02-05 06.43.49.png (117.88 KiB) Viewed 6003 times

enephler
Observer
Observer
Posts: 19
Joined: Mon Sep 04, 2017 9:49 pm
Location: L'Anse, MI USA
Station model: Davis Pro2
Software: Meteobridge
Contact:

Re: nwsForecast Block Error

Post by enephler » Mon Feb 05, 2018 12:49 pm

Are you using "station" or coordinates in the block setup?
I'm using station.

nineback
Advisor
Advisor
Posts: 73
Joined: Thu Aug 24, 2017 11:12 am
Location: Alabama
Station model: Davis Pro2
Software: WeeWX
Contact:

Re: nwsForecast Block Error

Post by nineback » Mon Feb 05, 2018 12:53 pm

Station.

Post Reply