NWS 2.5KM gridded forecast json file

119 views
Skip to first unread message

etji...@gmail.com

unread,
Sep 12, 2020, 12:37:54 PM9/12/20
to weewx-user
I've been doing a lot of reading about the upcoming loss of darksky and potential replacements. For those of us in the U.S., the NWS has a well formatted json file available via api that even has links to the icons needed for each day.  Has anyone tried using it with any of the skins yet?
 
I'm currently using the previous version of Belchertown with darksky, but will be switching to the newer version soon. I'd love to find a way to get the NWS forecast to display on the page instead of darksky or aeris.
 
You can use this link to get the 2.5km grid that your location (via lat/lon) falls in (put your own U.S. lat/lon pair):
 
And from that output, you can get the "bin" that has your weather, like this (in my case):
https://api.weather.gov/gridpoints/TBW/75,93/forecast 
 
I don't know how difficult this would be to add, but I do prefer the NWS forecasts over others for my neck of the woods.
 
Thanks for reading.
  

John Kline

unread,
Sep 12, 2020, 12:49:14 PM9/12/20
to weewx...@googlegroups.com
I wrote an extension that uses it:

There are one-hour and twelve-hour forecasts.  There are also alerts.  See it in action on the 7-Day, Hourly and Alerts tabs here:

I presume it would be straightforward to use it in Belchertown.  I do provide a sample skin to show how to incorporate it.  Alas, the extension is WeeWX 4/Python 3 only, so maybe not the right thing for the Belchertown author as I believe Py2 is supported.  Perhaps good for some pointers on how to use NWS forecasts and alerts.

On Sep 12, 2020, at 9:37 AM, etji...@gmail.com <etji...@gmail.com> wrote:

I've been doing a lot of reading about the upcoming loss of darksky and potential replacements. For those of us in the U.S., the NWS has a well formatted json file available via api that even has links to the icons needed for each day.  Has anyone tried using it with any of the skins yet?
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8a7802fe-8e11-43f6-9066-573ee542a519n%40googlegroups.com.

Ernest Jillson

unread,
Sep 12, 2020, 12:57:02 PM9/12/20
to weewx...@googlegroups.com
Thanks, John!  I will definitely take a look and see if I can incorporate it into my site with Belchertown skin.


p q

unread,
Sep 12, 2020, 1:55:30 PM9/12/20
to weewx...@googlegroups.com
This is really nice. I've been looking for an alternative since WU stopped working. I will implement it for my site. 

Thanks!



--
Peter Quinn
(415)794-2264

Garry A Lockyer

unread,
Sep 12, 2020, 3:10:09 PM9/12/20
to weewx...@googlegroups.com
I’m working on an extension to the Belchertown skin to access ATOM/RSS feeds from NOAA METAR (aviation current conditions and forecasts), Environment Canada (current conditions, forecasts, alerts, marine alerts), Drive BC, Alberta 511 and Washington State road conditions, NOAA Storm Prediction Center (weather alerts and marine alerts) and NOAA Hurricane Center.  All the above feeds work but I need to clean the code up.

I will be adding NOAA Aviation Weather Center Text Data Service METARS (in addition to current virtually undocumented METAR method) and will look at adding the forecast source mentioned in the string.

I can make the current code available to anyone interest later today.

Regards,

Garry Lockyer
E: Ga...@Lockyer.ca


On Sep 12, 2020, at 10:56, Ernest Jillson <etji...@gmail.com> wrote:



Ernest Jillson

unread,
Sep 12, 2020, 8:49:27 PM9/12/20
to weewx...@googlegroups.com
Very interested, Garry. Thanks!


Garry A Lockyer

unread,
Sep 19, 2020, 6:33:53 PM9/19/20
to weewx...@googlegroups.com
I have not forgotton Ernest or others that may be interested in my Belchertown Wx Feeds extension.  I have the main bits of the NWS forecast code done!  Hope to release via GitHub this week.

If you really, really want the extension earlier, let me know by private email.


Regards,

Garry Lockyer
E: Ga...@Lockyer.ca


On Sep 12, 2020, at 18:49, Ernest Jillson <etji...@gmail.com> wrote:



Ernest Jillson

unread,
Sep 21, 2020, 9:58:24 PM9/21/20
to weewx...@googlegroups.com
I'm in no hurry. I still have to convert to weewx 4 and latest Belchertown.  Looking forward to it when it's ready.
 
Ernie

Reply all
Reply to author
Forward
0 new messages