On Friday, October 26, 2018 at 9:15:25 AM UTC-4, Thomas Keffer wrote:
>
> Definitely something odd going on with the interceptor driver. As Gary 
> notes, it regularly stores data to the database at five minute intervals, 
> but it falls farther and farther behind real-time as weewx runs.
>
> One for Matthew...
>


at the beginning of the 107-10-26.syslog file we have:

weather station reports dateutc=2018-10-26 04:29:17
computer reports oct 26 12:29:16 (2018-10-26 04:29:16 UTC)
weewx reports 1540528156.48 (201810-26 04:29:16 UTC)
difference between weather station and computer: 00:00:01

by the end of that file we have:

weather station reports dateutc=2018-10-26 06:27:31
computer reports oct 26 14:27:23 (2018-10-26 06:27:23 UTC)
weewx reports 1540535244.28 (2018-10-26 06:27:24 UTC)
difference between weather station and computer: 00:00:08

so it looks like the weather station clock is running faster than the 
computer clock.

then it looks like the primary weewx thread (MainThread) falls behind the 
interceptor server thread (ServerThread).  early on we see 'interceptor: 
MainThread' reporting raw_packet and mapped_packet soon after the 
'interceptor: ServerThread' first posts the data onto the queue.  but by 
the end of the file, the 'interceptor: MainThread' log entries are few.

at the beginning we see:

Oct 26 12:41:31 debian6-ANN weewx[7806]: manager: Added record 2018-10-26 
12:35:00 CST (1540528500) to database 'weewx.sdb'

after the interceptor: ServerThread reported dateutc=2018-10-26 04:40:45

by the end we see:

Oct 26 14:21:21 debian6-ANN weewx[7806]: manager: Added record 2018-10-26 
13:35:00 CST (1540532100) to daily summary in 'weewx.sdb'


after the interceptor: ServerThread reported dateutc=2018-10-26 06:21:34

so it looks like the ServerThread is receiving data, but something is 
slowing down the weewx MainThread, resulting in a backlog.  if you insert 
some log statements around the queue in the interceptor you'll probably see 
it growing over time.

is there something else running on the weewx data collection thread?  
perhaps some other service?

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