Coder Social home page Coder Social logo

pi-motion's Introduction

pi-motion

About

Control and monitor a PIR sensor through a web app. Successfully utilized on a Raspberry Pi Zero.

alt tag alt tag

Development

  • Get the required dependencies:

    • cd /opt
    • sudo curl -O https://nodejs.org/dist/v7.6.0/node-v7.6.0-linux-armv6l.tar.xz
    • sudo tar -xJpvf node-v7.6.0-linux-armv6l.tar.xz
    • sudo ln -s /opt/node-v7.6.0-linux-armv6l/bin/node /usr/local/bin/node
    • sudo ln -s /opt/node-v7.6.0-linux-armv6l/bin/npm /usr/local/bin/npm
  • Clone the repository:

    • cd ~
    • git clone https://github.com/kherrick/pi-motion
    • cd pi-motion
    • bin/init.sh
  • Run unit tests, and see a coverage report:

    • bin/gulp test
    • bin/gulp test-coverage

alt tag alt tag

Configure and Launch

Check out the config file and change the options to access the web application from another browser (TV, phone, etc.). Next, serve the web app and cylon wiring app:

  • cd ~/pi-motion
  • bin/gulp serve

With just the defaults set, open a browser on the Pi, and go to https://localhost:3000 to view the Robeaux dashboard that is built into the Cylon.js framework (be sure to allow the browser to view the content behind the self signed certificate). Then browse to http://localhost to view the web application.

Read more

View a write up about the project @ http://karlherrick.com/dev/2015/04/29/pi-motion/

Build Status

pi-motion's People

Contributors

kherrick avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.