On Wednesday, October 19, 2016 at 4:12:19 AM UTC-4, Macha wrote:
>
> Now, after upgrading to V3.6.0, this kind-of-lockup still occurs, but
> weewx doesn't crash and simply reports to syslog ...
>
> Caught WeeWxIOError: Cannot determine archive interval
>
>
> ... each 60 seconds.
>
what operating system are you using?
which versions of libusb and pyusb are you using?
how is your weather station console powered? usb only, or usb and
batteries?
please post your weewx.conf file. specifically, what are your settings for:
[FineOffsetUSB]
polling_mode = ?
polling_interval = ?
[StdArchive]
archive_interval = ?
record_generation = ?
So I still need to "trap" this error in order to reboot the RPi (I have
> tried many things to "reset" the USB link to the console, but haven't found
> any solution other than a reboot). The only thing I can think of is to
> periodically scan syslog and reboot if this message turns up.
>
>
> Is there any other way I can flag weewx errors other than syslog?
>
there are many strategies for a nanny. as glenn noted, you can use syslog
itself. or you can look for the messages from the weewx engine - it
retries each 60 seconds because the driver failed, so look for that log
message. or you can look at the latest record in the database to see if it
is over an archive interval old.
but first you should be certain of the root cause of the failure.
if you have to power cycle the weather station console to get things to
work again, then you are experiencing usb lockup due to firmware problems
in weather station console.
you should not have to reboot the pi to restore communication.
if rebooting the pi fixes the comms, and rebooting the pi does not cause
the weather station console to power cycle (i.e., you have batteries in the
weather station console), then you are experiencing an os/weewx comm
failure that can be fixed, probably with modifications to the fousb.py
driver.
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.