Giter VIP home page Giter VIP logo

seeds2's Introduction

seeds2

seeds2 is a Python application that you can use to keep track of your seeds or plants growing on Twitter. It is a reboot of the Internet of Seeds project by Pimoroni in 2016.

There's a supporting blog post here for background info - http://blog.alexellis.io/iot-growbox/

Live Tweet

Example tweet: https://twitter.com/alexellisuk_bot/status/875077917902024706

Installation

  • Install depedencies
$ sudo apt-get install python-pip
$ sudo pip install -r requirements.txt
  • Update your access keys

Now add your Twitter keys into a config.py file:

config = {"ckey": "", "csecret": "", "akey": "", "asecret": "", "working_directory": "./", "image_quality": 35 , "tweet": True}

For testing without Tweeting you can set tweet to False in the config.py file.

  • Get the Roboto font from:

https://material.io/guidelines/resources/roboto-noto-fonts.html

  • For scheduling the code - use cron and this entry:
*/10 08-20 * * * /home/pi/seeds2/seed-it.sh

That runs once every 10 minutes between 8am and 8pm.

Docker

If you want to save time you can run the code through Docker. A Dockerfile is included in the repo.

  • Building
docker build -t alexellis2/seeds2 .
  • Running:
$ docker rm -f seeds2
$ docker run --privileged --name seeds2 -v `pwd`/config.py:/root/seeds2/config.py -ti alexellis2/seeds2

If you want to extract the image you can do it like this:

$ cd /home/pi
$ docker cp seeds2:/root/seeds2/image.jpg image.jpg

seeds2's People

Contributors

alexellis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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