Forecast stopped working

瀏覽次數:105 次
跳到第一則未讀訊息

MikeH

未讀,
2022年8月5日 上午9:57:392022/8/5
收件者: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

未讀,
2022年8月5日 上午11:45:212022/8/5
收件者: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

未讀,
2022年8月5日 中午12:08:102022/8/5
收件者: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

未讀,
2022年8月5日 中午12:30:082022/8/5
收件者: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

未讀,
2022年8月5日 中午12:44:482022/8/5
收件者: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

未讀,
2022年8月5日 中午12:50:372022/8/5
收件者: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

未讀,
2022年8月5日 下午1:04:102022/8/5
收件者:weewx-user
Ok I'll try to get the latest version installed.

MikeH

未讀,
2022年8月5日 下午4:04:502022/8/5
收件者: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

未讀,
2022年8月5日 下午6:07:092022/8/5
收件者: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

未讀,
2022年8月5日 晚上7:01:292022/8/5
收件者: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

未讀,
2022年8月5日 晚上7:37:362022/8/5
收件者: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

未讀,
2022年8月5日 晚上8:15:472022/8/5
收件者:'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

未讀,
2022年8月5日 晚上10:19:552022/8/5
收件者: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

未讀,
2022年8月6日 凌晨12:21:152022/8/6
收件者:'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.
回覆所有人
回覆作者
轉寄
0 則新訊息