====== deCONZ ====== ===== Instalacja ===== wget -O - http://phoscon.de/apt/deconz.pub.key | apt-key add - apt update apt install deconz ===== RTC ===== Jeśli mamy wersję RaspBee II, posiada ona zegar RTC. Aby go aktywować, pobieramy archiwum: https://github.com/dresden-elektronik/raspbee2-rtc/archive/master.zip Wypakowujemy, kompilujemy i instalujemy: unzip master.zip cd raspbee2-rtc-master make install clean ==== Obsługa zegara ==== Zapis godziny: hwclock -w Odczyt: hwclock -r Weryfikacja działania: hwclock -v hwclock from util-linux 2.36.1 System Time: 1650298689.577987 Trying to open: /dev/rtc0 Using the rtc interface to the clock. Last drift adjustment done at 1650229351 seconds after 1969 Last calibration done at 1650229351 seconds after 1969 Hardware clock is on UTC time Assuming hardware clock is kept in UTC time. Waiting for clock tick... ioctl(4, RTC_UIE_ON, 0): Invalid argument Waiting in loop for time from /dev/rtc0 to change ...got clock tick Time read from Hardware Clock: 2022/04/18 16:18:11 Hw clock time : 2022/04/18 16:18:11 = 1650298691 seconds since 1969 Time since last adjustment is 69340 seconds Calculated Hardware Clock drift is 0.000000 seconds 2022-04-18 17:18:10.122034+01:00 ===== Odpalanie GUI ===== Konfigurację jak deCONZ ma działać podaje się poprzez parametr ''-platform'': # systemctl status deconz ● deconz.service - deCONZ: ZigBee gateway -- REST API Loaded: loaded (/lib/systemd/system/deconz.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2022-04-18 03:07:05 BST; 14h ago Main PID: 64828 (deCONZ) Tasks: 4 (limit: 780) CPU: 14min 33.876s CGroup: /system.slice/deconz.service └─64828 /usr/bin/deCONZ -platform minimal --http-port=80 Apr 18 03:07:05 zigbee-gw systemd[1]: Started deCONZ: ZigBee gateway -- REST API. Domyślnie startuje jako headless z użytkownika ''pi''. Można zmienić platform na VNC aby startowała sesja VNC a na niej deCONZ ale wygodniejsze może być użycie tunelowania X-ów przez SSH aby na chwilę odpalić deCONZ z użytkownika ''pi'': pi@zigbee-gw:~ $ deCONZ --http-port=80 :!: Wcześniej trzeba zatrzymać usługę z systemd: systemctl stop deconz