Control and monitor a PIR sensor through a web app. Successfully utilized on a Raspberry Pi Zero.
- 
Get the required dependencies:
cd /optsudo curl -O https://nodejs.org/dist/v7.6.0/node-v7.6.0-linux-armv6l.tar.xzsudo tar -xJpvf node-v7.6.0-linux-armv6l.tar.xzsudo ln -s /opt/node-v7.6.0-linux-armv6l/bin/node /usr/local/bin/nodesudo 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-motioncd pi-motionbin/init.sh
 - 
Run unit tests, and see a coverage report:
bin/gulp testbin/gulp test-coverage
 
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-motionbin/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.
View a write up about the project @ http://karlherrick.com/dev/2015/04/29/pi-motion/



