Code Monkey home page Code Monkey logo

rpi-plant-project's Introduction

rpi-plant-project

An automatic plant watering system created with Python and a Raspberry Pi.

You can read more about how I created this project here.

Dependencies

Installing

The gpiozero library should already be installed into your Pi by default but if not you can run the following command:

sudo pip3 install gpiozero

You can install the schedule api by running the following command:

sudo pip3 install schedule

To install this code onto your Raspberry Pi you can clone the repository to your Pi's Desktop by typing in the following command into the terminal:

git clone https://github.com/AlanConstantino/rpi-plant-project.git

Once cloned, you can move the "run" folder onto your Pi's desktop and then run the following command:

sudo crontab -e

Now you'll see a window that looks something like the following:

From here, you want to append the following code snippet to the file:

@reboot python3 /home/pi/Desktop/run/water_plant.py

By doing so, you're telling the Pi "Hey whenever you reboot, run the python script 'water_plant.py' inside the 'run' folder located on our Desktop."

Now you can turn off your Pi and whenever you turn it back on, the "water_plant.py" script will get executed.

rpi-plant-project's People

Contributors

alanconstantino 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.