2019-02-18, 03:52 PM
I've also been playing around with esp8266 and ina219 together with at sd card module in order to have the esp8266 logging it's values locally when the pi is shut off. When tied up for the night I usually switch off the pi in order to save on the on board batteries. But I still want to monitor the consumption from the cooler, pumps, anchor light etc.
When the wifi comes back up the esp8266 sense that it again has a connection to emoncms (in my case) and starts sending the buffered values from the sd card. The trick was to always include the timestamp when sending the data to keep it accurate.
I use ntp towards the pi to set the time on the esp8266.
When the wifi comes back up the esp8266 sense that it again has a connection to emoncms (in my case) and starts sending the buffered values from the sd card. The trick was to always include the timestamp when sending the data to keep it accurate.
I use ntp towards the pi to set the time on the esp8266.