Internet of Things – Domoticz – Installeren op de Raspberry Pi
Introduction
Domoticz is a Home Automation system design to control various devices and receive input from various sensors.
For example this system can be used with:
– Light switches
– Door sensors
– Doorbells
– Security devices
– Weather sensors like: UV/Rain/Wind Meters
– Temperature Sensors
– Pulse Meters
– Voltage / AD Meters
– And more …
System Requirements
This system is designed to run on most common hardware, this includes:
– Raspberry Pi (Model 2B or better)
– Cubieboard/Cubietruck
– Unix
– Apple
– Windows
256MB memory recommended, 200MB free hard disk space, Firefox/Chrome/Safari browser. A screen
resolution SXGA = 1280×1024 or higher is recommended.
If you want to use Internet Explorer, you need version 10+.
Installatie
De makkelijke manier is met het volgende commando:
sudo curl -L install.domoticz.com | sudo bash
Na wat vragen of het bereik en poort instellingen is de installatie voltooid:
In de browser:
SSL problemen op de Raspberry met Raspbian Stretch
Eenmaal geïnstalleerd op Rasbian Stretch merk je al gauw dat de webinterface geen verbinding maakt, dat komt hoogstwaarschijnlijk door een SSL fout, te controleren met het volgende commando:
sudo service domoticz status
1 2 3 4 5 6 7 8 9 10 |
- domoticz.service - LSB: Home Automation System Loaded: loaded (/etc/init.d/domoticz.sh; generated; vendor preset: enabled) Active: active (exited) since Fri 2017-08-18 10:34:19 CEST; 11min ago Docs: man:systemd-sysv-generator(8) Process: 532 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS) CGroup: /system.slice/domoticz.service aug 18 10:34:19 raspberrypi systemd[1]: Starting LSB: Home Automation System... aug 18 10:34:19 raspberrypi domoticz.sh[532]: /home/pi/domoticz/domoticz: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory aug 18 10:34:19 raspberrypi systemd[1]: Started LSB: Home Automation System. |
Om het op te lossen zou je SSL moeten compileren voor je specifieke distro/linux versie, maar er zijn ook kant en klare DEB bestanden te vinden @ ocf.berkeley.edu
Een commando met WGET om (de juiste) te downloaden:
sudo w get https://mirrors.ocf.berkeley.edu/debian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb
1 2 3 4 5 6 7 8 9 10 |
--2018-01-05 14:34:10-- https://mirrors.ocf.berkeley.edu/debian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb Resolving mirrors.ocf.berkeley.edu (mirrors.ocf.berkeley.edu)... 169.229.226.30, 2607:f140:8801::1:30 Connecting to mirrors.ocf.berkeley.edu (mirrors.ocf.berkeley.edu)|169.229.226.30|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 867176 (847K) [application/x-debian-package] Saving to: 'libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb' libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb 100%[============================================================================>] 846.85K 733KB/s in 1.2s 2018-01-05 14:34:12 (733 KB/s) - 'libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb' saved [867176/867176] |
Dan het DEB bestand installeren met:
sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb
1 2 3 4 5 |
Selecting previously unselected package libssl1.0.0:armhf. (Reading database ... 122756 files and directories currently installed.) Preparing to unpack libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb ... Unpacking libssl1.0.0:armhf (1.0.1t-1+deb8u7) ... Setting up libssl1.0.0:armhf (1.0.1t-1+deb8u7) ... |
Daarna Domoticz herstarten:
sudo service domoticz.sh restart
Hierna moet de webinterface te bereiken zijn!
Domoticz folder structuur
Standaard locaties (tenzij anders gekozen in de installatie):
Installatiefolder: /home/pi/domoticz
Plugin structuur: /home/pi/domoticz/plugins/[naam]\plugin.py
Download Domoticz @ domoticz.com
Download Domoticz @ Github.com
[#/domoticz/domoticz_bestanden” ]