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 554B

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