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.sh 529B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. # THIS IS A KLUDGE
  3. DATAFILE="serial/foo.dat"
  4. IMAGE="graphe.png"
  5. TMPFILE="/tmp/tmpdata"
  6. tail -1200 < ${DATAFILE} > ${TMPFILE}
  7. gnuplot << __EOC__
  8. set term png size 1400,700
  9. set output "${IMAGE}"
  10. set ytics 2
  11. set xtics
  12. set grid front
  13. set title "* Temperatures du Phytotron *"
  14. set xdata time
  15. set timefmt "%s"
  16. set format x "%b %d\n%H:%M"
  17. set yrange [ 0.0 : 30.0 ]
  18. plot "${TMPFILE}" using 1:3 title " inside" with lines, \
  19. "${TMPFILE}" using 1:4 title "ambient" with lines
  20. __EOC__
  21. display ${IMAGE}