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.

essai.sh 607B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. DEVICE="/dev/ttyACM0"
  3. DATAFILE="foo.dat"
  4. TMPFILE="/tmp/dd2data"
  5. IMAGE="graphe.png"
  6. NB_READ=15000
  7. ./t -v -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
  8. gnuplot << __EOC__
  9. set term png size 3200,512
  10. set output "${IMAGE}"
  11. set grid
  12. set title "Dans le Double Dragon 2"
  13. set xdata time
  14. set timefmt "%s"
  15. set format x "%H:%M:%S"
  16. set yrange [ 5.0 : 30.0]
  17. plot "${DATAFILE}" using 1:2 title " foo" with lines, \
  18. "${DATAFILE}" using 1:3 title " bar" with lines, \
  19. "${DATAFILE}" using 1:4 title "quux" with lines, \
  20. "${DATAFILE}" using 1:5 title "booz" with lines
  21. __EOC__
  22. # display ${IMAGE}