[weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
Well it looks as though the HP1001 driver had a problem with data received f4rom the station. I suspect you need to run with debug set in order to determine exactly what is going on inside the driver to cause the error to be thrown, but I suspect it has received a packet of incorrect length - and should probably throw the poacket away rather than taking a fatal error exit - unless in fact this is a result of a repeated failure to receive data from the station. I'll let someone more familiar with the HP1001 driver take up trying to help you further!! Good luck. On Saturday, 15 April 2017 21:47:17 UTC+3, rmc...@gmail.com wrote: > Your right Andrew, I didn't give much information. The farther I get into > my dottage the more I forget other people can't read my mind. > > I have a Ambient ws1001, Firmware is ver 2.6.1, weewx 3.7.1, with Susans > HP1001 driver. > > root@raspberrypi:/home/pi# systemctl status weewx > ● weewx.service - LSB: weewx weather system >Loaded: loaded (/etc/init.d/weewx) >Active: active (exited) since Sat 2017-04-15 14:24:30 EDT; 19min ago > Process: 6163 ExecStop=/etc/init.d/weewx stop (code=exited, > status=0/SUCCESS) > Process: 6177 ExecStart=/etc/init.d/weewx start (code=exited, > status=0/SUCCESS) > > Apr 15 14:28:38 raspberrypi weewx[6204]: unpack requires a string > argument of length 104 > Apr 15 14:28:38 raspberrypi weewx[6204]: Traceback (most recent call > last): > Apr 15 14:28:38 raspberrypi weewx[6204]: File > "/usr/share/weewx/weewx/engine.py", line 871, in main > Apr 15 14:28:38 raspberrypi weewx[6204]: engine.run() > Apr 15 14:28:38 raspberrypi weewx[6204]: File > "/usr/share/weewx/weewx/engine.py", line 187, in run > Apr 15 14:28:38 raspberrypi weewx[6204]: for packet in > self.console.genLoopPackets(): > Apr 15 14:28:38 raspberrypi weewx[6204]: File > "/usr/share/weewx/weewx/drivers/HP1000.py", line 327, in genLoopPackets > Apr 15 14:28:38 raspberrypi weewx[6204]: interp_data = > struct.unpack("8s8s12s12shbbffbbh", rxData) > Apr 15 14:28:38 raspberrypi weewx[6204]: error: unpack requires a > string argument of length 104 > Apr 15 14:28:38 raspberrypi weewx[6204]: Exiting. > > I hope this helps. > > On Saturday, April 15, 2017 at 1:26:08 PM UTC-4, rmc...@gmail.com wrote: >> >> Subject says it all. >> >> I know this was brought up before but I can't find the thread. >> >> -- 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.
[weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
Your right Andrew, I didn't give much information. The farther I get into my dottage the more I forget other people can't read my mind. I have a Ambient ws1001, Firmware is ver 2.6.1, weewx 3.7.1, with Susans HP1001 driver. root@raspberrypi:/home/pi# systemctl status weewx ● weewx.service - LSB: weewx weather system Loaded: loaded (/etc/init.d/weewx) Active: active (exited) since Sat 2017-04-15 14:24:30 EDT; 19min ago Process: 6163 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS) Process: 6177 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS) Apr 15 14:28:38 raspberrypi weewx[6204]: unpack requires a string argument of length 104 Apr 15 14:28:38 raspberrypi weewx[6204]: Traceback (most recent call last): Apr 15 14:28:38 raspberrypi weewx[6204]: File "/usr/share/weewx/weewx/engine.py", line 871, in main Apr 15 14:28:38 raspberrypi weewx[6204]: engine.run() Apr 15 14:28:38 raspberrypi weewx[6204]: File "/usr/share/weewx/weewx/engine.py", line 187, in run Apr 15 14:28:38 raspberrypi weewx[6204]: for packet in self.console.genLoopPackets(): Apr 15 14:28:38 raspberrypi weewx[6204]: File "/usr/share/weewx/weewx/drivers/HP1000.py", line 327, in genLoopPackets Apr 15 14:28:38 raspberrypi weewx[6204]: interp_data = struct.unpack("8s8s12s12shbbffbbh", rxData) Apr 15 14:28:38 raspberrypi weewx[6204]: error: unpack requires a string argument of length 104 Apr 15 14:28:38 raspberrypi weewx[6204]: Exiting. I hope this helps. On Saturday, April 15, 2017 at 1:26:08 PM UTC-4, rmc...@gmail.com wrote: > > Subject says it all. > > I know this was brought up before but I can't find the thread. > > -- 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.
[weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
The subject says very little!! What type of station are you running, what version of weewx and how about posting the actual log extract rather than the summary since the log will have identified the module giving the error. On Saturday, 15 April 2017 20:26:08 UTC+3, rmc...@gmail.com wrote: > Subject says it all. > > I know this was brought up before but I can't find the thread. > > -- 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.
[weewx-user] weewx crashes with error: unpack requires a string of len 104
Subject says it all. I know this was brought up before but I can't find the thread. -- 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.