projects
/
air-quality
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dbc08b
)
don't emit readings so systemd doesn't have to log it
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 23 Jan 2023 16:10:54 +0000
(17:10 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 23 Jan 2023 16:10:54 +0000
(17:10 +0100)
ble-mijia.sh
patch
|
blob
|
history
diff --git
a/ble-mijia.sh
b/ble-mijia.sh
index
e97d920
..
016675b
100755
(executable)
--- a/
ble-mijia.sh
+++ b/
ble-mijia.sh
@@
-9,7
+9,7
@@
gatttool -b $mac --char-write-req --handle='0x0038' --value="0100" --listen | te
v=$( echo $bt | awk '{ print "temperature=" strtonum("0x"$7$6) / 100, "humidity=" strtonum("0x"$8), "a=" strtonum("0x"$9), "b="strtonum("0x"$10) }' | sed 's/ /,/g' )
-echo $(date +%Y-%m-%d\ %H:%M:%S) $mac $v
+
#
echo $(date +%Y-%m-%d\ %H:%M:%S) $mac $v
curl --silent -XPOST 'http://10.60.0.92:8086/write?consistency=any&db=rot13' --data-binary "mijia,dc=trnjanska,mac=$mac $v"