More data
authorTomas Mudrunka <tomas@mudrunka.cz>
Fri, 3 Aug 2012 03:18:19 +0000 (05:18 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Fri, 3 Aug 2012 03:18:19 +0000 (05:18 +0200)
c/goertzel/sleepmon.sh
c/goertzel/sleepplot.sh

index f4685dc7be3fb36a26f28a27166ee6ecd875dd61..60deb35826efd223c3775fc8ea808023da641b0e 100755 (executable)
@@ -21,7 +21,7 @@ lastdate="$(date +%s)"
 laststate=0
 history='';
 historymax=120;
-historylen='10 30 120'
+historylen='10 30 60 90 120'
 screen=false
 graph=false
 
index 6622035f740f5e4eefa7ddf94cae5c6e1ef0b9c1..00d275a62fccdebeb5ed75c50b8d087a15966208 100755 (executable)
@@ -17,7 +17,7 @@ size="$(( 600 + $size ))"
 #Plot it
 gnuplot << EOF
 set output "$graphout"
-set terminal png size $size,300
+set terminal png size $size,400
 
 set title "Sleep motions"
 set xlabel "time"
@@ -36,7 +36,9 @@ plot\
 "$in" using 2:5 title "Sensor state" with steps,\
 "" using 2:(\$6*2) title "Avg. 10s" with lines,\
 "" using 2:(\$7*3) title "Avg. 30s" with lines,\
-"" using 2:(\$8*4) title "Avg. 120s" smooth bezier\
+"" using 2:(\$8*3) title "Avg. 60s" with lines,\
+"" using 2:(\$9*3) title "Avg. 90s" with lines,\
+"" using 2:(\$10*4) title "Avg. 120s" smooth bezier\
 
 EOF
 
This page took 0.140914 seconds and 4 git commands to generate.