Skip to content
Simplified growpi, no autowatering
Python HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
website
.gitignore
README.md
grovepi.py
growpi.py
temp.csv
timelapse.py

README.md

growPi - V2

Raspberry pi, with GrovePi+ to read plant data. Data is saved to temp.csv. Takes a picture on every interval.

Sensors: moisture, light, temperature and humidity.

growPi

Hardware

Setup

  1. Download and burn Raspbian to SD card.
  2. Do initial Raspbian setup, make sure to setup an internet connection.
  3. Update Raspbian:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
  1. Attach GrovePi+ To Raspberry Pi and run:
$ sudo curl -kL dexterindustries.com/update_grovepi | bash
$ sudo reboot
  1. After reboot run:
$ sudo i2cdetect -y 1
  • If the install was successful, you should see "04" in the output.
  • See GrovePi Setup if unsuccessful.
  1. Connect sensors to the GrovePi ports:
Module/Sensor Port
Moisture Sensor A0
Light Sensor A1
LED Red D3
Temperature & Humidity Sensor D4

Feel free to use different ports, just be sure to change them in growpi.py.

Website Setup

website screenshot

  1. Create secrets.py, and fill out your ftp url, username and password:
FTP_URL = 'ftp.example.com'
USERNAME = 'your_username'
PASSWORD = '123456'
  1. Copy the contents of the website directory, to the root of your website.
  2. Launch growPi:
$ python growpi.py

Notes

  • If you don't want to use the website, just remove all uploadCSV() and UploadImage() function calls from the main loop.
  • If you want to get the timelapse video, download timelapse.py, create secrets.py, and run timelapse.py on your local machine. Or upload them to a server and add timelapse.py to a cronjob, so the video will get updated automatically.
You can’t perform that action at this time.