-
Notifications
You must be signed in to change notification settings - Fork 43
/
InstallGuide
executable file
·85 lines (65 loc) · 3.24 KB
/
InstallGuide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
____ _ _
___| _ \ ___ _ __ ___ ___ | |_(_) _v0.2.3
/ _ | | | |/ _ \| '_ ` _ \ / _ \| __| |/ __|_ /
| __| |_| | (_) | | | | | | (_) | |_| | (__ / /
\___|____/ \___/|_| |_| |_|\___/ \__|_|\___/___|
www.npmjs.com/package/homebridge-edomoticz
A Platform Plugin for HomeBridge by Marci & TheRamon
[http://twitter.com/marcisshadow]
[http://domoticz.com/forum/memberlist.php?mode=viewprofile&u=10884]
From a clean install of Jessie on Raspberry Pi, booted up and connected to WLAN...
sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo apt-get install rpi-update
sudo BRANCH=next rpi-update [fixes Wifi Ch12/13 issue with rPi3 WiFi]
iwconfig wlan0 power off [fixes powermanagement issue with WiFi on all Raspberry Pi]
sudo touch /etc/network/if-up.d/wlan0 [these lines make the powermanagement fix permanent]
sudo chmod +x /etc/network/if-up.d/wlan0
sudo chmod 777 /etc/network/if-up.d/wlan0
sudo echo -e '#!/bin/bash\niwconfig wlan0 power off' > /etc/network/if-up.d/wlan0
sudo chmod 755 /etc/network/if-up.d/wlan0
sudo reboot
[Installing Domoticz]
sudo curl -L install.domoticz.com | bash
[Only need to do the following lines if on RaspberryPi Model B / B+ / nonARM7 CPU]
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.*
hash -r
sudo su -c 'echo "deb https://deb.nodesource.com/armv6l-node/ weezy main" >> /etc/apt/sources.list'
sudo curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
[otherwise continue from here]
sudo apt-get install -y build-essential python-rpi.gpio nodejs
sudo apt-get install libavahi-compat-libdnssd-dev
sudo apt-get install git
sudo apt-get install mosquitto
sudo npm install -g node-red --unsafe-perm
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service -O /lib/systemd/system/nodered.service
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-start -O /usr/bin/node-red-start
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-stop -O /usr/bin/node-red-stop
sudo chmod +x /usr/bin/node-red-st*
sudo npm install -g homebridge --unsafe-perm
sudo npm install -g homebridge-edomoticz --unsafe-perm
mkdir ~/.homebridge
pico ~/.homebridge/config.json [refer to https://github.com/PatchworkBoy/homebridge-eDomoticz, ctrl-o to save, ctrl-x to exit]
sudo pico /lib/systemd/system/homebridge.service
#---Start Copy---#
[Unit]
Description=HomeBridge Service
After=multi-user.target
[Service]
User=pi
Type=idle
ExecStart=/usr/bin/homebridge
[Install]
WantedBy=multi-user.target
#---END Copy---#
[Paste (ctrl-v from win clients, cmd-v from Mac clients)
ctrl-o to save, ctrl-x to exit]
sudo chmod 644 /lib/systemd/system/homebridge.service
sudo systemctl daemon-reload
sudo systemctl enable homebridge.service
sudo systemctl enable nodered.service
sudo systemctl enable mosquitto.service
sudo apt-get install pi-bluetooth bluetooth bluez blueman [RaspberryPi 3 only]
sudo reboot
[done - navigate to the device in a web browser on port 8080, configure Domoticz, add sensors, reboot. Pair to the Homebridge from your iOS device.]