send rtl_433 json to mqtt
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 3 Aug 2017 10:16:31 +0000 (12:16 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 3 Aug 2017 10:16:31 +0000 (12:16 +0200)
rtl_433-json-mqtt.sh [new file with mode: 0755]

diff --git a/rtl_433-json-mqtt.sh b/rtl_433-json-mqtt.sh
new file mode 100755 (executable)
index 0000000..a80405a
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -xe
+
+rtl_433 -G -F json -U \
+| tee /dev/shm/433.json \
+| mosquitto_pub -t `hostname -s`/rtl433/json -l
+