better temperature hourly plot
This commit is contained in:
@@ -21,7 +21,7 @@ BEGIN {
|
||||
}
|
||||
else {
|
||||
val = cumul /compte;
|
||||
print heures, val;
|
||||
print $1, val;
|
||||
lasthour = heures;
|
||||
cumul = 0;
|
||||
compte = 0;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
INFILE="../../serial/foo.dat"
|
||||
NBLINES=50000
|
||||
NBLINES=60000
|
||||
TMPFILE="/tmp/dd2data.$$"
|
||||
IMAGE="av4v-h.png"
|
||||
|
||||
@@ -14,8 +14,13 @@ set grid
|
||||
set title "Hourly average on the last ${NBLINES} samples"
|
||||
set xlabel "Heures"
|
||||
set ylabel "Temperature"
|
||||
set yrange [ 5.0 : 30.0]
|
||||
plot "${TMPFILE}" with lines
|
||||
set yrange [ 0.0 : 30.0]
|
||||
|
||||
set xdata time
|
||||
set timefmt "%s"
|
||||
set format x "%d, %H:%M"
|
||||
|
||||
plot "${TMPFILE}" using 1:2 title "celcius" with lines
|
||||
__EOC__
|
||||
|
||||
cat -n ${TMPFILE} | tail -20
|
||||
|
||||
Reference in New Issue
Block a user