ks550_wind.gplot 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ###########################################################################
  2. ### Display Wind 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: "Wind Speed [km/h]"::"Direction [360]"::"Speed"::"Direction"::"Range (max. 67.5)"
  7. # title: "Wind $data{currval1} ($data{min1}-$data{max1}), Direction $data{currval2} ($data{min2}-$data{max2}) and Range $data{currval3} @ $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.
  41. # Notice the use ans non-use of default values
  42. #FileLog 8::0:
  43. #FileLog 14:::
  44. #FileLog 16:::
  45. ### Data plotting
  46. plot \
  47. axes x1y1 title '<L3>' with lines,\
  48. axes x1y2 title '<L4>' with steps,\
  49. axes x1y2 title '<L5>' with steps