Skip to content

Commit

Permalink
Add BAUDRATE option (#217)
Browse files Browse the repository at this point in the history
* Add BAUDRATE option

* Fix bash merge

* use correct param naming
  • Loading branch information
phdelodder authored Nov 15, 2023
1 parent b8f6ba4 commit a334062
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Use these environment variables to change the default behaviour of the container
|`-e DECONZ_UID=1000`|Set the user id of deCONZ volume|
|`-e DECONZ_GID=1000`|Set the group id of deCONZ volume|
|`-e DECONZ_START_VERBOSE=0`|Set this option to 0 to disable verbose of start script, set to 1 to enable `set -x` logging|
|`-e DECONZ_BAUDRATE=115200`|Set the baudrate of the conbee stick, for conbee 3 this needs to be set|

#### Docker-Compose

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services:
- DECONZ_UID=1000
- DECONZ_GID=1000
- DECONZ_START_VERBOSE=0
- DECONZ_BAUDRATE=115200
logging:
driver: "json-file"
options:
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ ENV DEBIAN_FRONTEND=noninteractive \
DECONZ_UPNP=1 \
DECONZ_UID=1000 \
DECONZ_GID=1000 \
DECONZ_START_VERBOSE=0
DECONZ_START_VERBOSE=0 \
DECONZ_BAUDRATE=0

# Install deCONZ dependencies
RUN apt-get update && \
Expand Down
5 changes: 5 additions & 0 deletions docker/root/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if [ "$DECONZ_START_VERBOSE" = 1 ]; then
set -x
fi


echo "[deconzcommunity/deconz] Starting deCONZ..."
echo "[deconzcommunity/deconz] Current deCONZ version: $DECONZ_VERSION"
echo "[deconzcommunity/deconz] Web UI port: $DECONZ_WEB_PORT"
Expand All @@ -23,6 +24,10 @@ DECONZ_OPTS="--auto-connect=1 \
--http-port=$DECONZ_WEB_PORT \
--ws-port=$DECONZ_WS_PORT"

if [ "$DECONZ_BAUDRATE" != 0 ]; then
DECONZ_OPTS="$DECONZ_OPTS --baudrate=$DECONZ_BAUDRATE"
fi

echo "[deconzcommunity/deconz] Using options" $DECONZ_OPTS

echo "[deconzcommunity/deconz] Modifying user and group ID"
Expand Down

0 comments on commit a334062

Please sign in to comment.