projects
/
rtl433-sensors
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4296923
)
quiet
master
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 28 Oct 2018 11:55:08 +0000
(12:55 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 28 Oct 2018 11:55:08 +0000
(12:55 +0100)
mqtt-tele-pgsql.sh
patch
|
blob
|
history
diff --git
a/mqtt-tele-pgsql.sh
b/mqtt-tele-pgsql.sh
index
e276ef6
..
16ae79a
100755
(executable)
--- a/
mqtt-tele-pgsql.sh
+++ b/
mqtt-tele-pgsql.sh
@@
-1,7
+1,7
@@
-#!/bin/sh -
x
+#!/bin/sh -
e
mosquitto_sub -h 10.13.37.5 -t 'tele/#' -v | while read topic json ; do
echo $json > /dev/shm/tele.json
# psql -c "copy tele (json) from '/dev/shm/tele.json'" rot13
- psql -c "insert into tele (topic,json) values ('$topic','$json');" rot13
+ psql -
-quiet -
c "insert into tele (topic,json) values ('$topic','$json');" rot13
done