From 66000fb7744c672d5d5cd37ff58acf556e19fb3c Mon Sep 17 00:00:00 2001 From: Bogdan Vlaicu Date: Wed, 6 May 2020 19:12:37 -0400 Subject: [PATCH] rtlamr fixes --- rtlamr/config.json | 2 +- rtlamr/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rtlamr/config.json b/rtlamr/config.json index 7b7717c..73bf593 100755 --- a/rtlamr/config.json +++ b/rtlamr/config.json @@ -1,6 +1,6 @@ { "name": "RTLAMR to MQTT Bridge", - "version": "0.1.0", + "version": "0.1.1", "slug": "rtlamr", "description": "RF to MQTT Bridge based on RTL_SDR/RTL_433 for RTL2832U based DVB-T USB tuners", "url": "https://github.com/bvlaicu/home-assistant-addons/tree/master/rtlamr", diff --git a/rtlamr/run.sh b/rtlamr/run.sh index 63c94ba..fe999bd 100755 --- a/rtlamr/run.sh +++ b/rtlamr/run.sh @@ -40,9 +40,9 @@ LASTVAL="0" # Do this loop, so will restart if buffer runs out while true; do - if [ -z ${MQTT_IDS+x} ]; then + if [ -z ${MQTT_IDS+x} ]; || [$MQTT_IDS = ""] then ID_FILTER_OPTION="" - else + else ID_FILTER_OPTION="-filterid=$MQTT_IDS" fi