Based on the work of Open Green Energy. https://www.instructables.com/id/Solar-Powered-WiFi-Weather-Station-V20/ Authors of the base code: Keith Hungerford and Debasish Dutta - Excellent work, gentlemen!
Dear Weather Station fans. For the ones who are using their Weather Station already from the start (we started 5 years ago), the flash memory is probably getting at its end. Let's do a quick calculation: 5 years = 1'825 days. As we are doing 144 read/write cycles per day (all 10 Minutes) this results in 262'800 read/write clycles by now. Flash memory has a finite lifetime of about 100,000 write cycles (source: https://learn.adafruit.com/memories-of-an-arduino/arduino-memories#). Here we go. This is exactly what happened to my station. A flash write error causes the ESP8266 to loop for ever and sucking the battery empty. I discovered this just recently.
Easy fix:
Code has been changed in order to reduce writing to flash memory by a factor of 3. Updating is highly recommended. Get a new ESP8266 D1 mini Pro CH9102 16M (e.g. https://www.aliexpress.com/item/1005006018009983.html) for roughly a dollar incl. shipment.
Running Blynk legacy will drain your battery and your device will stop working. Please update to new Blynk (free version works very well).
- Create new Blynk account (https://blynk.io) Top right.
- Add new template (see example below)
- Add new device using your new template
- Load Blynk App for your mobile device
- Add widgets as before
- done!
Major changes:
- simplified, restructured code (used Adafruit libraries for BME280 instead, sorry for this Keith)
- added relative pressure, dewpoint, dewpoint spread and heatindex calculations
- allow Blynk (** UPDATED, PLEASE SEE CHANGES **), ThingSpeak and MQTT data transmission
- redesigned box (simplified printing, less plastic usage, full snap-in)
- available languages in Version V2.3 (a big thank you to the contributors!)
- English
- German
- Italian (Chak10)
- Polish (TomaszDom)
- Romanian (zangaby)
- French (Ludestru)
- Spanish (Fedecatt)
- Turkish (Mert Sarac)
- Dutch (Rickthefrog)
- Norwegian (solbero)
Changes in V2.3
- included famous Zambretti forecaster (see Blynk example)
- added translation table for Zambretti forecast
- added multi language feature
Changes in V2.31
- added Dewpoint Spread
- fixed some minor things
- added Zambretti forecast in Thingspeak (thank you ThomaszDom)
Changes in V2.31 (MQTT version)
- allows to publish data to MQTT broker (alternative .ino file)
Changes in V2.32
- Battery monitoring and going to hibernate if battery low (battery protection)
- Warning text will be shown instead of Zambretti prediction if batt low
Changes in V2.33
- Corrected bug in the winter/summer adjustment for the Zambretti forecast
Changes in V2.34
- added August-Roche-Magnus approximation to automatically adjust humidity with temperature corrections
- Code cleanup
Changes in V2.35
- corrected TingSpeak communication changes (needs now Channel ID and KEY)
- moved V2.35 into history folder - will not maintained by me anymore (pull requests for this version are still welcome)
Changes in V2.4
- updated Blynk (simple code changes - needs more to do on the Blynk server side)
- reformatted data into json
- decide in settings24.h if you want MQTT or not
- non-blocking MQTT connector if broker is not available
- added one-wire 18d20 temperature sensor (better temperature buffering in sunshine - more lazy) to P4 solder pull-up resistor 4.7 kOhm between signal and V+
- minor bug fixes
- changed translation to summer and winter messages (unfortunately, only german and english translation for this version available) If you still need different languages please translate into your language in translation24.h
Print the box yourself: https://www.thingiverse.com/thing:3551386
New Blynk App Example (free widgets)
Showing the data on a LED display: https://github.com/3KUdelta/MDparola_MQTT_monitor