forked from SensorsIot/IOTstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request SensorsIot#48 from DIYtechie/deconz
added deconz device config menu and amended wiki accordingly
- Loading branch information
Showing
6 changed files
with
101 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
#deCONZ device configuration | ||
|
||
device_selection=$(whiptail --radiolist --title "deCONZ device configuration" --notags \ | ||
"Use the [SPACEBAR] to select your Zigbee device from the list below and make sure it is plugged in (if not, press [ESC])." 20 78 12 \ | ||
"ConBeeII" "ConBee II " "ON" \ | ||
"ConBee" "ConBee " "OFF" \ | ||
"RaspBee" "RaspBee " "OFF" \ | ||
3>&1 1>&2 2>&3) | ||
|
||
case $device_selection in | ||
|
||
"ConBeeII") | ||
echo "...copied ConBee II config from template" | ||
echo "" >>docker-compose.yml | ||
cat .templates/deconz/service_conbee_II.yml >>docker-compose.yml | ||
;; | ||
"ConBee") | ||
echo "...copied ConBee config from template" | ||
echo "" >>docker-compose.yml | ||
cat .templates/deconz/service_conbee.yml >>docker-compose.yml | ||
;; | ||
"RaspBee") | ||
echo "...copied RaspBee config from template" | ||
echo "" >>docker-compose.yml | ||
cat .templates/deconz/service_raspbee.yml >>docker-compose.yml | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1 @@ | ||
deconz: | ||
image: marthoc/deconz | ||
container_name: deconz | ||
restart: unless-stopped | ||
network_mode: bridge | ||
ports: | ||
- '8090:80' | ||
- '4439:443' | ||
- '5901:5900' | ||
volumes: | ||
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ | ||
#devices: | ||
#ConBee II uncomment next line | ||
#- /dev/ttyACM0 | ||
#ConBee uncomment next line | ||
#- /dev/ttyUSB0 | ||
#RaspBee uncomment next line | ||
#- /dev/ttyAMA0 or /dev/ttyS0 | ||
environment: | ||
- DECONZ_VNC_MODE=1 | ||
- DECONZ_VNC_PASSWORD=changeme | ||
- DEBUG_INFO=1 | ||
- DEBUG_APS=0 | ||
- DEBUG_ZCL=0 | ||
- DEBUG_ZDP=0 | ||
- DEBUG_OTAU=0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
deconz: | ||
image: marthoc/deconz | ||
container_name: deconz | ||
restart: unless-stopped | ||
ports: | ||
- '8090:80' | ||
- '443:443' | ||
- '5901:5900' | ||
volumes: | ||
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ | ||
devices: | ||
#ConBee: | ||
- /dev/ttyUSB0 | ||
environment: | ||
- DECONZ_VNC_MODE=1 | ||
- DECONZ_VNC_PASSWORD=changeme | ||
- DEBUG_INFO=1 | ||
- DEBUG_APS=0 | ||
- DEBUG_ZCL=0 | ||
- DEBUG_ZDP=0 | ||
- DEBUG_OTAU=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
deconz: | ||
image: marthoc/deconz | ||
container_name: deconz | ||
restart: unless-stopped | ||
ports: | ||
- '8090:80' | ||
- '443:443' | ||
- '5901:5900' | ||
volumes: | ||
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ | ||
devices: | ||
#ConBee II: | ||
- /dev/ttyACM0 | ||
environment: | ||
- DECONZ_VNC_MODE=1 | ||
- DECONZ_VNC_PASSWORD=changeme | ||
- DEBUG_INFO=1 | ||
- DEBUG_APS=0 | ||
- DEBUG_ZCL=0 | ||
- DEBUG_ZDP=0 | ||
- DEBUG_OTAU=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
deconz: | ||
image: marthoc/deconz | ||
container_name: deconz | ||
restart: unless-stopped | ||
ports: | ||
- '8090:80' | ||
- '443:443' | ||
- '5901:5900' | ||
volumes: | ||
- ./volumes/deconz/:/root/.local/share/dresden-elektronik/deCONZ | ||
devices: | ||
#RaspBee: | ||
- /dev/ttyAMA0 | ||
#alternatively - /dev/ttyS0 | ||
environment: | ||
- DECONZ_VNC_MODE=1 | ||
- DECONZ_VNC_PASSWORD=changeme | ||
- DEBUG_INFO=1 | ||
- DEBUG_APS=0 | ||
- DEBUG_ZCL=0 | ||
- DEBUG_ZDP=0 | ||
- DEBUG_OTAU=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters