0.0.5 • Published 8 years ago
homebridge-thermy v0.0.5
README
Installing
Use the following script. This assumes that you are installing it on a Raspberry Pi Zero W with an ARM6 processor.
sudo -i
apt-get install libavahi-compat-libdnssd-dev
wget https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-armv6l.tar.xz
tar xJvf node-v6.9.5-linux-armv6l.tar.xz
mkdir -p /opt/node
mv node-v6.9.5-linux-armv6l/* /opt/node/
update-alternatives --install "/usr/bin/node" "node" "/opt/node/bin/node" 1
update-alternatives --install "/usr/bin/npm" "npm" "/opt/node/bin/npm" 1
npm install request
npm install -g --unsafe-perm homebridge
ln -s /opt/node/bin/homebridge /usr/local/bin/homebridge
npm install -g homebridge-thermy
wget https://gist.githubusercontent.com/johannrichard/0ad0de1feb6adb9eb61a/raw/1cf926e63e553c7cbfacf9970042c5ac876fadfa/homebridge
mv homebridge /etc/default/
wget https://gist.githubusercontent.com/johannrichard/0ad0de1feb6adb9eb61a/raw/1cf926e63e553c7cbfacf9970042c5ac876fadfa/homebridge.service
mv homebridge.service /etc/systemd/system
useradd --system homebridge
mkdir /var/lib/homebridge
chown -R homebridge:homebridge /var/lib/homebridge/
cat <<EOT >> /var/lib/homebridge/config.json
{
"bridge": {
"name": "Thermy",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "053-73-874"
},
"platforms": [{
"platform": "ThermyPlatform",
"host": "192.168.0.13"
}]
}
EOT
systemctl enable homebridge
systemctl start homebridge