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.

plot-two.sh 523B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. INFILE="../../serial/foo.dat"
  3. NBLINES=60000
  4. TMPFILE="/tmp/dd2data.$$"
  5. IMAGE="av4v-h.png"
  6. tail -${NBLINES} ${INFILE} | ./av4v-h.awk > ${TMPFILE}
  7. gnuplot << __EOC__
  8. set term png size 1280,420
  9. set output "${IMAGE}"
  10. set grid
  11. set title "Hourly average on the last ${NBLINES} samples"
  12. set xlabel "Heures"
  13. set ylabel "Temperature"
  14. set yrange [ 0.0 : 30.0]
  15. set xdata time
  16. set timefmt "%s"
  17. set format x "%d, %H:%M"
  18. plot "${TMPFILE}" using 1:2 title "celcius" with lines
  19. __EOC__
  20. cat -n ${TMPFILE} | tail -20