On Tuesday, April 19, 2016 at 9:30:07 PM UTC+12, mwall wrote:
>
> On Tuesday, April 19, 2016 at 5:13:01 AM UTC-4, Petter Tilljander wrote:
>>
>> Harddrive soon to collapse? Battery in weatherstation is close to be 
>> empty? (the display is working and shows outside sensors etc)
>>
>> Please let me know where I should start looking  for errors. Thank you 
>> all in advance!
>>
>
> you could try disconnecting the usb cable from the station, wait for a 
> minute, then plug it back in.  this will reset the usb.  no need to restart 
> weewx.  if weewx still cannot communicate then you are probably 
> experiencing a fine offset usb lockup:
>
> https://github.com/weewx/weewx/wiki/FineOffset%20USB%20lockup
>

Another - somewhat more brutal - approach on a Raspberry Pi

I built a watchdog timer for the Pi power (basically a 555 bistable with a 
short-me-out transistor that gets kicked every so often by a GPIO on the 
Pi. Can provide the circuit and Gerber files for a PCB to anyone that is 
interested. The watchdog period is about 5-10 minutes which gives the 
system time to boot up.

The I wrote a shell script - fired up at boot - that does something like

while True
    tail /var/log/syslog > logf
    read-the-log.py which looks for the "I have gone" message
      if it finds it then execute os.system ('sudo shutdown -h now')
         this shuts the pi down in a tidy way and a few
         minutes later the watchdog cycles the power.
         No worries about interrupting anything like SD card writes or 
whatever
    sleep 120 seconds
























































































 

>
>
> m 
>

-- 
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