GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Experimental event counting algo
[mirrors/Programs.git]
/
c
/
goertzel
/
sleepmon.sh
diff --git
a/c/goertzel/sleepmon.sh
b/c/goertzel/sleepmon.sh
index 4896e87327002696a3092d70f5ea4c3351ddf36e..87967dd9d86148714cc6776541ff5a7033c1e670 100755
(executable)
--- a/
c/goertzel/sleepmon.sh
+++ b/
c/goertzel/sleepmon.sh
@@
-28,10
+28,10
@@
arecord | ./goertzel -n i -q -l c -t $tresh -d 4 | while read line; do
level="$(echo "$line" | cut -f 2)"
echo -ne "$time\t$date\t$(date '+%F%t%T')\t"
test "$level" -gt "$tresh" && {
level="$(echo "$line" | cut -f 2)"
echo -ne "$time\t$date\t$(date '+%F%t%T')\t"
test "$level" -gt "$tresh" && {
- echo -n "Nothing detected...";
+ echo -n "
0
Nothing detected...";
$screen && xset dpms force off || true;
} || {
$screen && xset dpms force off || true;
} || {
- echo -n "Motion detected!!!!";
+ echo -n "
1
Motion detected!!!!";
$screen && xset dpms force on;
}
test "$lastdate" != 0 && {
$screen && xset dpms force on;
}
test "$lastdate" != 0 && {
@@
-39,6
+39,7
@@
arecord | ./goertzel -n i -q -l c -t $tresh -d 4 | while read line; do
echo -ne "\t$level After $after secs";
}
echo;
echo -ne "\t$level After $after secs";
}
echo;
+ ./sleepplot.sh "$out" &>/dev/null;
lastdate="$date";
done | tee "$out"
kill $!
lastdate="$date";
done | tee "$out"
kill $!
This page took
0.12197 seconds
and
4
git commands to generate.