Reorg - Part 4

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1865 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-09-18 10:27:27 +00:00
parent bbb68e5279
commit 8b59bd03aa
147 changed files with 0 additions and 0 deletions

26
www/gplot/bs4.gplot Normal file
View File

@@ -0,0 +1,26 @@
############################
# Display brightness sensor log (BS) of the form
2012-07-29_16:54:47 e.ext.bs brightness: 39.45 lux: 138267 flags: 0
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set title '<TL>'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set grid xtics y2tics
set ytics nomirror
set ylabel "brightness / units"
#set yrange [0:100]
set y2tics
set y2label "brightness / units"
#set y2range [0:100]
#FileLog 4:::
plot "<IN>" x1y1 title 'Volume' with lines

27
www/gplot/cpulog.gplot Normal file
View File

@@ -0,0 +1,27 @@
############################
# Display a CPU temperature log of the form
# 2008-02-29_09:48:30 CPU 39.0 SYS 39.0 CORE 57.0 CPU_FAN 1068 CASE_FAN 0 HD_TEMP 46
# We need a fake FileLog definition:
# define cpulog FileLog test2/temperature-history cpufake
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
set title '<TL>'
set grid xtics y2tics
set ylabel "Temperature in C"
#FileLog 3:CPU:0:
#FileLog 5:SYS:0:
#FileLog 7:CORE:0:
#FileLog 13:HD_TEMP:0:
plot "<IN>" using 1:3 title 'CPU' with lines,\
"<IN>" using 1:5 title 'SYS' with lines,\
"<IN>" using 1:7 title 'CORE' with lines,\
"<IN>" using 1:13 title 'HDTEMP' with lines

View File

@@ -0,0 +1,23 @@
############################
# Display the daily avarage temperature and rainfall from a KS300.
# Corresponding FileLog definition:
# define avglog FileLog /var/log/fhem/ks300-%Y.log ks300:.*avg.*
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
set title '<TL>'
set grid
set y2label "Temperature in C"
set ylabel "Rain (l/m2)"
#FileLog 5:avg_day:0:
#FileLog 11:avg_day:0:
plot "<grep avg_day <IN>" using 1:5 axes x1y2 title 'Temperature' with lines,\
"<grep avg_day <IN>" using 1:11 axes x1y1 title 'Rain' with histeps

27
www/gplot/fht.gplot Normal file
View File

@@ -0,0 +1,27 @@
############################
# Display the measured temp and the actuator.
# Corresponding FileLog definition:
# define <filelogname> FileLog /var/log/fhem/fht-%Y.log <fhtname>
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
#set ytics
set title '<L1>'
set grid xtics y2tics
set y2label "Temperature in C"
set ylabel "Actuator (%)"
#FileLog 4:measured:0:
#FileLog 4:actuator.*[0-9]+%:0:int
plot \
"< awk '/measured/{print $1, $4}' <IN>"\
using 1:2 axes x1y2 title 'Measured temperature' with lines,\
"< awk '/actuator/ {print $1, $4+0}' <IN>"\
using 1:2 axes x1y1 title 'Actuator (%)' with lines\

21
www/gplot/fht80tf.gplot Normal file
View File

@@ -0,0 +1,21 @@
############################
# Display the on and off values for a single FHT80TF device
# FileLog definition:
# define fht80tflog FileLog /var/log/fhem/fht80tf-%Y-%U.log fht80tfdev
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set title '<TL>'
set grid
set yrange [-0.2:1.2]
#FileLog 4:Window:0:$fld[3]=~"Open"?1:0
plot "< awk '{print $1, $4==\"Open\"? 1 : 0; }' <IN>"\
using 1:2 title 'Open/Closed' with impulses

23
www/gplot/fs20.gplot Normal file
View File

