From 6e6479ce54fab9f843d8cb2d620460b848b84be6 Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Fri, 3 Aug 2012 05:18:19 +0200 Subject: [PATCH] More data --- c/goertzel/sleepmon.sh | 2 +- c/goertzel/sleepplot.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/c/goertzel/sleepmon.sh b/c/goertzel/sleepmon.sh index f4685dc..60deb35 100755 --- a/c/goertzel/sleepmon.sh +++ b/c/goertzel/sleepmon.sh @@ -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 diff --git a/c/goertzel/sleepplot.sh b/c/goertzel/sleepplot.sh index 6622035..00d275a 100755 --- a/c/goertzel/sleepplot.sh +++ b/c/goertzel/sleepplot.sh @@ -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 -- 2.30.2