mpiri.gplot 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. ############################
  2. # Display a piri log with multiple units logging into the same file.
  3. # Corresponding FileLog definition:
  4. # define pirilog FileLog /var/log/fhem/piri-%Y-%m-%d.log piri.*
  5. # The devices are called piri.sz, piri.flo, piri.flu, prir.wz1 and piri.wz2
  6. set terminal png transparent size <SIZE> crop
  7. set output '<OUT>.png'
  8. set xdata time
  9. set timefmt "%Y-%m-%d_%H:%M:%S"
  10. set xlabel " "
  11. set ylabel "Piri"
  12. set y2label "Piri"
  13. set title '<TL>'
  14. set ytics ("Sz" 0.8, "FlO" 0.6, "FlU" 0.4, "Wz1" 0.2, "Wz2" 0.0)
  15. set y2tics ("Sz" 0.8, "FlO" 0.6, "FlU" 0.4, "Wz1" 0.2, "Wz2" 0.0)
  16. set yrange [-0.1:0.9]
  17. set y2range [-0.1:0.9]
  18. #FileLog "0.8":sz:0.8:
  19. #FileLog "0.6":flo:0.6:
  20. #FileLog "0.4":flu:0.4:
  21. #FileLog "0.2":wz1:0.2:
  22. #FileLog "0.0":wz2:0.0:
  23. plot\
  24. "< awk '/sz/ {print $1, 0.8; }' <IN>" using 1:2 notitle with points,\
  25. "< awk '/flo/{print $1, 0.6; }' <IN>" using 1:2 notitle with points,\
  26. "< awk '/flu/{print $1, 0.4; }' <IN>" using 1:2 notitle with points,\
  27. "< awk '/wz1/{print $1, 0.2; }' <IN>" using 1:2 notitle with points,\
  28. "< awk '/wz2/{print $1, 0.0; }' <IN>" using 1:2 notitle with points