GithubHelp home page GithubHelp logo

daviddoran / whiteboard-capture Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 140 KB

Capture what's on your whiteboard using a physical trigger, fswebcam, CloudFiles and HipChat.

Python 9.75% PHP 87.23% Shell 3.02%

whiteboard-capture's Introduction

Whiteboard Capture

The small tools in this project will help you capture what's on your whiteboard using a webcam, fswebcam, Rackspace CloudFiles and HipChat.

Each program has a small job:

Waits for a GPIO pin to be triggered (voltage goes high or low), for example by a button or a sensor.

When triggered, the script pipeline.sh will be run.

Captures a single frame from the webcam using fswebcam, saves it to file and outputs the filename to stdout. If an error is encountered then nothing is written to stdout, the exit code will be non-zero and a message will be written to stderr.

Example:

$ ./capture-frame.php
/tmp/whiteboardlRbHQt

Saves the data in the file given on stdin to a CloudFiles container and outputs the public CDN URL to stdout. Debugging output is written to stderr. If there's an error then the exit code will be non-zero.

Example:

$ echo '/tmp/whiteboardlRbHQt' | ./save-to-cloudfiles.php
http://04e[...].rackcdn.com/362dcaa9e9eb3d4c495adb815a82033d8366a20e.jpg

Posts the message given on stdin to a HipChat room. If there's an error then the exit code will be non-zero.

Example:

$ echo 'This is a message' | ./post-to-hipchat.php

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.