Feature request for forecast extension

110 views
Skip to first unread message

Michael Bruski

unread,
Sep 26, 2020, 11:34:25 AM9/26/20
to weewx-user
I'm a newbie to weewx and have recently added the forecast extension to two weewx systems I am operating at two different locations.   The initial setup and test was done at my home location.   I changed the LID/FOID for location 2 after deploying it.  While checking the syslog for the remote system, I found the following messages from the forecast extension:

Sep 26 11:10:18 wstn weewx[18561] INFO user.forecast: NWSThread: NWS: downloading forecast from 'http://forecast.weather.gov/product.php?site=NWS&product=PFM&format=txt&issuedby=PHI'
Sep 26 11:11:58 wstn weewx[18561] ERROR user.forecast: NWSThread: NWS: no PFM found for MDZ012 in forecast from PHI

I did some checking through the NWS EMWIN messages on GOES16 to see what was what and see that MDZ012 is not included in the Holy Springs PFM, but, it is provided in the AFM.  Would it be possible to add a key/tag to weewx.conf to specify the product where my LID can be found or maybe change user.forecast to check both PFM/AFM products for the specified LID?

Thanks for this great extension and weewx!

Mike/AJ9X

John Kline

unread,
Sep 26, 2020, 5:48:36 PM9/26/20
to weewx...@googlegroups.com
What town are you in?  Zip code?

From where did you get the forecast extension?

What version of WeeWX are you running?

On Sep 26, 2020, at 8:34 AM, Michael Bruski <michael...@gmail.com> wrote:


--
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/b6b535da-6144-4a81-8a20-a2ac930e68adn%40googlegroups.com.

Michael Bruski

unread,
Sep 26, 2020, 7:40:28 PM9/26/20
to weewx-user
Hi John,
 
I'm trying to run my remote on a RPi4B near Galena, MD 21635.   The MDZ012 LID covers Kent county, MD where Galena is located.

I'm running WeeWX v4.1.1 and weewx-forecast-3.4.0b10.zip (after discovering that 3.4.0B1 wouldn't work).

As a work around, I tweaked the default URLs for NWS in /usr/share/weewx/user/forecast.py to substitute 'AFM' for 'PFM' to get the Area Forecast Matrix and that is working fine.  My LID is found
and I get the local forecast I'm looking for.   However, I may do a couple more deploys and it would be nice to have the ability to make this selection via the weewx.conf file instead of tweaking the source code.

I'm considering doing the same for my home location in Carroll county MD because I sometimes see some not so insignificant differences between the MDZ005 Area Forecast Matrix and the MDZ013 Point Forecast Matrix possibly due to 850 ft difference in elevation.  In Maryland it seems the Area Forecast Matrix provides a better granularity (and better forecast) than the Point Forecast Matrix which has fewer locations and covers larger areas.

Mike/AJ9X

John Kline

unread,
Sep 26, 2020, 11:24:05 PM9/26/20
to weewx...@googlegroups.com

I don’t mind adding it; but have you tried specifying the URL in weewx.conf:

lid=XXXXXX
foid=XXX

If you only changed PFM to AFM, the above should work.

Let me know.

Cheers,
John

On Sep 26, 2020, at 4:40 PM, Michael Bruski <michael...@gmail.com> wrote:



Michael Bruski

unread,
Sep 27, 2020, 9:28:06 AM9/27/20
to weewx...@googlegroups.com
Thanks for that hint John.  It does the trick.  I guess I should have taken a second look at the docs.

Mike

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/MacwBYfTheY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0F4DD4F4-0F99-40F2-83D2-46412C23E385%40johnkline.com.
Reply all
Reply to author
Forward
0 new messages