ks550_all.gplot 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ###########################################################################
  2. ### Display values from a KS550.
  3. # This file is only present for documentation and as a starting point
  4. # for derivation of a subset of measures. Please see and use the other
  5. # ks550_*.gplot files to plot KS550 data.
  6. ### FileLog definition corresponding to this file
  7. # define <filelogname> FileLog /var/log/fhem/KS550_%Y.log <ks550name>:T:.*
  8. ### FileLog content
  9. # 2012-01-01_00:00:03 KS550 T: 10.4 H: 97 W: 0 R: 976.45 IR: 0 WD: 40 WDR: 67.5 S: 155 B: 8
  10. # This is the status line, which is printed to the logfile. For each of
  11. # the data there is also a separate line available, which you can select
  12. # using a different regular expression in the FileLog define.
  13. # Try .* as an all quantor to see, which lines are available.
  14. #
  15. # Field description:
  16. # 04 T: Temperature
  17. # 06 H: Humidity
  18. # 08 W: Wind velocity
  19. # 10 R: Rain quantity
  20. # 12 IR: Rain indicator
  21. # 14 WD: Direction of wind
  22. # 16 WDR: Range of wind directions (67.5 is the maximum range)
  23. # 18 S: Sunshine duration
  24. # 20 B: Brightness (minimum:8, maximum:255)
  25. ### Settings
  26. set terminal size <SIZE>
  27. set title '<TL>'
  28. set ylabel '<L1>'
  29. set y2label '<L2>'
  30. set ytics
  31. set y2tics
  32. # Maybe define your own ranges (not really needed):
  33. #set yrange [1:10]
  34. #set y2range [0:300]
  35. ### Data extraction
  36. # The following FileLog directives extract the values from the logfile
  37. # lines. If you have only the status lines in the logfile, you do not
  38. # need any regular expression, since the line is valid anyhow.
  39. #
  40. # Some data have default values, others not. Notice also the delta-*
  41. # functions, which are called to compute Rain/h and Rain/d values by
  42. # accumulating the changes as well as the data mapping for the rain
  43. # indicator.
  44. #FileLog 4:::
  45. #FileLog 6:::
  46. #FileLog 8:::
  47. #FileLog 10::0:delta-h
  48. #FileLog 10::0:delta-d
  49. #FileLog 12::0:$fld[11]=~"32768"?1:0
  50. #FileLog 14::0:
  51. #FileLog 16::0:
  52. #FileLog 18::0:delta-h
  53. #FileLog 20::0:
  54. plot \
  55. title 'T' with lines,\
  56. title 'H' with lines,\
  57. title 'W' with lines,\
  58. title 'R/h' with lines,\
  59. title 'R/d' with lines,\
  60. title 'IR' with lines,\
  61. title 'WD' with lines,\
  62. title 'WDR' with lines,\
  63. title 'S' with lines,\
  64. title 'B' with lines