https://github.com/kherrick/pi-motion
Control and monitor a PIR sensor through a web app
https://github.com/kherrick/pi-motion
cylonjs rasbperry-pi web-components
Last synced: about 1 month ago
JSON representation
Control and monitor a PIR sensor through a web app
- Host: GitHub
- URL: https://github.com/kherrick/pi-motion
- Owner: kherrick
- Created: 2015-05-11T22:22:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-09-02T18:50:06.000Z (almost 9 years ago)
- Last Synced: 2025-07-26T07:45:14.746Z (11 months ago)
- Topics: cylonjs, rasbperry-pi, web-components
- Language: JavaScript
- Homepage:
- Size: 28.3 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pi-motion
========
## About
Control and monitor a PIR sensor through a web app. Successfully utilized on a Raspberry Pi Zero.
 
## 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`
 
## Configure and Launch
Check out the [config file](https://github.com/kherrick/pi-motion/blob/master/app/config.js) 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](https://localhost:3000) to view the [Robeaux](https://github.com/hybridgroup/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](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/](http://karlherrick.com/dev/2015/04/29/pi-motion/)
[](https://travis-ci.org/kherrick/pi-motion)