@@ -0,0 +1,23 @@
############################
# Display the on and off values off an FS20 device
# Corresponding FileLog definition:
# define fs20log FileLog /var/log/fhem/fs20dev-%Y-%U.log fs20dev
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title '<TL>'
set ytics ("Off" 0, "On" 1)
set y2tics ("Off" 0, "On" 1)
set yrange [-0.1:1.1]
set y2range [-0.1:1.1]
set ylabel "Status"
set y2label "Status"
#FileLog 3::0:$fld[2]=~"on"?1:0
plot "< awk '{print $1, $3~/on/? 1 : 0; }' <IN>"\
using 1:2 notitle with steps

35
www/gplot/garden.gplot Normal file
View File

@@ -0,0 +1,35 @@
############################
# Display irrigation times, the log must be of the form
# 2008-04-29_19:00:06 GVent5 365 365 187
# 2008-04-29_19:00:06 Total time is 365
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
set title '<TL>'
set grid xtics y2tics
set ylabel "Minutes"
set y2label "Minutes"
#FileLog 3:GVent1:0:$d=$fld[2];$d/60
#FileLog 3:GVent2:0:$d+=$fld[2];$fld[2]?$d/60:0
#FileLog 3:GVent3:0:$d+=$fld[2];$fld[2]?$d/60:0
#FileLog 3:GVent4:0:$d+=$fld[2];$fld[2]?$d/60:0
#FileLog 3:GVent5:0:$d+=$fld[2];$fld[2]?$d/60:0
#FileLog 3:GVent6:0:$d+=$fld[2];$fld[2]?$d/60:0
#FileLog 3:GVent7:0:$d+=$fld[2];$fld[2]?$d/60:0
#FileLog 3:GVent8:0:$d+=$fld[2];$fld[2]?$d/60:0
plot "<IN>" using 1:3 title 'Lb west' with points,\
"<IN>" using 1:3 title 'Rasen Sued' with points,\
"<IN>" using 1:3 title 'Lb ost' with points,\
"<IN>" using 1:3 title 'Rasen Haus' with points,\
"<IN>" using 1:3 title 'Eingang' with points,\
"<IN>" using 1:3 title 'Rasen West' with points,\
"<IN>" using 1:3 title 'Stichstr.' with points,\
"<IN>" using 1:3 title 'Beete' with points

23
www/gplot/hum6wind8.gplot Normal file
View File

@@ -0,0 +1,23 @@
############################
# Display the Wind and the Rain values of a KS300.
# Corresponding FileLog definition:
# define <filelogname> FileLog /var/log/fhem/hms-%Y.log <ks300name>:T:.*
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
set title '<L1>'
set grid
set ylabel "Wind (km/h)"
set y2label "Humidity (%)"
#FileLog 8:IR\x3a:0:
#FileLog 6:IR\x3a:0:
plot "<IN>" using 1:8 axes x1y1 title 'Wind' with lines,\
"<IN>" using 1:6 axes x1y2 title 'Rel. Humidity (%)' with lines

32
www/gplot/km271_1.gplot Normal file
View File

@@ -0,0 +1,32 @@
############################
# Display the Water temperature and burner runtime values.
# Corresponding FileLog definition:
# define KM271 FileLog /var/log/fhem/km271-%Y.log KM271
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
set title '<L1>'
set grid
set y2label "Temperature in C"
set format y "%0.1f"
set ylabel "Minutes"
set yrange [0:]
#FileLog 4:WW_Isttemperatur:0:
#FileLog 4:Brenner_Laufzeit1_Minuten\x3a:0:delta-h
plot "<grep WW_Isttemperatur <IN>" using 1:4 axes x1y2 ls l0 title 'WW-Temp' with lines,\
"<grep Brenner_Laufzeit1_Minuten: <IN> | perl -ane '\
@a = split(\"[_:]\", $F[0]);\
if(defined($lh) && $lh ne $a[1])\
{ printf(\"${ld}_$lh:30:00 %f\n\", $hv); $hv = 0; }\
if($lv) { $hv += ($F[3]-$lv); }\
$lh = $a[1]; $ld = $a[0]; $lv = $F[3];\
END { printf(\"${ld}_$lh:30:00 %f\n\", $hv) }'"\
using 1:2 axes x1y1 ls l6fill title 'Runtime/h (Min)' with histeps

