Forecast stopped working

77 views
Skip to first unread message

MikeH

unread,
Aug 5, 2022, 9:57:39 AMAug 5
to weewx-user
Around July 1 my forecast from NWS stopped working. I tried reinstalling and still cannot get data. Logs show it running and generating pages but they all show Now forecast data for NWS. I am using lid=TXZ118 foid=FWD.

Not sure where to look if I am actually getting data from nws or not.

Files and logs attached.

Thanks
forecast.txt

John Kline

unread,
Aug 5, 2022, 11:45:21 AMAug 5
to weewx...@googlegroups.com
Your log snippet doesn’t show any attempts to download the forecast.  

Would you look at your logs for entries of the form below (of course, not exactly the same as this is for my forecast) and send them?

INFO user.forecast: NWSThread: NWS: downloading forecast from 'http://forecast.weather.gov/product.php?site=NWS&product=PFM&format=txt&issuedby=MTR'

On Aug 5, 2022, at 6:57 AM, MikeH <mi...@dblaace.net> wrote:

Around July 1 my forecast from NWS stopped working. I tried reinstalling and still cannot get data. Logs show it running and generating pages but they all show Now forecast data for NWS. I am using lid=TXZ118 foid=FWD.

Not sure where to look if I am actually getting data from nws or not.

Files and logs attached.

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/b95d50a9-082c-40e9-9ec8-925748304776n%40googlegroups.com.
forecast.txt

MikeH

unread,
Aug 5, 2022, 12:08:10 PMAug 5
to weewx-user
It's not in the log. What triggers it?

Only the report generation.
ug  5 11:00:49 PIHOLE weewx[11966] INFO weewx.cheetahgenerator: Generated 12 files for report forecast in 2.68 seconds
Aug  5 11:00:49 PIHOLE weewx[11966] INFO weewx.reportengine: Copied 89 files to /var/www/html/weewx/forecast

MikeH

unread,
Aug 5, 2022, 12:30:08 PMAug 5
to weewx-user
Also this sorry.

Aug  5 11:15:48 PIHOLE weewx[12658] DEBUG weewx.engine: Loading service user.forecast.NWSForecast
Aug  5 11:15:48 PIHOLE /weewxd: forecast: MainThread: NWS: forecast version 3.4.0b1
Aug  5 11:15:48 PIHOLE /weewxd: forecast: MainThread: NWS: last forecast issued 2022-07-01 05:07:00 CDT (1656670020), requested 2022-07-01 09:45:32 CDT (1656686732)
Aug  5 11:15:48 PIHOLE /weewxd: forecast: MainThread: NWS: interval=10800 max_age=604800 lid=TXZ118 foid=FWD
Aug  5 11:15:48 PIHOLE weewx[12658] DEBUG weewx.engine: Finished loading service user.forecast.NWSForecast

On Friday, August 5, 2022 at 10:45:21 AM UTC-5 jo...@johnkline.com wrote:

John Kline

unread,
Aug 5, 2022, 12:44:48 PMAug 5
to weewx...@googlegroups.com
It’s done every three hours by default (10800 seconds).  You can hurry it along by temporarily adding a shorter interval of 5 minutes (300 seconds) in weewx.conf and restarting weewx:

[Forecast]
    data_binding = forecast_binding
    [[NWS]]
        lid = TXZ118
        foid = FWD
        interval = 300

BTW, I just tried this and had no problem downloading your forecast.

On Aug 5, 2022, at 9:30 AM, MikeH <mi...@dblaace.net> wrote:

Also this sorry.

John Kline

unread,
Aug 5, 2022, 12:50:37 PMAug 5
to weewx...@googlegroups.com

One last thing, you are using a rather old version of forecast.  Using an up-to-date version will let us eliminate the version as the cause.

On Aug 5, 2022, at 9:44 AM, John Kline <jo...@johnkline.com> wrote:



MikeH

unread,
Aug 5, 2022, 1:04:10 PMAug 5
to weewx-user
Ok I'll try to get the latest version installed.

MikeH

unread,
Aug 5, 2022, 4:04:50 PMAug 5
to weewx-user
What is the latest version and where is it?  All I see on gethub is 3.4.0b1

On Friday, August 5, 2022 at 11:50:37 AM UTC-5 jo...@johnkline.com wrote:


an oldman

unread,
Aug 5, 2022, 6:07:09 PMAug 5
to weewx-user
you could try
PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/forecast.py --method=NWS --foid=FWD --lid=TXZ118
to see if that will works.

MikeH

unread,
Aug 5, 2022, 7:01:29 PMAug 5
to weewx-user
PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/forecast.py --method=NWS --foid=FWD --lid=TXZ118

Returns

Traceback (most recent call last):
  File "/usr/share/weewx/user/forecast.py", line 5132, in <module>
    main()
  File "/usr/share/weewx/user/forecast.py", line 5070, in main
    lines = NWSExtractLocation(fcast, options.lid)
  File "/usr/share/weewx/user/forecast.py", line 1807, in NWSExtractLocation
    if line.startswith(lid):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

John Kline

unread,
Aug 5, 2022, 7:37:36 PMAug 5
to weewx...@googlegroups.com

Hmmm.  Did you upgrade WeeWX from 3.x to 4.x?

Rather than going back and forth with questions, please follow the instructions here:
so that we can see what versions of everything you are using.

On Aug 5, 2022, at 4:01 PM, MikeH <mi...@dblaace.net> wrote:



Mike Hutchins

unread,
Aug 5, 2022, 8:15:47 PMAug 5
to 'John Kline' via weewx-user

I did not upgrade. I installed it in January and took a few days to get it going. Everything was running until July 1. I do not believe I changed anything but possible. It's running on a pi 3+ along with PIHOLE.

mylog attached.

Thanks

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/jB8tkZw0FaY/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/F03E2FE7-453B-4A19-8D5F-9AD8C55643B6%40johnkline.com.
mylog.txt

John Kline

unread,
Aug 5, 2022, 10:19:55 PMAug 5
to weewx...@googlegroups.com

You are running a version of the forecast extension that is incompatible with with WeeWX 4/Python 3.

Please install this version:

On Aug 5, 2022, at 5:15 PM, Mike Hutchins <mi...@dblaace.net> wrote:


mylog.txt

Mike Hutchins

unread,
Aug 6, 2022, 12:21:15 AMAug 6
to 'John Kline' via weewx-user

That did it! I must have had 3.4.0b11 and re installed 3.4.0b10 when I tried to fix it. Not sure what happened on July 1st though.

Thanks!



--
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/jB8tkZw0FaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages