Hi all,
I have a question concerning some insights of weewx.
The setup: Vanatge Pro and a linux box inside the house running weewx, runs smooth since years.
Now I built in the garden additional a little homemade station with a rain bucket and two temp sensors (2m and 5cm above ground) and a gamma radiation sensor.
They are connected to an Arduino, which is connected via a serial connection to a BananaPi with WLAN.
On the BananPi I run a python script which reads the values from the Arduino and store them into a InfluxDB and prallel send the values via MQTT to the Linux box to a
second instance of weewx ("sensweewx" I named it) and there in an extra database which I can access from the main instance of weewx and get nice graphs even of the external sensors on the html page.
The BananaPi outside and the Linux machine inside are connected via WLAN as many people recommend not to wire the BananaPi from the garden (about 3m) via Ethernet to the Linux box in the house
because of the potential difference.
All runs fine, but it gets interesting if there is some rain and bad weather to oberservate.
But if heavy rain starts the WLAN connetion will be interrupted sometimes. This even happens from time to time without any cause, I can't figure out why.
Sadly if the connection was lost I lost my data of the extrenal sensors at the disconnection period
.
This seems no problem with the Vantage!? There seems to be in the buid in logger some kind of storage which holds the data and if I reconnect to weewx it grabs the data from the Vantage/logger
and I have no gaps in the diagrams and database!? That's cool.
So what could you recommend for my setup to get the data stored at the BananaPi into the weewx database of my external senors even If I lost connection?
MQTT seems not the best choice. Are there some ways or drivers in weewx which looks for the last data it has in the databse for the external sensors and grab them from the BananaPi?
Can I maybe use the InfluxDB to achive such a behavior of auto getting missed data and resync to the live data!?
Sorry....a little bit confused....hope it's clear what I want to solve!?
Thanks for any suggstions and ideas!
Regards,
Christian