Giter Site home page Giter Site logo

nichijou_photos's Introduction

Nichijou Photos

A photo booth that uploads to kuubrow

I used twurl to upload to my twitter.

First off, I got a developer key from twitter, and authenticated my PINE64.

The get a picture off of the webcam, I used streamer, which was available on the debian repository.

Next, to generate the tweet, I followed documentation on the twurl page. I scrapped the media_id using a small python script, which was then passed to the next command to be uploaded.

The entire process is then wrapped in a loop waiting for a GPIO.IN from a button using the RPI GPIO library. I have a cron job set up so it runs this at start, so that it works plug 'n play.

A subtle work around was made when I had to execute sudo python nichijou.py as root, but twurl was only set up for the user, so I had to make sure those commands were executed explicitly from the user.

Button: Pin 12, 14

nichijou_photos's People

Contributors

onibrow avatar

Watchers

James Cloos avatar Juju Liao 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.