projects
/
rtl433-sensors
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quiet
[rtl433-sensors]
/
mqtt-pgsql.sh
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
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
done