summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
395e7f0)
I'm using this to monitor rotation of (unused!) 220v fan to capture
it's rotation and have indication of air movement
--- /dev/null
+#!/bin/sh
+
+while true ; do
+
+arecord -d 1 -r 96000 /dev/shm/tmp.wav
+time=`date +'%s%N'`
+info=`sox /dev/shm/tmp.wav -n stat 2>&1 | sed -e 's/(.*)//' -e 's/: */=/' -e 's/ */_/g' | tr '\n' ',' | sed 's/,$//'`
+curl --silent -XPOST http://10.60.0.92:8086/write?db=rot13 --data-binary "fan,dc=trnjanska $info $time"
+
+done