New forecasting service using NDFD

79 views
Skip to first unread message

T Reid

unread,
Nov 9, 2019, 5:36:28 PM11/9/19
to weewx-user
I need help implementing a new forecasting service on weewx using the NWS National Digital Forecast Database (https://graphical.weather.gov/xml/).  This should allow for much more precise local forecasting than the existing NWS forecast module in weewx.  I wrote the attached class and pasted it into forecast.py.  But cannot figure out how to get forecast.py to actually run forecasts using this class.  Any suggestions?  Thanks.

ndfd_forecast.py

p q

unread,
Nov 9, 2019, 6:07:10 PM11/9/19
to weewx...@googlegroups.com
Hi,

I've implemented the NWS and WU forecasts for my site, but otherwise haven't really looked into the guts of the forecast module. With WU being no longer useful, I'm interested in getting this to work. I'll install it on my dev VM and see what I can figure out. It will be a day or two before I can get to it.

In the meantime, I've just been reading the comments in forecast.py -

Configuration

   To enable forecasting, add a [Forecast] section to weewx.conf, add a
   section to [Databases] to indicate where forecast data should be stored,
   then append user.forecast.XXXForecast to the service list for each
   forecasting method that should be enabled.

Have you tried this?

On Sat, Nov 9, 2019 at 2:36 PM T Reid <trgo...@hoghill.net> wrote:
I need help implementing a new forecasting service on weewx using the NWS National Digital Forecast Database (https://graphical.weather.gov/xml/).  This should allow for much more precise local forecasting than the existing NWS forecast module in weewx.  I wrote the attached class and pasted it into forecast.py.  But cannot figure out how to get forecast.py to actually run forecasts using this class.  Any suggestions?  Thanks.

--
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/c924906c-9acd-4e0a-a49c-767a9c514e1b%40googlegroups.com.


--
Peter Quinn
(415)794-2264

p q

unread,
Nov 9, 2019, 6:10:20 PM11/9/19
to weewx...@googlegroups.com
Oh, and did you notice this line:

[Engine]
    [[Services]]
        # append only the forecasting service(s) that you need
        archive_services = ... , user.forecast.XTideForecast, user.forecast.ZambrettiForecast, user.forecast.NWSForecast, user.forecast.WUForecast, user.forecast.OWMForecast, user.forecast.UKMOForecast, user.forecast.AerisForecast, user.forecast.WWOForecast, user.forecast.DSForecast

You might add user.forecast.NDFDforecast to it


--
Peter Quinn
(415)794-2264

T Reid

unread,
Nov 9, 2019, 6:58:18 PM11/9/19
to weewx-user
I did add it to the Forecast section in weewx.conf, and to the Services list, but haven't tried the Databases section.  I will try that and report back.

T Reid

unread,
Nov 9, 2019, 7:01:16 PM11/9/19
to weewx-user
No luck.  The Databases section has a single entry for all forecast data.  So nothing to add there.
Reply all
Reply to author
Forward
0 new messages