- Wed Aug 05, 2015 9:58 am
#25088
I'm collecting every 1 minute, logging on 5 minute steps using RRD. I keep 1 year of data at 5 minute resolution, 5 years of data at 1 hour resolution, and 15 years of data at 1 hour resolution.
Disk space is cheap these days. By taking advantage of RRDs capabilities to handle multiple samples per sample period and consolidate those accordingly, I am able to reduce the number of sample periods for which data is not collected.
In my tests, a 3.7v 2500mah LiPo battery with a 6"x6" solar cell is able to be fully charged by about 11 AM after running all night doing these collections. (Summer time). Probably about 2 PM during winter, but I have no winter time experience as yet.
In my environment it's about 4-8 seconds from Boot through collection, WiFi connection, and data posted to web server, then go back to deep sleep for 55 seconds.
I'm using the ESP8266 with Dallas/Maxim OneWire DS18B20 temperature probes.
I'm also using Particle Photon boards with DHT-22 Temperature/Humidity probes. I plan to add DHT-22 support to my ESP software and add OneWire support to my Photon software.
Both use the same CGI script by posting a simple query string.