shchuko / acurite-bridge

AcuRite 5n1 Weather Station measurements forwarder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Acurite 5n1 -> Weather Services Forwarder

Receives AcuRite 5n1 Weather Station measurements and uploads them to multiple weather services.

front

Supported weather services:

Based on TTGO / LILYGO LoRa32 (ESP32 + SX1278 433 Mhz transceiver).

Working station examples

Assemble

  1. Connect a button between GPIO4 and GND. disassembled
  2. Connect ESP32 to PC.
  3. Run Upload Filesystem Image and Upload PlatformIO targets
  4. Find ESP32 started and showing info.

Configuring data export

  1. Unplug power cable from device.
  2. Press and hold a button (connect GPIO4 to GND).
  3. Plug the power cable back holding the button. Device will start in Configuration Mode. Once it starts, release the button.
  4. Find Wi-Fi AP info and IP address on the device screen (by default it's WBridge-AP non-protected Wi-Fi network and most likely 192.168.4.1 IP).
  5. Connect to the AP, open IP address in web browser. configsite
  6. Enter your Wi-Fi Network Name (SSID) and Password.
  7. Select Weather Station from the list (the device will listen for station signals, to get updated list refresh the page). Currently supported AcuRite 5n1 only.
  8. Fill weather service credentials. Empty credentials will disable respective exporter.
  9. If you're not in UTC timezone, please specify your timezone in POSIX format, see the documentation.
  10. Click on the "SAVE SETTINGS" button.
  11. Find your device rebooted and using the new settings.

Many thanks to

Notes

  • The code is written not really efficient, consumes many memory. But this wasn't a plan to have it efficient, I wanted to have it simply working in short time :)
  • To reduce memory consumption, the code contains shrunk port of rtl_433 library copied directly to lib/.
  • It's pretty easy to support other stations (not AcuRite 5n1 only), but there was not really reasonable to have this in current use case.
  • Precipitation measurements from AcuRite 5n1 are received in weird time window, to be investigated whether they're interpreted correctly. Rain precipitation exporting to weather services are temporary disable to avoid sending garbage.

Debugging

For debugging purpose, raw weather station data and important log messages can be sent to Loki. To enable Loki logging, copy config/secrets.ini.dist into config/secrets.ini and configure Loki exporter there. Then you'll be able to read station logs remotely in Loki, without connecting ESP to PC.

Check internals at LokiLogger.

About

AcuRite 5n1 Weather Station measurements forwarder

License:GNU General Public License v3.0


Languages

Language:C 71.4%Language:C++ 26.7%Language:HTML 0.7%Language:Shell 0.6%Language:Awk 0.3%Language:CSS 0.2%Language:Python 0.1%