Giter Club home page Giter Club logo

auto-water's Introduction

auto-water

This repo contains scripts to first detect the moisture content in a soil and then send an alert or water the plant.

Hardware requirements

  1. RasberryPi
  2. Humidity sensor
  3. Tuya smart switch
  4. Aquarium water pump
  5. Plastic tubes

Software requirements

  1. Python3

How to:

  1. Put the moisture sensor in the soil.
  2. Connect the humidity sensor to the Arduino board provided with the sensor.
  3. Connect the Ground output of the Arduino board to pin 6 (ground) of GPIO of raspberrypi.
  4. Connect the Power input (VCC) of the Arduino board to pin 2 (5V supply) of GPIO of raspberrypi.
  5. Connect the digital signal output (DO) of the Arduino board to pin 3 of GPIO of raspberrypi.
  6. Attach the tubes to the water pump and the other end of the tube to the plant soil.
  7. Connect the power plug of the water pump to the Tuya smart switch.
  8. Complete the config.json file with credentials (SMTP server, emails & Tuya account and device info).
  9. Create local_config.json file. (for TUYA reference: https://docs.tuya.com/en/cloudapi/index.html)
{
  "SMTP_HOST": "",
  "SMTP_LOGIN": "",
  "SMTP_PASSWORD": "",
  "SENDER_EMAIL": "",
  "RECEIVERS_EMAILS": [],
  "TUYA_DEVICE_ID": "",
  "TUYA_USERNAME": "",
  "TUYA_PASSWORD": "",
  "TUYA_LOCATION": ""
}
  1. Install the python libraries mentioned in requirements.txt file
  2. Run soil_status.py as sudo.
nohup sh -c "sudo python3 soil_status.py" > /dev/null 2>&1 &

auto-water's People

Contributors

shubhamdipt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.