Infinite 8 iot

Pic12.JPG
 
 

redefining what it means to control your living space…

Mozilla Firefox-esr Download:

//INSTALL INITIAL DEPENDENCIES
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install firefox-esr-l10n-es-es
sudo apt-get remove openjdk-8-jre-headless openjdk-8-jre
sudo apt-get install ca-certificates-java
sudo apt-get install openjdk-8-jre-headless
sudo apt-get install openjdk-8-jre 

//INSTALL FUNCTIONAL PACKAGES
sudo apt-get update
sudo apt-get install pkg-config
sudo apt-get install curl

//INSTALL NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
. ~/.bashrc
nvm install 8.0.0
nvm use 8.0
nvm alias default $(node -v)
node --version
v8.12.0
npm install
npm --version
6.4.1

//READY BLUETOOTH
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
sudo setcap cap_net_raw+eip $(eval readlink -f `which python3`)
sudo apt-get install libboost-python-dev libboost-thread-dev libbluetooth-dev libglib2.0-dev
sudo apt-get install libusb-1.0-0-dev libudev-dev
sudo apt-get install autoconf
sudo apt-get install libpng-dev
sudo apt-get install git
sudo apt-get install build-essential
cd

//INSTALL Z-WAVE
git clone https://github.com/OpenZWave/open-zwave.git
cd open-zwave
CFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 make && sudo CFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 make install
sudo ldconfig
cd
sudo nano ~/.profile 
//at bottom of page insert the line below
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
//save the file and close
cd

//INSTALL MOZILLA GATEWAY
git clone https://github.com/mozilla-iot/gateway.git
cd gateway
./install.sh

//NOTE THERE ARE TWO INSTALL METHODS BELOW ONLY PICK 1[2nd NODE DEFAULT]
//FIRST NODE PACKAGE MANAGER INSTALL METHOD WITH YARN BY FACEBOOK
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
cd ~/.profile (insert --> export PATH="$PATH:`yarn global bin`")
yarn --version

//SECOND NOTE PACKAGE MANAGER INSTALL METHOD WITH NODE 
npm install
npm start
http://localhost:8080 (register) 
https://localhost:4443 (deploy/redeploy) 

//INSTALLATION TEST
sudo apt install python-pip
sudo apt install python3-pip
pip3 install git+https://github.com/mycroftai/adapt#egg=adapt-parser
npm test

//ERROR HANDLING
cd gateway
npm cache clean --force
rm -rf node_modules
npm install
npm start

//ADDITIONAL DEGUGGING
pkill nodejs
pkill node
ps -s
kill -9 num //[num] is the number of the node
npm run debug --inspect

//GO TO SITE OF LOCAL SERVER, REPLACING LOCALNETWORK IP WITH YOUR OWN
LOCALNETWORKIP:8080 //OR
LOCALNETWORKIP:4443