On Monday, 18 March 2019 20:32:15 UTC-3, rich T wrote:
>
> Trying to run the as a standalone driver but it crashes within 10 seconds.
>
Rich,
The standalone driver is very limited in its functions. It is there because
each driver should have a stand-alone section.
In the standalone version the received data from rtldavis is not parsed and
the program ends as soon as the buffer is empty.
There is a typo in the code for the err: data, but that should not change
anything.
Something else:
Sometime rtldavis stopped with reading and outputting data (this happend
once a day or less). I could not detect the cause so far and therefore
weewx-rtld checks if the rtldavis process is stalled.
The 'rtldavis process is stalled' timeout is currently 45 seconds. When
this timeout is exceeded, weewx-rtld will end with a WeeWxIOError message
and restart itself after 1 minute.
I realize this 45 sec timeout is too short for the US version, because the
US init can take 133 seconds.
I will extend this timeout to 150 seconds.
if int(time.time()) - time_last_received > 150:
raise weewx.WeeWxIOError("rtldavis process stalled")
Luc
>
>
--
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.