Watches and Warnings NWS text only?

54 views
Skip to first unread message

James Greiner

unread,
Aug 8, 2018, 11:39:58 AM8/8/18
to weewx-user
Anybody know how to get a text only version of current NWS watches and warnings? ... Would like to include that in my webpage... It would be the text portion similar to shown in the NWS page at this link: https://forecast.weather.gov/showsigwx.php?warnzone=MIZ067&warncounty=MIC065&firewxzone=MIZ067&local_place1=Lansing%20MI&product1=Hazardous+Weather+Outlook&lat=42.7091&lon=-84.554 ... It does not need to come direct from NWS, and a similar feed that aggregates it would work as well.

I was previously able to retrieve that text only info from WUnderground, but with their $$$ changes can no longer do so... (thanks alot WUnderground for me having provided 20+ years of data for you to re-sell :( )

Thanks,
Jim

Pat

unread,
Aug 8, 2018, 2:38:45 PM8/8/18
to weewx-user
I haven't been able to find anything other than the API from here.com which is free for up to 250,000 requests a month it looks like. So depending on your usage, you'd have to download and cache the results then have crontab fetch an update every hour or something


If you want truly free, I was able to use Python requests and lxml to scrape that page you provided and extract the title and text portion pretty painlessly. It's not ideal... screen scraping is a questionable practice, but it works in this scenario. You'd probably want to do the same thing where you cache it for an hour, then fetch another result and save locally. 

If you don't cache, and you're using this in a weewx skin with a Search List Extension or something, then weewx will fetch an update every archive interval (5 minutes). So you'd run out of API calls pretty quick... 

James Greiner

unread,
Aug 9, 2018, 9:23:43 AM8/9/18
to weewx-user
Thanks Pat... Will give your suggestions a try this weekend.

Jim

Andy

unread,
Aug 9, 2018, 6:08:11 PM8/9/18
to weewx-user
My WU free key is still working but would like to move away from WU. I just got a free key at Aeris, but have not tried it. I don't think it expires. Alerts are documented here and Aeris is tied to PWS

Pat

unread,
Aug 10, 2018, 11:27:40 AM8/10/18
to weewx-user
My WU key is still working too, but sounds like they're going to shut it down in the future. I transferred all my forecast data to DarkSky API, but they don't have the watches, warnings and advisories. The here.com site does and I saw Aeris does too. Haven't tried either one yet. I'll have to add that onto the Python project pile :)

James Greiner

unread,
Aug 10, 2018, 11:55:23 AM8/10/18
to weewx...@googlegroups.com
Thanks guys... You've given me some items to try... 

Jim

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/BMjY9qrauMM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages