5b5a92ebb80a3a5e14a795ef5dcb19f4331bd308
4 echo "Usage: $0 sleeplog.txt"
10 .
/sleepcount.sh
"$1" "$seconds"
12 #Approximate size of graph
13 size
="$(tail -n 1 "$1" | cut -d . -f 1)"
14 test $size -gt 3600 && size
="$(( $size/10 ))" #For prolonged periods
15 size
="$(( 600 + $size ))"
20 set terminal png size $size,300
22 set title "Sleep motions"
30 #set format x "%H:%M:%S"
35 plot "$1" using 2:5 title "Sensor state" with steps,\
36 "$1.counts.$seconds" using 1:(\$2/5) title "Activations in last $seconds seconds" smooth csplines
This page took 0.287802 seconds and 3 git commands to generate.