don't emit enything if everything is ok
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 26 May 2018 08:45:09 +0000 (10:45 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 26 May 2018 08:45:09 +0000 (10:45 +0200)
mqtt-pgsql.sh

index c0d56fa..796da99 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/sh -xe
+#!/bin/sh -e
 
 mosquitto_sub -h 10.13.37.5 -t rpi2/rtl433/json | while read json ; do
        echo $json > /dev/shm/rtl433.json
-       psql -c "copy rtl433 (json) from '/dev/shm/rtl433.json'" rot13
+       psql --quiet -c "copy rtl433 (json) from '/dev/shm/rtl433.json'" rot13
 done