Hmmm. Did you upgrade WeeWX from 3.x to 4.x? Rather than going back and forth with questions, please follow the instructions here: https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user so that we can see what versions of everything you are using.
> On Aug 5, 2022, at 4:01 PM, MikeH <[email protected]> wrote: > > 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 > On Friday, August 5, 2022 at 5:07:09 PM UTC-5 an oldman wrote: >> 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. >> >> On Friday, August 5, 2022 at 3:04:50 PM UTC-5 MikeH wrote: >>> 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 [email protected] wrote: >>>> >>> >>>> 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 <[email protected]> wrote: >>>>> >>> >>>>> 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 <[email protected]> wrote: >>>>>> 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 [email protected] wrote: >>>>>>> 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 <[email protected]> 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 [email protected]. >>>>>>>> To view this discussion on the web visit >>>>>>>> https://groups.google.com/d/msgid/weewx-user/b95d50a9-082c-40e9-9ec8-925748304776n%40googlegroups.com. >>>>>> >>>>>> -- >>>>>> 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 [email protected]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/weewx-user/d4d6f56e-8b14-4765-a4dc-9368b49282fan%40googlegroups.com. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/1f83d9e3-7263-4973-b887-159e71d20867n%40googlegroups.com. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/F03E2FE7-453B-4A19-8D5F-9AD8C55643B6%40johnkline.com.
