X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fgoertzel%2Fsleepmon.sh;h=42bbcad33f37a50fb2c249bd50b67b69835d7fc3;hb=0661907083b523ecf0bc9986cba4a39b46015afc;hp=cb28c7187de5e2a7d82c66cfa7f70024293fd5b9;hpb=f1a48c15ae9a0c44ea229911a7523b35d13a0e48;p=mirrors%2FPrograms.git diff --git a/c/goertzel/sleepmon.sh b/c/goertzel/sleepmon.sh index cb28c71..42bbcad 100755 --- a/c/goertzel/sleepmon.sh +++ b/c/goertzel/sleepmon.sh @@ -21,7 +21,8 @@ screen=false while getopts "s" OPT; do test "$OPT" == 's' && screen=true; done -arecord | ./goertzel -i -q -a -t $tresh -s 2000 | while read line; do +echo "Writing to file: $out"; +arecord | ./goertzel -n -q -l -t $tresh -d 4 | while read line; do date="$(date +%s)" time="$(echo "$line" | cut -f 1)" level="$(echo "$line" | cut -f 2)"