ks550_light.gplot 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ###########################################################################
  2. ### Display Light and Sunshine 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: "Luminosity"::"Sunshine duration [h]"
  7. # title: "Light $data{currval1} ($data{min1}-$data{max1}) and Sunshine hours $data{currval2} @ $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. # This is the status line, which is printed to the logfile. For each of
  17. # the data there is also a separate line available, which you can select
  18. # using a different regular expression in the FileLog define.
  19. # Try .* as an all quantor to see, which lines are available.
  20. #
  21. # Field description:
  22. # T: Temperature
  23. # H: Humidity
  24. # W: Wind velocity
  25. # R: Rain quantity
  26. # IR: Rain indicator
  27. # WD: Direction of wind
  28. # WDR: Range of wind directions (67.5 is the maximum range)
  29. # S: Sunshine duration
  30. # B: Brightness (minimum:8, maximum:255)
  31. ### Settings
  32. set terminal size <SIZE>
  33. set title '<TL>'
  34. set ylabel '<L1>'
  35. set y2label '<L2>'
  36. set ytics
  37. set y2tics
  38. # Maybe define your own ranges (not really needed):
  39. #set yrange [1:10]
  40. #set y2range [0:300]
  41. ### Data extraction
  42. # The following FileLog directives extract the values from the logfile
  43. # lines. If you have only the status lines in the logfile, you do not
  44. # need any regular expression, since the line is valid anyhow.
  45. # Notice the delta-* functions, which are called to compute Rain/h and
  46. # Rain/d values by accumulating the changes.
  47. #FileLog 20::0:
  48. #FileLog 18::0:delta-h
  49. ### Data plotting
  50. plot \
  51. axes x1y1 title 'Brightness' with lines,\
  52. axes x1y2 title 'Sunshine' with lines