Skip to content

Commit

Permalink
Update entry.sh
Browse files Browse the repository at this point in the history
problem z Error loading shared library librtlsdr.so.0: No such file or directory (needed by /usr/local/bin/rtl_433)
james-fry/hassio-addons#31
  • Loading branch information
GregKolod authored Oct 15, 2020
1 parent ba8090d commit 8d3f123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtl2hassio/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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
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

0 comments on commit 8d3f123

Please sign in to comment.