I had another crash of the HP1000 driver yesterday. I made a change which 
will hopefully fix it in the future which was to add
>
> network_retry_count = self.max_retry
>
before the try enclosing line 324. I guess my setup is good for testing 
error conditions! I committed to my HP1000 repo. I still need to remove the 
superfluous login() calls from my copy though.

The exception details were

> HP1000: Timed out too many times

Apr 22 16:36:07 AllenWeather weewx[6000]: engine: Main loop exiting. 
> Shutting engine down.

Apr 22 16:36:07 AllenWeather weewx[6000]: engine: Shutting down StdReport 
> thread

Apr 22 16:36:07 AllenWeather weewx[6000]: engine: StdReport thread has been 
> terminated

Apr 22 16:36:07 AllenWeather weewx[6000]: restx: Shut down CWOP thread.

Apr 22 16:36:07 AllenWeather weewx[6000]: restx: Shut down StationRegistry 
> thread.

Apr 22 16:36:07 AllenWeather weewx[6000]: engine: Caught unrecoverable 
> exception in engine:

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****  local variable 
> 'network_retry_count' referenced before assignment

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****  Traceback (most recent 
> call last):

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 890, in main

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****      engine.run()

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 188, in run

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****      for packet in 
> self.console.genLoopPackets():

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****    File 
> "/usr/share/weewx/user/HP1000.py", line 497, in genLoopPackets

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****     
>  self.connectToWeatherStation()

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****    File 
> "/usr/share/weewx/user/HP1000.py", line 324, in connectToWeatherStation

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****      network_retry_count 
> -= 1

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****  UnboundLocalError: 
> local variable 'network_retry_count' referenced before assignment

Apr 22 16:36:07 AllenWeather weewx[6000]:     ****  Exiting.

 

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to