77
www/gplot/ks550_all.gplot Normal file
View File

@@ -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 <filelogname> FileLog /var/log/fhem/KS550_%Y.log <ks550name>: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 <SIZE>
set title '<TL>'
set ylabel '<L1>'
set y2label '<L2>'
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

View File

@@ -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 <filelogname> FileLog /var/log/fhem/KS550_%Y.log <ks550name>: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 <SIZE>
set title '<TL>'
set ylabel '<L1>'
set y2label '<L2>'
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

View File

@@ -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 <filelogname> FileLog /var/log/fhem/KS550_%Y.log <ks550name>: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 <SIZE>
set title '<TL>'
set ylabel '<L1>'
set y2label '<L2>'
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 '<L3>' with steps lw 2,\
axes x1y1 title '<L4>' with steps,\
axes x1y2 title '<L5>' with steps

61
www/gplot/ks550_th.gplot Normal file
View File

@@ -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 <filelogname> FileLog /var/log/fhem/KS550_%Y.log <ks550name>: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 <SIZE>
set title '<TL>'
set ylabel '<L1>'
set y2label '<L2>'
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 '<L3>' with lines,\
axes x1y1 title '<L4>' with lines

View File

@@ -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 <filelogname> FileLog /var/log/fhem/KS550_%Y.log <ks550name>: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 <SIZE>
set title '<TL>'
set ylabel '<L1>'
set y2label '<L2>'
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 '<L3>' with lines,\
axes x1y2 title '<L4>' with steps,\
axes x1y2 title '<L5>' with steps

View File

@@ -0,0 +1,23 @@
############################
# Display the monthly avarage temperature and rainfall from a KS300.
# Corresponding FileLog definition:
# define avglog FileLog /var/log/fhem/ks300-%Y.log ks300:.*avg.*
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
set title '<TL>'
set grid
set y2label "Temperature in C"
set ylabel "Rain (l/m2)"
#FileLog 5:avg_month:0:
#FileLog 11:avg_month:0:
plot "<grep avg_month <IN>" using 1:5 axes x1y2 title 'Temperature' with lines,\
"<grep avg_month <IN>" using 1:11 axes x1y1 title 'Rain' with fsteps

31
www/gplot/mpiri.gplot Normal file
View File

@@ -0,0 +1,31 @@
############################
# Display a piri log with multiple units logging into the same file.
# Corresponding FileLog definition:
# define pirilog FileLog /var/log/fhem/piri-%Y-%m-%d.log piri.*
# The devices are called piri.sz, piri.flo, piri.flu, prir.wz1 and piri.wz2
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ylabel "Piri"
set y2label "Piri"
set title '<TL>'
set ytics ("Sz" 0.8, "FlO" 0.6, "FlU" 0.4, "Wz1" 0.2, "Wz2" 0.0)
set y2tics ("Sz" 0.8, "FlO" 0.6, "FlU" 0.4, "Wz1" 0.2, "Wz2" 0.0)
set yrange [-0.1:0.9]
set y2range [-0.1:0.9]
#FileLog "0.8":sz:0.8:
#FileLog "0.6":flo:0.6:
#FileLog "0.4":flu:0.4:
#FileLog "0.2":wz1:0.2:
#FileLog "0.0":wz2:0.0:
plot\
"< awk '/sz/ {print $1, 0.8; }' <IN>" using 1:2 notitle with points,\
"< awk '/flo/{print $1, 0.6; }' <IN>" using 1:2 notitle with points,\
"< awk '/flu/{print $1, 0.4; }' <IN>" using 1:2 notitle with points,\
"< awk '/wz1/{print $1, 0.2; }' <IN>" using 1:2 notitle with points,\
"< awk '/wz2/{print $1, 0.0; }' <IN>" using 1:2 notitle with points

19
www/gplot/piri.gplot Normal file
View File

