Skip to content

Instantly share code, notes, and snippets.

@andriiburka
Last active September 8, 2017 10:23
Show Gist options
  • Save andriiburka/0d55463e77555b6985aa3021103d8c58 to your computer and use it in GitHub Desktop.
Save andriiburka/0d55463e77555b6985aa3021103d8c58 to your computer and use it in GitHub Desktop.
HAP-NodeJS_Installer_Edited_Specially_For_Me
cd /home/pi
sudo apt-get update
sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list
cd
sudo apt-get update
sudo apt-get install mosquitto mosquitto-clients -y
sudo apt-get remove nodejs nodejs-legacy -y
sudo apt-get install git-core libnss-mdns libavahi-compat-libdnssd-dev -y
sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
sudo rm -rf node_latest_armhf.deb
sudo npm install -g node-gyp
sudo git clone --branch v0.4.27 https://github.com/KhaosT/HAP-NodeJS.git
cd HAP-NodeJS/
sudo rm -rf accessories/AirConditioner_accessory.js
sudo npm install
cd
sudo npm install forever -g
sudo nano /start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment