Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-16 Thread bell...@gmail.com
You’ve got something working, I wouldn’t change it. But for future searches/reference, MQTTSubscribeService does have limited caching support ( https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Additional-Options#expires_after ). The primary limitation is that MQTTSubscribeService must be

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-16 Thread Greg from Oz
I use home automation (openHab) and the inside humidity and inside temperature is something I am putting into the home automation so I used that to resend every 2 minutes to weew mqttsubscribe. The openHab keeps the last data it was sent. I use JSON.stringify to make it a json data pakage.

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-15 Thread Jimi Lawson
This is the bme280 and where I got it from https://shop.pimoroni.com/search?q=Adafruit%20BME280%20I2C%20or%20SPI%20Temperature%20Humidity%20Pressure%20Sensor%20-%20STEMMA%20QT Regards Jimi On Friday 15 March 2024 at 23:52:57 UTC p q wrote: > I do it the dumb way. I have my sensors send data

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-15 Thread p q
I do it the dumb way. I have my sensors send data when they're ready. I have a service running on the weewx box that subscribes to the MQTT messages and writes them to a temp file. I modified the driver to read from the temp file. I check to see if the data is older than 20 minutes and ignore it

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-15 Thread Greg from Oz
My bme280 only does pressure and temperature. I have it on a sonoff SV. What bme280 are you using? Do you have a part number? I am getting the humidity and temp from the zigbee because it is in the house and the bme280 is in the shed and it is hot in there but I can add one for the house I

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-15 Thread Jimi Lawson
What device does your station/weewx run on, couldn't you connect the bme280 to it and use the temp/humidity/pressure reading from it ? that's what I do. On Friday 15 March 2024 at 21:21:37 UTC Greg from Oz wrote: > Thanks Tom. > > Probably not something I could do. I know nothing about python.

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-15 Thread Greg from Oz
Thanks Tom. Probably not something I could do. I know nothing about python. Maybe later when I have time to look at it again. I will see if I can find a device that transmits in regular intervals. On Friday 15 March 2024 at 23:55:13 UTC+11 Tom Keffer wrote: > You have many single data points,

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-15 Thread Tom Keffer
You have many single data points, separated with long stretches of nulls --- no lines. That's why line_gap_fraction isn't working. By design, WeeWX drivers don't cache data. See the guidelines for writing drivers. However, you

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-14 Thread Greg from Oz
Here is a snippet of the database: select dateTime ,inTemp, inHumidity, pressure from archive where dateTime >= 1710459900 ; ++++---+ | dateTime | inTemp | inHumidity | pressure |

Re: [weewx-user] How to handle sensor data that doesn't come at set times

2024-03-14 Thread Tom Keffer
You may just have the option line_gap_fraction set too low. On Thu, Mar 14, 2024 at 2:18 PM Greg from Oz wrote: > Hi, > I have removed my fineoffset usb and replaced it with SDR but the outside > fine

[weewx-user] How to handle sensor data that doesn't come at set times

2024-03-14 Thread Greg from Oz
Hi, I have removed my fineoffset usb and replaced it with SDR but the outside fine offset station doesn't sent inside temperature, inside humidity or barometer. I have added a BME280 sensor and can get the barometer readings every 30 seconds and that is working and graphing OK. I have a