@@ -0,0 +1,19 @@
############################
# Display the on and off values for a single FS20 device
# FileLog definition:
# define fs20log FileLog /var/log/fhem/fs20dev-%Y-%U.log fs20dev
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set title '<TL>'
set grid
set yrange [-0.2:1.2]
#FileLog "1"::0:
plot "< awk '{print $1, $3==\"on\"? 1 : 0; }' <IN>"\
using 1:2 title 'On/Off' with impulses

23
www/gplot/power4.gplot Normal file
View File

@@ -0,0 +1,23 @@
############################
# Display the power reported by the EM1010
# Corresponding FileLog definition:
# define ememlog FileLog /var/log/fhem/emem-%Y.log emem:power.*
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title '<TL>'
set ylabel "Power (KW)"
set y2label "Power (KW)"
set grid
set ytics
set y2tics
set format y "%.1f"
set format y2 "%.1f"
#FileLog 4::0:
plot "<IN>" using 1:4 notitle with lines

23
www/gplot/power8.gplot Normal file
View File

@@ -0,0 +1,23 @@
############################
# Display the power reported by the EM1010
# Corresponding FileLog definition:
# define <filelogname> FileLog /var/log/fhem/em-%Y.log <emdevname>:CNT:.*
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title '<L1>'
set ylabel "Power (KW)"
set y2label "Power (KW)"
set grid
set ytics
set y2tics
set format y "%.1f"
set format y2 "%.1f"
#FileLog 8::0:
plot "<IN>" using 1:8 title 'Power' with lines

View File

@@ -0,0 +1,30 @@
############################
# Display the power reported by the EM1000FM received bei CUL
#set terminal png transparent size <SIZE> crop
set terminal png size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel "Energiemonitor EM1000EM"
set title '<L1>'
set ylabel "Power (kW)"
set y2label "Power (kWh)"
set grid
set ytics
set y2tics
set logscale y
set logscale y2
set format y "%.1f"
set format y2 "%.1f"
#FileLog 8::0:
#FileLog 10::0:
plot \
"< awk '/5MIN:/ {print $1, $8}' <IN>"\
using 1:2 axes x1y2 title 'kWh' with lines,\
"< awk '/TOP:/ {print $1, $10}' <IN>"\
using 1:2 axes x1y1 title 'Spitze kW' with lines

53
www/gplot/rain4.gplot Normal file
View File

@@ -0,0 +1,53 @@
############################
# Display the temperature and the humidity values of a Oregon PCR800 rain gauge
#
# FileLog definition:
# define <filelogname> FileLog /var/log/fhem/<devname>-%Y.log <devname>
# Filelog example:
# define FileLog_PCR800_7a FileLog /var/log/fhem/PCR800_7a-%Y.log PCR800_7a.*rain.*
#
# Logfile record example:
# 2010-08-16_19:44:34 PCR800_7a rain_rate: 0
# 2010-08-16_19:44:35 PCR800_7a rain_total: 2.08
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
set title '<L1>'
set grid
set y2label "Rain rate mm/hr"
set format y "%0.1f"
set ylabel "Rain (l/m2)"
set yrange [0:]
# Computing Rain/h and Rain/d values by accumulating the changes.
#FileLog 4:rain_rate:0:
#FileLog 4:rain_total:0:delta-h
#FileLog 4:rain_total:0:delta-d
plot "< awk $3=="rain_rate:" {print $1, $4}' <IN>"\
using 1:2 axes x1y2 title 'Rain Rate' with lines,\
"<grep rain_total <IN> | perl -ane '\
@a = split(\" \", $F[0]);\
if(defined($lh) && $lh ne $a[1])\
{ printf(\"${ld}_$lh:30:00 %f\n\", $hv); $hv = 0; }\
if($lv) { $hv += ($F[4]-$lv); }\
$lh = $a[1]; $ld = $a[0]; $lv = $F[4];\
END { printf(\"${ld}_$lh:30:00 %f\n\", $hv) }'"\
using 1:2 axes x1y1 title 'Rain/h' with histeps,\
"<grep rain_total <IN> | perl -ane '\
@a = split(\" \", $F[0]);\
if(defined($ld) && $ld ne $a[0]) {\
printf(\"${ld}_12:00:00 %f\n\", $dv); $dv = 0; }\
if($lv) { $dv += ($F[4]-$lv); }\
$ld = $a[0]; $lv = $F[4];\
END {printf(\"${ld}_12:00:00 %f\n\", $dv)}'"\
using 1:2 axes x1y1 title 'Rain/day' with histeps

