projects
/
rtl433-sensors
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a49e32c
)
do not quote channel since it goes into tags
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 23 Sep 2017 12:50:14 +0000
(14:50 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 23 Sep 2017 12:50:14 +0000
(14:50 +0200)
mqtt-rtl_433-influx.sh
patch
|
blob
|
history
diff --git
a/mqtt-rtl_433-influx.sh
b/mqtt-rtl_433-influx.sh
index
3d5b295
..
26f03ae
100755
(executable)
--- a/
mqtt-rtl_433-influx.sh
+++ b/
mqtt-rtl_433-influx.sh
@@
-5,11
+5,11
@@
mosquitto_sub -t rpi2/rtl433/json \
-e 's/ "/ /' -e 's/"=/=/g' -e 's/,"/,/g' \
-e 's/^ *//' \
-e 's/ /\\ /g' \
--e 's/,channel="*\([^,"]*\)"*,/,channel=
"\1"
,/' \
+-e 's/,channel="*\([^,"]*\)"*,/,channel=
\1
,/' \
-e 's/,battery="*\([^,"]*\)"*,/,battery="\1",/' \
-e 's/,id=\([^,]*\),/,id=\1 /' \
-e 's/ rid=\([^,]*\),/,rid=\1 /' \
--e 's/
channel=\([^,]*\),/,channel=\1 /' \
+-e 's/
[ ,]
channel=\([^,]*\),/,channel=\1 /' \
-e 's/^/rtl_433,/' \
-e 's/"//' \
-e 's/"//' \