https://github.com/dacarson/weatherflow-rainsensor
Arduino sketch that uses WeatherFlow broadcast rain data to control rain sensor on an automatic irrigation system.
https://github.com/dacarson/weatherflow-rainsensor
Last synced: about 1 year ago
JSON representation
Arduino sketch that uses WeatherFlow broadcast rain data to control rain sensor on an automatic irrigation system.
- Host: GitHub
- URL: https://github.com/dacarson/weatherflow-rainsensor
- Owner: dacarson
- License: mit
- Created: 2023-04-21T01:02:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T18:58:27.000Z (about 2 years ago)
- Last Synced: 2025-01-22T22:30:43.392Z (over 1 year ago)
- Language: C++
- Size: 215 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
 
# WeatherFlow-RainSensor
## Description
Arduino sketch that uses the [Tempest by WeatherFlow](https://weatherflow.com/tempest-weather-system/) broadcast weather data to control rain sensor on an automatic irrigation system.
Listen to Rain events/rainfall count being broadcast by WeatherFlow, and toggle the Rain sensor on an automatic irrigation system.
This project uses a [relay shield](https://www.wemos.cc/en/latest/d1_mini_shield/relay.html) on a [Wemos mini D1](https://www.wemos.cc/en/latest/d1/d1_mini.html), wiring the NC (Normally Closed) side to the Rain sensor on the irrigation system.
Using a [DC Power Shield](https://www.wemos.cc/en/latest/d1_mini_shield/dc_power.html) (7-24V) on the Wemos, the Wemos can be powered from the irrigation system with an [AC/DC converter](https://www.amazon.com/BeElion-Convertor-Current-Surveillance-Security/dp/B01JD6ASF8/) to convert it's 24VAC to DC and connecting the DC power to Power Shield. Allowing the whole unit to fit inside the automatic irrigation system enclosure.
The amount of rain required to trigger sensor, and the amount of time before the rain sensor is disabled is controllable via a web page served by the sketch.


## Setup
Change the lines in `WeatherFlow-RainSensor.ino` to contain your WiFi SSID and Password:
```
const char *ssid = "your_wifi_ssid";
const char *password = "your_wifi_password";
```
Make sure you [upload](https://github.com/earlephilhower/arduino-littlefs-upload) the web files to a LittleFS file system on the Wemos unit.
## License
This library is licensed under [MIT License](https://opensource.org/license/mit/)