I'm sure everyone is tired of me and this topic but I'm trying to understand what is happening here.
I have switched to using "
$day.co2.last" which should work for all hourly data sent except for maybe something very close to midnight.
Looking at the contents of weewx.sdb I still notice gaps in the db. With weewx.log, I can see that a couple of missing data were sent correctly but:
Dec 9 12:08:11 n4mrv weewx[448959] INFO user.MQTTSubscribe: (Service) TopicManager ignoring record outside of interval 1639069690.000000 1639069692.000000 1639069689.979975 co2: 423.0, dateTime: 1639069689.9799752, usUnits: 1
Dec 9 13:09:25 n4mrv weewx[448959] INFO user.MQTTSubscribe: (Service) TopicManager ignoring record outside of interval 1639073364.000000 1639073366.000000 1639073363.761206 co2: 415.0, dateTime: 1639073363.7612064, usUnits: 1
This happens for a couple of hours and the data is not included in the db.
On the third hour, the data is sent and correctly put into the db
Dec 9 14:10:37 n4mrv weewx[448959] DEBUG user.MQTTSubscribe: (Service) TopicManager data-> outgoing accumulated mytopic: co2: 400.0, dateTime: 1639077038.0, usUnits: 1
The attached file shows what is happening.
Thanks in advance for any suggestion where I'm going wrong here. There may be something I have incorrect in MQTTSubscribe. I'll be happy to send more information if needed.