Oops my bad I upgraded to forecast-3.2.12.
On 02/09/17 16:37, Pete Geenhuizen wrote:
Matt,
For the past few days I've been getting an error downloading forecasts
from NWS. I just upgraded to forecast 0.40 to see if that solved the
problem but alas it doesn't.
Here's a snippet from the log which hopefully is sufficient, if not
let me know what else you need.
Feb 9 16:30:16 host weewx[562]: forecast: NWSThread: NWS: downloading
forecast from
'http://forecast.weather.gov/product.php?site=NWS&product=PFM&format=txt&issuedby=RAH'
Feb 9 16:30:16 host weewx[562]: forecast: NWSThread: NWS: forecast
failure: local variable 'mode' referenced before assignment
Feb 9 16:30:16 host weewx[562]: Traceback (most recent call last):
Feb 9 16:30:16 host weewx[562]: File
"/usr/share/weewx/user/forecast.py", line 1177, in do_forecast
Feb 9 16:30:16 host weewx[562]: self.config_dict['DataBindings'],
Feb 9 16:30:16 host weewx[562]: File
"/usr/share/weewx/user/forecast.py", line 1679, in get_forecast
Feb 9 16:30:16 host weewx[562]: logerr('%s: no PFM found for %s
in forecast from %s' %
Feb 9 16:30:16 host weewx[562]: File
"/usr/share/weewx/user/forecast.py", line 1790, in NWSParseForecast
Feb 9 16:30:16 host weewx[562]: mode = 3
Feb 9 16:30:16 host weewx[562]: UnboundLocalError: local variable
'mode' referenced before assignment
Thanks
Pete
--
Unencumbered by the thought process.
-- Click and Clack the Tappet brothers
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.