Skip to content
a private tinkering attempt to build a reliable sensor station for home security purposes
JavaScript Other
  1. JavaScript 71.2%
  2. Other 28.8%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
turret
README.md
lib.raspi.js
lib.utools.js
package.json
probe.js
server.js

README.md

raspi-turret

a private tinkering attempt to build a reliable sensor station for home security purposes

server.js and probe.js is non-related scripts which developed for different purposes, take a look into package.json for library depencies visit http://psychip.net/video/new-gadget-wireless-sensor-station to read related article

you can configure them to start on boot by appending following line to system file "/etc/rc.local"

tested on node 4.4.7 + Rasbian 8 (jessie)

su - root -c "NODE_ENV=production /usr/local/bin/node /var/<your project path>/server.js"
su - root -c "NODE_ENV=production /usr/local/bin/node /var/<your project path>/probe.js"

#server.js ##listens on spesific port (8585 for now) and processes incoming commands

take a photo with default parameters and render on browser

http://<your raspi ip>:8585/dev/camera

record x sec video and download it

http://<your raspi ip>:8585/dev/video/<seconds to record>

shutdown

http://<your raspi ip>:8585/sys/shutdown

restart

http://<your raspi ip>:8585/sys/reboot

#probe.js

collects data from arduino serial port and pushes them to home automation server

configure "conf" object at line 63 before production

08.08.2016

You can’t perform that action at this time.