My home automation framework.
To setup a new Raspberry Pi, follow the Raspberry Pi Headless Setup instructions.
git clone https://github.com/petele/HomeOnNode.git
cd HomeOnNode/app
mkdir logs
npm ci
Keys.js
Edit /etc/logrotate.conf
and add:
"/users/pi/HomeOnNode/app/logs/rpi-system.log" {
rotate 4
weekly
missingok
nocompress
}
cd ~/HomeOnNode/app
npm i onoff
cd ~/HomeOnNode/app
npm i node-ble
config.json
filelogin.sh
to run automaticallycp ~/HomeOnNode/login.sh ~
~/login.sh
and have it start whatever is necessary..bashrc
and add ./login.sh
to the bottom of the file.Celebrate!
sudo apt-get -y install libcap2-bin libudev-dev libusb-1.0-0-dev libpcap-dev
sudo ldconfig
git clone https://github.com/OpenZWave/open-zwave