mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Make Tradfri discoverable (#7128)
* Make Tradfri discoverable * Fix lint errors * Fix bugs and clean up calls to light_control * Add more color util tests * Add coap client to dockerfile
This commit is contained in:
14
virtualization/Docker/scripts/coap_client
Executable file
14
virtualization/Docker/scripts/coap_client
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
# Installs a modified coap client with support for dtls for use with IKEA Tradfri
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
apt-get install -y --no-install-recommends git autoconf automake libtool
|
||||
|
||||
git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git
|
||||
cd libcoap
|
||||
./autogen.sh
|
||||
./configure --disable-documentation --disable-shared
|
||||
make
|
||||
make install
|
||||
@@ -12,7 +12,7 @@ PACKAGES=(
|
||||
apt-get install -y --no-install-recommends ${PACKAGES[@]}
|
||||
|
||||
# Clone the latest code from GitHub
|
||||
git clone https://github.com/openalpr/openalpr.git /usr/local/src/openalpr
|
||||
git clone --depth 1 https://github.com/openalpr/openalpr.git /usr/local/src/openalpr
|
||||
|
||||
# Setup the build directory
|
||||
cd /usr/local/src/openalpr/src
|
||||
|
||||
@@ -10,6 +10,7 @@ INSTALL_FFMPEG="${INSTALL_FFMPEG:-yes}"
|
||||
INSTALL_OPENZWAVE="${INSTALL_OPENZWAVE:-yes}"
|
||||
INSTALL_LIBCEC="${INSTALL_LIBCEC:-yes}"
|
||||
INSTALL_PHANTOMJS="${INSTALL_PHANTOMJS:-yes}"
|
||||
INSTALL_COAP_CLIENT="${INSTALL_COAP_CLIENT:-yes}"
|
||||
|
||||
# Required debian packages for running hass or components
|
||||
PACKAGES=(
|
||||
@@ -62,6 +63,10 @@ if [ "$INSTALL_PHANTOMJS" == "yes" ]; then
|
||||
virtualization/Docker/scripts/phantomjs
|
||||
fi
|
||||
|
||||
if [ "$INSTALL_COAP_CLIENT" == "yes" ]; then
|
||||
virtualization/Docker/scripts/coap_client
|
||||
fi
|
||||
|
||||
# Remove packages
|
||||
apt-get remove -y --purge ${PACKAGES_DEV[@]}
|
||||
apt-get -y --purge autoremove
|
||||
|
||||
Reference in New Issue
Block a user