Giter VIP home page Giter VIP logo

homeonnode's Introduction

Setup

Update/Upgrade system

  1. sudo apt-get -y update && sudo apt-get -y upgrade

Update settings in raspi-config

  • Expand file system
  • Set new password for pi user
  • Enable SSH
  • Change locale, keyboard layout and timezone
  • Change hostname
  • Force audio through 3.5mm

Install Required Packages

  1. Required for everyone: sudo apt-get -y install alsa-utils mpg321 mplayer git-core lynx netatalk bluetooth bluez libbluetooth-dev
  2. Phython stuff: sudo apt-get -y install python-setuptools python-dev python-rpi.gpio
  3. USB stuff for z-wave (optional): sudo apt-get -y install libcap2-bin libudev-dev libusb-1.0-0-dev libpcap-dev
  4. Printer stuff (optional): sudo apt-get -y install cups foomatic-db foomatic-db-engine

Setup Bluetooth

Enable Bluetooth without root

  • find -path '*noble*Release/hci-ble' -exec sudo setcap cap_net_raw+eip '{}' \;

Update/Install Node via nvm

  1. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
  2. source ./.bashrc
  3. nvm install 6

Install Forever

  1. npm install forever -g
  2. mkdir ~/forever-logs/

Install Z-Wave

  1. Follow instructions from OpenZWaveShared
  2. sudo ldconfig

Clone Repo

  1. git clone https://github.com/petele/HomeOnNode.git
  2. cd HomeOnNode/app
  3. mkdir logs
  4. npm install
  5. Update Keys.js
  6. cd ..
  7. git clone https://github.com/OpenZWave/open-zwave

Note: If you're going to use the GPIO pins, you'll also need to run npm install onoff

Disable screen blanking

Edit /etc/kbd/config and set:

  1. BLANK_TIME=0
  2. BLANK_DPMS=off
  3. POWERDOWN_TIME=0

Follow instructions to prevent console blanking here

Set up log rotation

Edit /etc/logrotate.conf and add:

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

Create login.sh

  1. Create ~/login.sh with the code below
  2. chmod +x ~/login.sh
  3. Edit .bashrc and add ./login.sh to the bottom of the file
#!/bin/bash

echo "Starting HomeOnNode in 5 seconds"
sleep 5

echo "Starting Monitor..."
forever start -l ~/forever-logs/forever.log -o ~/forever-logs/output.log -e ~/forever-logs/error.log ./HomeOnNode/monitor.json

cd HomeOnNode

./pull.sh
./get-zwave-cfg.sh
./controller.sh

Celebrate!

Other notes and resources:

Interesting projects

Harmony Info

homeonnode's People

Contributors

petele avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.