petele / HomeOnNode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home On Node

My home automation framework.

Setup

To setup a new Raspberry Pi, follow the Raspberry Pi Headless Setup instructions.

Clone Repo

  1. git clone https://github.com/petele/HomeOnNode.git
  2. cd HomeOnNode/app
  3. mkdir logs
  4. npm ci
  5. Update Keys.js

Set up log rotation

Edit /etc/logrotate.conf and add:

"/users/pi/HomeOnNode/app/logs/rpi-system.log" {
  rotate 4
  weekly
  missingok
  nocompress
}

appGPIO

  1. cd ~/HomeOnNode/app
  2. npm i onoff

appBedJet

  1. cd ~/HomeOnNode/app
  2. npm i node-ble
  3. Setup BLE permissions: https://www.npmjs.com/package/node-ble
  4. Create initial config.json file

appFlic

  1. Follow instructions at https://community.home-assistant.io/t/install-flic/16969/4

Set login.sh to run automatically

  1. cp ~/HomeOnNode/login.sh ~
  2. Edit ~/login.sh and have it start whatever is necessary.
  3. Edit .bashrc and add ./login.sh to the bottom of the file.

Celebrate!

Other notes and resources

Interesting projects

Harmony Info

Archive - No longer used

Install Z-Wave

  1. Install USB stuff for z-wave sudo apt-get -y install libcap2-bin libudev-dev libusb-1.0-0-dev libpcap-dev
  2. Follow instructions from OpenZWaveShared
  3. sudo ldconfig
  4. git clone https://github.com/OpenZWave/open-zwave

About


Languages

Language:JavaScript 63.7%Language:HTML 36.0%Language:Shell 0.3%