Monitoring du Phytotron
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
512 B

#!/bin/bash
# THIS IS A KLUDGE
DATAFILE="serial/foo.dat"
IMAGE="graphe.png"
TMPFILE="/tmp/tmpdata"
tail -400 < ${DATAFILE} > ${TMPFILE}
gnuplot << __EOC__
set term png size 1000,700
set output "${IMAGE}"
set ytics 2
set xtics
set grid front
set title "* Temperatures *"
set xdata time
set timefmt "%s"
set format x "%d\n%H:%M"
set yrange [ 0.0 : 30.0 ]
plot "${TMPFILE}" using 1:3 title "ambient" with lines, \
"${TMPFILE}" using 1:4 title " inside" with lines
__EOC__
display ${IMAGE}