ks550_th.gplot 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ###########################################################################
  2. ### Display Temperature/Humidity values from a KS550
  3. # This file uses placeholders. For good results the following
  4. # attribute settings in the WebLink object are recommended:
  5. #
  6. # label: "Rel. Humidity [%]"::"Temperature [C]"::"Temperature"::"rel. Humidity"
  7. # title: "Temperature $data{currval1} ($data{min1}-$data{max1}), Humidity $data{currval2} ($data{min2}-$data{max2}) @ $data{currdate1}"
  8. ### FileLog definition corresponding to this file
  9. # define <filelogname> FileLog /var/log/fhem/KS550_%Y.log <ks550name>:T:.*
  10. ### FileLog content
  11. # 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
  12. # This is the status line, which is printed to the logfile. For each of
  13. # the data there is also a separate line available, which you can select
  14. # using a different regular expression in the FileLog define.
  15. # Try .* as an all quantor to see, which lines are available.
  16. #
  17. # Field description:
  18. # T: Temperature
  19. # H: Humidity
  20. # W: Wind velocity
  21. # R: Rain quantity
  22. # IR: Rain indicator
  23. # WD: Direction of wind
  24. # WDR: Range of wind directions (67.5 is the maximum range)
  25. # S: Sunshine duration
  26. # B: Brightness (minimum:8, maximum:255)
  27. ### Settings
  28. set terminal size <SIZE>
  29. set title '<TL>'
  30. set ylabel '<L1>'
  31. set y2label '<L2>'
  32. set ytics
  33. set y2tics
  34. # Maybe define your own ranges (not really needed):
  35. #set yrange [1:10]
  36. #set y2range [0:300]
  37. ### Data extraction
  38. # The following FileLog directives extract the values from the logfile
  39. # lines. If you have only the status lines in the logfile, you do not
  40. # need any regular expression, since the line is valid anyhow. No
  41. # defaults are used here either.
  42. #FileLog 4:::
  43. #FileLog 6:::
  44. ### Data plotting
  45. plot \
  46. axes x1y2 title '<L3>' with lines,\
  47. axes x1y1 title '<L4>' with lines