View File

@@ -0,0 +1,40 @@
#
# Display the measured temp and the pressure of Oregon sensors.
#
# FileLog definition:
# define <filelogname> FileLog /var/log/fhem/<devname>-%Y.log <devname>
# Filelog example:
# define FileLog_BTHR918N_2d FileLog /var/log/fhem/BTHR918N_2d-%Y.log BTHR918N_2d
#
# Logfile record example:
# 2010-08-10_18:00:22 BTHR918N_2d temperature: 21.7
# 2010-08-10_18:00:22 BTHR918N_2d pressure: 1007
# Attribute 'small' is useful for gnuplot/-scroll only,
# if plotsize is less than 800,400
#set terminal png transparent small size <SIZE> crop
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
#set ytics
set title '<L1>'
set grid xtics y2tics
set y2label "Temperature in C"
set ylabel "Pressure in hPa"
#FileLog 4:temperature:0:
#FileLog 4:pressure:0:
plot \
"< awk $3=="temperature:" {print $1, $4}' <IN>"\
using 1:2 axes x1y2 title 'Measured temperature' with lines,\
"< awk $3=="pressure:" {print $1, $4}' <IN>"\
using 1:2 axes x1y1 title 'Pressure hPa' with lines

33
www/gplot/temp4.gplot Normal file
View File

@@ -0,0 +1,33 @@
#
# Display the measured temperature for Oregon sensors
#
# FileLog definition:
# define <filelogname> FileLog /var/log/fhem/<devname>-%Y.log <devname>
# Filelog example:
# define FileLog_THR128_08 FileLog /var/log/fhem/THR128_08-%Y.log THR128_08
#
# Logfile record example:
#2010-08-10_18:00:01 THR128_04 temperature: 20.7
#
# Attribute 'small' is useful for gnuplot/-scroll only,
# if plotsize is less than 800,400
#set terminal png transparent small size <SIZE> crop
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set y2tics
set title '<L1>'
set grid xtics y2tics
set y2label "Temperature in C"
#FileLog 4:T\x3a|temperature:0:
plot \
"< egrep 'T:|temperature:' <IN>"\
using 1:4 axes x1y2 title 'Measured temperature' with lines

27
www/gplot/temp4hum4.gplot Normal file
View File

@@ -0,0 +1,27 @@
# Attribute 'small' is useful for gnuplot/-scroll only,
# if plotsize is less than 800,400
#set terminal png transparent small size <SIZE> crop
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
#set ytics
set title '<L1>'
set grid xtics y2tics
set y2label "Temperature in C"
set ylabel "Humidity (%)"
#FileLog 4:temperature:10:
#FileLog 4:humidity:50:
plot \
"< egrep 'temperature' <IN>"\
using 1:4 axes x1y2 title 'Measured temperature' with lines,\
"< egrep 'humidity' <IN>"\
using 1:4 axes x1y1 title 'Humidity (%)' with lines\

33
www/gplot/temp4hum6.gplot Normal file
View File

@@ -0,0 +1,33 @@
#
# Display the measured temp and the humidity.
# FileLog definition:
# define <filelogname> FileLog /var/log/fhem/hmsname-%Y.log <hmsname>:T:.*
#
# Logfile record example:
# 2008-07-24_02:20:57 UGHygro T: 17.2 H: 77.6 Bat: ok
# Attribute 'small' is useful for gnuplot/-scroll only,
# if plotsize is less than 800,400
#set terminal png transparent small size <SIZE> crop
set terminal png transparent truecolor rounded medium size <SIZE> enhanced
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
#set ytics
set title '<L1>'
set grid xtics y2tics
set y2label "Temperature in C"
set ylabel "Humidity (%)"
#FileLog 4:T\x3a:0:
#FileLog 6:H\x3a:0:
plot \
"< awk '/T:/ {print $1, $4}' <IN>" using 1:2 ls l0 axes x1y2 title 'Temperature' with lines,\
"< awk '/H:/ {print $1, $6}' <IN>" using 1:2 ls l2fill axes x1y1 title 'Humidity' with lines

