JTK – Notes and Ramblings Things we have found …



Filed under: General,Home Automation — taing @ 6:27 pm

Raspberry Pi with Rasbian


Updated 2/2016

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-wheezy.list
sudo apt-get update
sudo apt-get install mosquitto mosquitto-clients libmosquitto-dev


(from http://wiringpi.com/download-and-install/)
For the first time: git clone git://git.drogon.net/wiringPi
For updates:
cd wiringPi
git pull origin

To Build:
cd wiringPi

Java 8

sudo su
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get purge openjdk* (to remove previously installed lower versions)
apt-get install oracle-java8-installer


(from https://github.com/openhab/openhab/wiki/Linux—OS-X)
Add repo signature: wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -
Add sources to list: echo "deb http://dl.bintray.com/openhab/apt-repo stable main" | sudo tee /etc/apt/sources.list.d/openhab.list
Update apt data and install:
sudo apt-get update
sudo apt-get install openhab-runtime

Install optional Addons:
sudo apt-cache search openhab
sudo apt-get install openhab-addon-binding-xy

Gateway code

start with the code from https://github.com/abouillot/HomeAutomation/tree/master/piGateway

git clone https://github.com/abouillot/HomeAutomation
cd ~/HomeAutomation/piGateway
g++ Gateway.c rfm69.cpp -o Gateway -lwiringPi -lmosquitto -DRASPBERRY -DDEBUG

Powered by WordPress