GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0661907
)
Fix of dates in sleepmon
author
Tomas Mudrunka
<tomas@mudrunka.cz>
Thu, 2 Aug 2012 16:07:39 +0000
(18:07 +0200)
committer
Tomas Mudrunka
<tomas@mudrunka.cz>
Thu, 2 Aug 2012 16:07:39 +0000
(18:07 +0200)
c/goertzel/sleepmon.sh
patch
|
blob
|
blame
|
history
diff --git
a/c/goertzel/sleepmon.sh
b/c/goertzel/sleepmon.sh
index 42bbcad33f37a50fb2c249bd50b67b69835d7fc3..a5d9d8168c790f33924d26ed3d88869b0e9d1299 100755
(executable)
--- a/
c/goertzel/sleepmon.sh
+++ b/
c/goertzel/sleepmon.sh
@@
-13,7
+13,7
@@
# Enjoy your data
-out=/tmp/sleeplog-"$(date +%F_%
r
)".txt
+out=/tmp/sleeplog-"$(date +%F_%
T
)".txt
speaker-test -t sine &>/dev/null &
tresh=10
lastdate=0
@@
-26,7
+26,7
@@
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)"
- echo -ne "$time\t$date\t$(date '+%F%t%
r
')\t"
+ echo -ne "$time\t$date\t$(date '+%F%t%
T
')\t"
test "$level" -gt "$tresh" && {
echo -n "Nothing detected...";
$screen && xset dpms force off || true;
This page took
0.092009 seconds
and
4
git commands to generate.