Coder Social home page Coder Social logo

internet-of-seeds's Introduction

Internet of Seeds

Plants side

This is the code that runs our Internet of Seeds project, that consists of an IKEA VÄXER hydroponics system equipped with a Raspberry Pi Zero and camera, Flotilla dock, and weather, light, colour and motion modules.

Read more about how we set it up here on our blog.

Pre-requisites

You'll need to install the python-picamera, tweepy and flotilla libraries.

sudo apt-get install python-picamera
sudo pip install tweepy
git clone https://github.com/pimoroni/flotilla-python
cd flotilla-python/library
sudo python setup.py install

We've also used Roboto as the font for our timestamping and sensor data overlay. You can get it here.

To use tweepy to tweet, you'll need to set up a new app on the Twitter developer site. It's free to do. You'll then need to add your own consumer and access keys and secrets where appropriate.

We'd also suggest using a large micro SD card, preferably 64GB, since you'll be capturing a lot of images.

Using the scripts

We chose to use cron to run the two Python scripts via a couple of shell scripts.

You can do the following to run the image capture/data logging script every 10 minutes and the tweeting script 4 times daily, at 00:05, 06:05, 12:05 and 18:05.

After typing crontab -e, add the following lines to the bottom.

*/10 * * * * sh /home/pi/internet-of-seeds/internet-of-seeds.sh >> /home/pi/cron.log
05 00,06,12,18 * * * /home/pi/internet-of-seeds/internet-of-seeds-tweet.sh >> /home/pi/cron.log

This also logs all of the standard output to a file named cron.log in your home directory.

internet-of-seeds's People

Contributors

sandyjmacdonald avatar

Watchers

James Cloos avatar Alex Ellis 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.