From 8d3f123c8c7063fd8e18a0a83b2d572778ba8be8 Mon Sep 17 00:00:00 2001 From: GregKolod <40234158+GregKolod@users.noreply.github.com> Date: Thu, 15 Oct 2020 08:53:55 +0200 Subject: [PATCH] Update entry.sh problem z Error loading shared library librtlsdr.so.0: No such file or directory (needed by /usr/local/bin/rtl_433) https://github.com/james-fry/hassio-addons/issues/31 --- rtl2hassio/entry.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl2hassio/entry.sh b/rtl2hassio/entry.sh index 2b8d881..3207ef2 100644 --- a/rtl2hassio/entry.sh +++ b/rtl2hassio/entry.sh @@ -6,7 +6,7 @@ set -e export LANG=C PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" - +export LD_LIBRARY_PATH=/usr/local/lib64 CONFIG_PATH=/data/options.json MQTT_HOST="$(jq --raw-output '.mqtt_host' $CONFIG_PATH)" MQTT_USERNAME="$(jq --raw-output '.mqtt_user' $CONFIG_PATH)" @@ -32,4 +32,4 @@ echo "DISCOVERY_INTERVAL =" $DISCOVERY_INTERVAL -rtl_433 $PROTOCOL -C si -F mqtt://$MQTT_HOST:$MQTT_PORT,user=$MQTT_USERNAME,pass=$MQTT_PASSWORD,retain=$MQTT_RETAIN,events=$MQTT_TOPIC/events,states=$MQTT_TOPIC/states,devices=$MQTT_TOPIC[/model][/id][/channel:0] -M time -M protocol -M level | /scripts/rtl_433_mqtt_hass.py \ No newline at end of file +rtl_433 $PROTOCOL -C si -F mqtt://$MQTT_HOST:$MQTT_PORT,user=$MQTT_USERNAME,pass=$MQTT_PASSWORD,retain=$MQTT_RETAIN,events=$MQTT_TOPIC/events,states=$MQTT_TOPIC/states,devices=$MQTT_TOPIC[/model][/id][/channel:0] -M time -M protocol -M level | /scripts/rtl_433_mqtt_hass.py