projects
/
rtl433-sensors
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22a4876
)
don't emit enything if everything is ok
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 26 May 2018 08:45:09 +0000
(10:45 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 26 May 2018 08:45:09 +0000
(10:45 +0200)
mqtt-pgsql.sh
patch
|
blob
|
history
diff --git
a/mqtt-pgsql.sh
b/mqtt-pgsql.sh
index
c0d56fa
..
796da99
100755
(executable)
--- a/
mqtt-pgsql.sh
+++ b/
mqtt-pgsql.sh
@@
-1,6
+1,6
@@
-#!/bin/sh -
x
e
+#!/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