fe1c9af740fd739a5a727d3c0f38e9a7fb6284b3
4 echo "Usage: $0 sleeplog.txt"
11 .
/sleepcount.sh
"$1" "$i" &
14 #Approximate size of graph
15 size
="$(tail -n 1 "$1" | cut -d . -f 1)"
16 test $size -gt 3600 && size
="$(( $size/10 ))" #For prolonged periods
17 size
="$(( 600 + $size ))"
22 set terminal png size $size,300
24 set title "Sleep motions"
32 #set format x "%H:%M:%S"
37 #"$1.counts.$seconds" using 1:(\$2/5) title "Activations in last $seconds seconds" smooth csplines
38 plot "$1" using 2:5 title "Sensor state" with steps,\
39 "$1.counts.60" using 1:(\$2/5) title "Activations in last 60 seconds" smooth csplines,\
40 "$1.counts.300" using 1:(\$2/10) title "Activations in last 300 seconds" smooth csplines\
This page took 0.291122 seconds and 4 git commands to generate.