diff --git a/webfrontend/pgm2/ks550_all.gplot b/webfrontend/pgm2/ks550_all.gplot new file mode 100644 index 000000000..0e8c3edaa --- /dev/null +++ b/webfrontend/pgm2/ks550_all.gplot @@ -0,0 +1,77 @@ +########################################################################### +### Display values from a KS550. + +# This file is only present for documentation and as a starting point +# for derivation of a subset of measures. Please see and use the other +# ks550_*.gplot files to plot KS550 data. + +### FileLog definition corresponding to this file + +# define FileLog /var/log/fhem/KS550_%Y.log :T:.* + +### FileLog content + +# 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 + +# This is the status line, which is printed to the logfile. For each of +# the data there is also a separate line available, which you can select +# using a different regular expression in the FileLog define. +# Try .* as an all quantor to see, which lines are available. +# +# Field description: +# 04 T: Temperature +# 06 H: Humidity +# 08 W: Wind velocity +# 10 R: Rain quantity +# 12 IR: Rain indicator +# 14 WD: Direction of wind +# 16 WDR: Range of wind directions (67.5 is the maximum range) +# 18 S: Sunshine duration +# 20 B: Brightness (minimum:8, maximum:255) + +### Settings + +set terminal size +set title '' +set ylabel '' +set y2label '' +set ytics +set y2tics + +# Maybe define your own ranges (not really needed): +#set yrange [1:10] +#set y2range [0:300] + +### Data extraction + +# The following FileLog directives extract the values from the logfile +# lines. If you have only the status lines in the logfile, you do not +# need any regular expression, since the line is valid anyhow. +# +# Some data have default values, others not. Notice also the delta-* +# functions, which are called to compute Rain/h and Rain/d values by +# accumulating the changes as well as the data mapping for the rain +# indicator. + +#FileLog 4::: +#FileLog 6::: +#FileLog 8::: +#FileLog 10::0:delta-h +#FileLog 10::0:delta-d +#FileLog 12::0:$fld[11]=~"32768"?1:0 +#FileLog 14::0: +#FileLog 16::0: +#FileLog 18::0:delta-h +#FileLog 20::0: + +plot \ + title 'T' with lines,\ + title 'H' with lines,\ + title 'W' with lines,\ + title 'R/h' with lines,\ + title 'R/d' with lines,\ + title 'IR' with lines,\ + title 'WD' with lines,\ + title 'WDR' with lines,\ + title 'S' with lines,\ + title 'B' with lines diff --git a/webfrontend/pgm2/ks550_light.gplot b/webfrontend/pgm2/ks550_light.gplot new file mode 100644 index 000000000..2d4dcd697 --- /dev/null +++ b/webfrontend/pgm2/ks550_light.gplot @@ -0,0 +1,67 @@ +########################################################################### +### Display Light and Sunshine values from a KS550 + +# This file uses placeholders. For good results the following +# attribute settings in the WebLink object are recommended: +# +# label: "Luminosity"::"Sunshine duration [h]" +# title: "Light $data{currval1} ($data{min1}-$data{max1}) and Sunshine hours $data{currval2} @ $data{currdate1}" + +### FileLog definition corresponding to this file + +# define FileLog /var/log/fhem/KS550_%Y.log :T:.* + +### FileLog content + +# 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 + +# This is the status line, which is printed to the logfile. For each of +# the data there is also a separate line available, which you can select +# using a different regular expression in the FileLog define. +# Try .* as an all quantor to see, which lines are available. + +# This is the status line, which is printed to the logfile. For each of +# the data there is also a separate line available, which you can select +# using a different regular expression in the FileLog define. +# Try .* as an all quantor to see, which lines are available. +# +# Field description: +# T: Temperature +# H: Humidity +# W: Wind velocity +# R: Rain quantity +# IR: Rain indicator +# WD: Direction of wind +# WDR: Range of wind directions (67.5 is the maximum range) +# S: Sunshine duration +# B: Brightness (minimum:8, maximum:255) + +### Settings + +set terminal size +set title '' +set ylabel '' +set y2label '' +set ytics +set y2tics + +# Maybe define your own ranges (not really needed): +#set yrange [1:10] +#set y2range [0:300] + +### Data extraction + +# The following FileLog directives extract the values from the logfile +# lines. If you have only the status lines in the logfile, you do not +# need any regular expression, since the line is valid anyhow. +# Notice the delta-* functions, which are called to compute Rain/h and +# Rain/d values by accumulating the changes. + +#FileLog 20::0: +#FileLog 18::0:delta-h + +### Data plotting + +plot \ + axes x1y1 title 'Brightness' with lines,\ + axes x1y2 title 'Sunshine' with lines diff --git a/webfrontend/pgm2/ks550_rain.gplot b/webfrontend/pgm2/ks550_rain.gplot new file mode 100644 index 000000000..c4a2ebf5c --- /dev/null +++ b/webfrontend/pgm2/ks550_rain.gplot @@ -0,0 +1,64 @@ +########################################################################### +### Display Rain values from a KS550 + +# This file uses placeholders. For good results the following +# attribute settings in the WebLink object are recommended: +# +# label: "Rain Volume [l/m2]"::"Rain indicator"::"l/hour"::"l/day"::"Rain?" +# title: "Rain $data{currval2} liters @ $data{currdate1}" + +### FileLog definition corresponding to this file + +# define FileLog /var/log/fhem/KS550_%Y.log :T:.* + +### FileLog content + +# 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 + +# This is the status line, which is printed to the logfile. For each of +# the data there is also a separate line available, which you can select +# using a different regular expression in the FileLog define. +# Try .* as an all quantor to see, which lines are available. +# +# Field description: +# T: Temperature +# H: Humidity +# W: Wind velocity +# R: Rain quantity +# IR: Rain indicator +# WD: Direction of wind +# WDR: Range of wind directions (67.5 is the maximum range) +# S: Sunshine duration +# B: Brightness (minimum:8, maximum:255) + +### Settings + +set terminal size +set title '' +set ylabel '' +set y2label '' +set ytics +set y2tics + +# Maybe define your own ranges (not really needed): +#set yrange [1:10] +#set y2range [0:300] + +### Data extraction + +# The following FileLog directives extract the values from the logfile +# lines. If you have only the status lines in the logfile, you do not +# need any regular expression, since the line is valid anyhow. +# Notice the delta-* functions, which are called to compute Rain/h and +# Rain/d values by accumulating the changes and the value remapping. + +#FileLog 10::0:delta-h +#FileLog 10::0:delta-d +#FileLog 12::0:$fld[11]=~"32768"?0.8:0 + +### Data plotting + +plot \ + axes x1y1 title '' with steps lw 2,\ + axes x1y1 title '' with steps,\ + axes x1y2 title '' with steps diff --git a/webfrontend/pgm2/ks550_th.gplot b/webfrontend/pgm2/ks550_th.gplot new file mode 100644 index 000000000..468965d8d --- /dev/null +++ b/webfrontend/pgm2/ks550_th.gplot @@ -0,0 +1,61 @@ +########################################################################### +### Display Temperature/Humidity values from a KS550 + +# This file uses placeholders. For good results the following +# attribute settings in the WebLink object are recommended: +# +# label: "Rel. Humidity [%]"::"Temperature [C]"::"Temperature"::"rel. Humidity" +# title: "Temperature $data{currval1} ($data{min1}-$data{max1}), Humidity $data{currval2} ($data{min2}-$data{max2}) @ $data{currdate1}" + +### FileLog definition corresponding to this file + +# define FileLog /var/log/fhem/KS550_%Y.log :T:.* + +### FileLog content + +# 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 + +# This is the status line, which is printed to the logfile. For each of +# the data there is also a separate line available, which you can select +# using a different regular expression in the FileLog define. +# Try .* as an all quantor to see, which lines are available. +# +# Field description: +# T: Temperature +# H: Humidity +# W: Wind velocity +# R: Rain quantity +# IR: Rain indicator +# WD: Direction of wind +# WDR: Range of wind directions (67.5 is the maximum range) +# S: Sunshine duration +# B: Brightness (minimum:8, maximum:255) + +### Settings + +set terminal size +set title '' +set ylabel '' +set y2label '' +set ytics +set y2tics + +# Maybe define your own ranges (not really needed): +#set yrange [1:10] +#set y2range [0:300] + +### Data extraction + +# The following FileLog directives extract the values from the logfile +# lines. If you have only the status lines in the logfile, you do not +# need any regular expression, since the line is valid anyhow. No +# defaults are used here either. + +#FileLog 4::: +#FileLog 6::: + +### Data plotting + +plot \ + axes x1y2 title '' with lines,\ + axes x1y1 title '' with lines diff --git a/webfrontend/pgm2/ks550_wind.gplot b/webfrontend/pgm2/ks550_wind.gplot new file mode 100644 index 000000000..cd9bf742a --- /dev/null +++ b/webfrontend/pgm2/ks550_wind.gplot @@ -0,0 +1,63 @@ +########################################################################### +### Display Wind values from a KS550 + +# This file uses placeholders. For good results the following +# attribute settings in the WebLink object are recommended: +# +# label: "Wind Speed [km/h]"::"Direction [360]"::"Speed"::"Direction"::"Range (max. 67.5)" +# title: "Wind $data{currval1} ($data{min1}-$data{max1}), Direction $data{currval2} ($data{min2}-$data{max2}) and Range $data{currval3} @ $data{currdate1}" + +### FileLog definition corresponding to this file + +# define FileLog /var/log/fhem/KS550_%Y.log :T:.* + +### FileLog content + +# 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 + +# This is the status line, which is printed to the logfile. For each of +# the data there is also a separate line available, which you can select +# using a different regular expression in the FileLog define. +# Try .* as an all quantor to see, which lines are available. +# +# Field description: +# T: Temperature +# H: Humidity +# W: Wind velocity +# R: Rain quantity +# IR: Rain indicator +# WD: Direction of wind +# WDR: Range of wind directions (67.5 is the maximum range) +# S: Sunshine duration +# B: Brightness (minimum:8, maximum:255) + +### Settings + +set terminal size +set title '' +set ylabel '' +set y2label '' +set ytics +set y2tics + +# Maybe define your own ranges (not really needed): +#set yrange [1:10] +#set y2range [0:300] + +### Data extraction + +# The following FileLog directives extract the values from the logfile +# lines. If you have only the status lines in the logfile, you do not +# need any regular expression, since the line is valid anyhow. +# Notice the use ans non-use of default values + +#FileLog 8::0: +#FileLog 14::: +#FileLog 16::: + +### Data plotting + +plot \ + axes x1y1 title '' with lines,\ + axes x1y2 title '' with steps,\ + axes x1y2 title '' with steps