View File

@@ -0,0 +1,43 @@
############################
# Display the temperature and the humidity values of a KS300.
# Corresponding FileLog definition:
# define <filelogname> FileLog /var/log/fhem/hms-%Y.log <ks300name>:T:.*
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
set title '<L1>'
set grid
set y2label "Temperature in C"
set format y "%0.1f"
set ylabel "Rain (l/m2)"
set yrange [0:]
# Computing Rain/h and Rain/d values by accumulating the changes.
#FileLog 4:IR\x3a:0:
#FileLog 10:IR\x3a:0:delta-h
#FileLog 10:IR\x3a:0:delta-d
plot "<IN>" using 1:4 axes x1y2 ls l0 title 'Temperature' with lines,\
"<grep -v avg_ <IN> | perl -ane '\
@a = split(\"[_:]\", $F[0]);\
if(defined($lh) && $lh ne $a[1])\
{ printf(\"${ld}_$lh:30:00 %f\n\", $hv); $hv = 0; }\
if($lv) { $hv += ($F[9]-$lv); }\
$lh = $a[1]; $ld = $a[0]; $lv = $F[9];\
END { printf(\"${ld}_$lh:30:00 %f\n\", $hv) }'"\
using 1:2 axes x1y1 ls l1fill title 'Rain/h' with histeps,\
"<grep -v avg_ <IN> | perl -ane '\
@a = split(\"[_]\", $F[0]);\
if(defined($ld) && $ld ne $a[0]) {\
printf(\"${ld}_12:00:00 %f\n\", $dv); $dv = 0; }\
if($lv) { $dv += ($F[9]-$lv); }\
$ld = $a[0]; $lv = $F[9];\
END {printf(\"${ld}_12:00:00 %f\n\", $dv)}'"\
using 1:2 axes x1y1 ls l2 title 'Rain/day' with histeps

26
www/gplot/vol4.gplot Normal file
View File

@@ -0,0 +1,26 @@
############################
# Display volume log (USF1000) of the form
# 2012-05-05_17:18:49 e.ext.tank v: 62 V: 1850
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set title '<TL>'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set grid xtics y2tics
set ytics nomirror
set ylabel "%"
set yrange [0:100]
set y2tics
set y2label "%"
set y2range [0:100]
#FileLog 4:::
plot "<IN>" x1y1 title 'Volume' with lines

View File

@@ -0,0 +1,40 @@
#
# Display the measured wind direction and wind speed of Oregon sensors
#
# FileLog definition:
# define <filelogname> FileLog /var/log/fhem/<devname>-%Y.log <devname>
# Filelog example:
# define FileLog_WTGR800_A_cf FileLog /var/log/fhem/WTGR800_A_cf-%Y.log WTGR800_A_cf
#
#
# Logfile record example:
# 2010-08-10_17:57:14 WTGR800_A_cf wind_speed: 3.2
# 2010-08-10_17:57:14 WTGR800_A_cf wind_dir: 270
# Attribute 'small' is useful for gnuplot/-scroll only,
# if plotsize is less than 800,400
#set terminal png transparent small size <SIZE> crop
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set ytics nomirror
set y2tics
#set ytics
set title '<L1>'
set grid xtics y2tics
set y2label "Windspeed m/s"
set ylabel "Wind Dir"
#FileLog 4:wind_speed:0:
#FileLog 4:wind_dir:0:
plot \
"< awk $3=="wind_speed:" {print $1, $4}' <IN>"\
using 1:2 axes x1y2 title 'Wind Speed' with lines,\
"< awk $3=="wind_dir:" {print $1, $4}' <IN>"\
using 1:2 axes x1y1 title 'Wind Direction' with points\