mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 12:46:03 +00:00
The big .gplot rename
git-svn-id: https://svn.fhem.de/fhem/trunk@976 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bc9f649bdd
commit
35e25539e4
@ -1,9 +1,10 @@
|
|||||||
- CVS
|
- CVS
|
||||||
- bugfix: applying smallscreen attributes to firefox/opera
|
- bugfix: applying smallscreen attributes to firefox/opera
|
||||||
- feature: CUL_TX added (thanks to Peterp)
|
- feature: CUL_TX added (thanks to Peterp)
|
||||||
- feature: TCM120 / EnOcean parser added
|
- feature: TCM120/TCM310 + EnOcean parser added
|
||||||
- feature: eventMap enhanced
|
- feature: eventMap enhanced
|
||||||
- bugfix: enabled logging for 59_Weather.pm (Boris)
|
- bugfix: enabled logging for 59_Weather.pm (Boris)
|
||||||
|
- feature: .gplot files renamed from type to content
|
||||||
|
|
||||||
- 2011-07-08 (5.1)
|
- 2011-07-08 (5.1)
|
||||||
- feature: smallscreen optimizations for iPhone
|
- feature: smallscreen optimizations for iPhone
|
||||||
|
@ -12,9 +12,9 @@ use warnings;
|
|||||||
|
|
||||||
my %flogpar = (
|
my %flogpar = (
|
||||||
"CUL_EM.*"
|
"CUL_EM.*"
|
||||||
=> { GPLOT => "cul_em:Power,", FILTER => "%NAME:CNT.*" },
|
=> { GPLOT => "power8:Power,", FILTER => "%NAME:CNT.*" },
|
||||||
"CUL_WS.*"
|
"CUL_WS.*"
|
||||||
=> { GPLOT => "hms:Temp/Hum,", FILTER => "%NAME:T:.*" },
|
=> { GPLOT => "temp4hum6:Temp/Hum,", FILTER => "%NAME:T:.*" },
|
||||||
"CUL_FHTTK.*"
|
"CUL_FHTTK.*"
|
||||||
=> { GPLOT => "fht80tf:Window,", FILTER => "%NAME" },
|
=> { GPLOT => "fht80tf:Window,", FILTER => "%NAME" },
|
||||||
"FHT.*"
|
"FHT.*"
|
||||||
@ -22,28 +22,28 @@ my %flogpar = (
|
|||||||
"HMS100TFK_.*"
|
"HMS100TFK_.*"
|
||||||
=> { GPLOT => "fht80tf:Contact,", FILTER => "%NAME" },
|
=> { GPLOT => "fht80tf:Contact,", FILTER => "%NAME" },
|
||||||
"HMS100T_.*"
|
"HMS100T_.*"
|
||||||
=> { GPLOT => "hms:Temp/Hum,", FILTER => "%NAME:T:.*" },
|
=> { GPLOT => "temp4hum6:Temp/Hum,", FILTER => "%NAME:T:.*" },
|
||||||
"KS300.*"
|
"KS300.*"
|
||||||
=> { GPLOT => "ks300:Temp/Rain,ks300_2:Wind/Hum,",
|
=> { GPLOT => "temp4rain10:Temp/Rain,hum6wind8:Wind/Hum,",
|
||||||
FILTER => "%NAME:T:.*" },
|
FILTER => "%NAME:T:.*" },
|
||||||
|
|
||||||
# Oregon sensors:
|
# Oregon sensors:
|
||||||
# * temperature
|
# * temperature
|
||||||
"(THR128|THWR288A|THN132N).*"
|
"(THR128|THWR288A|THN132N).*"
|
||||||
=> { GPLOT => "oregon_hms_t:Temp,", FILTER => "%NAME" },
|
=> { GPLOT => "temp4:Temp,", FILTER => "%NAME" },
|
||||||
# * temperature, humidity
|
# * temperature, humidity
|
||||||
"(THGR228N|THGR810|THGR918|THGR328N|RTGR328N|WTGR800_T).*"
|
"(THGR228N|THGR810|THGR918|THGR328N|RTGR328N|WTGR800_T).*"
|
||||||
=> { GPLOT => "oregon_hms:Temp/Hum,", FILTER => "%NAME" },
|
=> { GPLOT => "temp4hum4:Temp/Hum,", FILTER => "%NAME" },
|
||||||
# * temperature, humidity, pressure
|
# * temperature, humidity, pressure
|
||||||
"(BTHR918N|BTHR918|BTHR918N).*"
|
"(BTHR918N|BTHR918|BTHR918N).*"
|
||||||
=> { GPLOT => "oregon_temp_press:Temp/Press,oregon_hms:Temp/Hum,",
|
=> { GPLOT => "rain4press4:Temp/Press,temp4hum4:Temp/Hum,",
|
||||||
FILTER => "%NAME" },
|
FILTER => "%NAME" },
|
||||||
# * anenometer
|
# * anenometer
|
||||||
"(WGR800|WGR918|WTGR800_A).*"
|
"(WGR800|WGR918|WTGR800_A).*"
|
||||||
=> { GPLOT => "oregon_wind:WindDir/WindSpeed,", FILTER => "%NAME" },
|
=> { GPLOT => "wind4windDir4:WindDir/WindSpeed,", FILTER => "%NAME" },
|
||||||
# * Oregon sensors: Rain gauge
|
# * Oregon sensors: Rain gauge
|
||||||
"(PCR800|RGR918).*"
|
"(PCR800|RGR918).*"
|
||||||
=> { GPLOT => "oregon_rain:RainRate", FILTER => "%NAME" },
|
=> { GPLOT => "rain4:RainRate", FILTER => "%NAME" },
|
||||||
|
|
||||||
# X10 sensors received by RFXCOM
|
# X10 sensors received by RFXCOM
|
||||||
"RFXX10SEC.*"
|
"RFXX10SEC.*"
|
||||||
@ -51,19 +51,19 @@ my %flogpar = (
|
|||||||
|
|
||||||
# USB-WDE1
|
# USB-WDE1
|
||||||
"USBWX_[0-8]"
|
"USBWX_[0-8]"
|
||||||
=> { GPLOT => "hms:Temp/Hum,", FILTER => "%NAME" },
|
=> { GPLOT => "temp4hum6:Temp/Hum,", FILTER => "%NAME" },
|
||||||
"USBWX_ks300"
|
"USBWX_ks300"
|
||||||
=> { GPLOT => "hms:Temp/Hum,ks300:Temp/Rain,ks300_2:Wind/Hum,",
|
=> { GPLOT => "temp4hum6:Temp/Hum,temp4rain10:Temp/Rain,hum6wind8:Wind/Hum,",
|
||||||
FILTER => "%NAME:T:.*" },
|
FILTER => "%NAME:T:.*" },
|
||||||
|
|
||||||
# HomeMatic
|
# HomeMatic
|
||||||
"CUL_HM_THSensor.*"
|
"CUL_HM_THSensor.*"
|
||||||
=> { GPLOT => "hms:Temp/Hum,", FILTER => "%NAME:T:.*" },
|
=> { GPLOT => "temp4hum6:Temp/Hum,", FILTER => "%NAME:T:.*" },
|
||||||
"CUL_HM_KS550.*"
|
"CUL_HM_KS550.*"
|
||||||
=> { GPLOT => "ks300:Temp/Rain,ks300_2:Wind/Hum,",
|
=> { GPLOT => "temp4rain10:Temp/Rain,hum6wind8:Wind/Hum,",
|
||||||
FILTER => "%NAME:T:.*" },
|
FILTER => "%NAME:T:.*" },
|
||||||
"CUL_HM_HM-CC-TC.*"
|
"CUL_HM_HM-CC-TC.*"
|
||||||
=> { GPLOT => "hms:Temp/Hum,", FILTER => "%NAME:T:.*" },
|
=> { GPLOT => "temp4hum6:Temp/Hum,", FILTER => "%NAME:T:.*" },
|
||||||
|
|
||||||
# Lacrosse TX
|
# Lacrosse TX
|
||||||
"CUL_TX.*"
|
"CUL_TX.*"
|
||||||
|
@ -256,9 +256,9 @@
|
|||||||
Note that the .gplot files are also used if you use SVG output and
|
Note that the .gplot files are also used if you use SVG output and
|
||||||
not the gnuplot backend!<br>
|
not the gnuplot backend!<br>
|
||||||
Examples:<pre>
|
Examples:<pre>
|
||||||
attr em1000log logtype cul_em:Power,text
|
attr em1000log logtype power8:Power,text
|
||||||
attr fs20_log logtype fs20:Plot,text
|
attr fs20_log logtype fs20:Plot,text
|
||||||
attr hms100th_log logtype hms:Plot,text
|
attr hms100th_log logtype temp4hum6:Plot,text
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
When displaying the plot, you can convert it into a "weblink" device,
|
When displaying the plot, you can convert it into a "weblink" device,
|
||||||
|
@ -6859,14 +6859,14 @@ Readings and STATE of temperature/humidity sensors are compatible with the CUL_W
|
|||||||
<code>define fhtlog1 FileLog fht1:.*(temp|actuator).* /var/log/fht1-%Y-%U.log</code>
|
<code>define fhtlog1 FileLog fht1:.*(temp|actuator).* /var/log/fht1-%Y-%U.log</code>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li>ks300<br>
|
<li>temp4rain10<br>
|
||||||
Plots the temperature and rain (per hour and per day) of a
|
Plots the temperature and rain (per hour and per day) of a
|
||||||
ks300. The corresponding filelog definitions (for the KS300
|
ks300. The corresponding filelog definitions (for the KS300
|
||||||
device named ks300) looks like:<br>
|
device named ks300) looks like:<br>
|
||||||
define FileLog ks300log ks300:.*H:.*
|
define FileLog ks300log ks300:.*H:.*
|
||||||
/var/log/ks300-%Y-%U.log
|
/var/log/ks300-%Y-%U.log
|
||||||
</li>
|
</li>
|
||||||
<li>ks300_2<br>
|
<li>hum6wind8<br>
|
||||||
Plots the humidity and wind values of a
|
Plots the humidity and wind values of a
|
||||||
ks300. The corresponding filelog definition is the same as
|
ks300. The corresponding filelog definition is the same as
|
||||||
above, both programs evaluate the same log.
|
above, both programs evaluate the same log.
|
||||||
@ -6877,7 +6877,7 @@ Readings and STATE of temperature/humidity sensors are compatible with the CUL_W
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
Example:<br>
|
Example:<br>
|
||||||
attr ks300log1 logtype ks300_1:Temp/Rain,ks300_2:Hum/Wind,text:Raw-data
|
attr ks300log1 logtype temp4rain10:Temp/Rain,hum6wind8:Hum/Wind,text:Raw-data
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ attr wzlog logtype fht:Temp
|
|||||||
# ks300 log
|
# ks300 log
|
||||||
define kslog FileLog /var/log/wz-%Y-%U.log ks1:.*H:.*
|
define kslog FileLog /var/log/wz-%Y-%U.log ks1:.*H:.*
|
||||||
define avglog FileLog /var/log/avg.log ks1:.*avg.*
|
define avglog FileLog /var/log/avg.log ks1:.*avg.*
|
||||||
attr kslog logtype ks300:Temp/Hum,ks300_2:Rain/Wind
|
attr kslog logtype temp4rain10:Temp/Rain,hum6wind8:Hum/Wind
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Alternative log method. It does the same, but it is somewhat slower as it
|
# Alternative log method. It does the same, but it is somewhat slower as it
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
#
|
|
||||||
# Display the measured temperature and the humidity of 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_17:59:46 THGR810_b1 temperature: 21.6
|
|
||||||
#2010-08-10_17:59:46 THGR810_b1 humidity: 66
|
|
||||||
|
|
||||||
|
|
||||||
# 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:0:
|
|
||||||
#FileLog 4:humidity:0:
|
|
||||||
|
|
||||||
plot \
|
|
||||||
"< awk $3=="temperature:" {print $1, $4}' <IN>"\
|
|
||||||
using 1:2 axes x1y2 title 'Measured temperature' with lines lw 2,\
|
|
||||||
"< awk $3=="humidity:" {print $1, $4}' <IN>"\
|
|
||||||
using 1:2 axes x1y1 title 'Humidity (%)' with lines lw 1\
|
|
@ -26,8 +26,8 @@ set grid xtics y2tics
|
|||||||
|
|
||||||
set y2label "Temperature in C"
|
set y2label "Temperature in C"
|
||||||
|
|
||||||
#FileLog 4:temperature:0:
|
#FileLog 4:T\x3a:|temperature:0:
|
||||||
|
|
||||||
plot \
|
plot \
|
||||||
"< awk $3=="temperature:" {print $1, $4}' <IN>"\
|
"< egrep 'T:|temperature:' <IN>"\
|
||||||
using 1:2 axes x1y2 title 'Measured temperature' with lines lw 2,\
|
using 1:4 axes x1y2 title 'Measured temperature' with lines lw 2,\
|
@ -17,11 +17,11 @@ set grid xtics y2tics
|
|||||||
set y2label "Temperature in C"
|
set y2label "Temperature in C"
|
||||||
set ylabel "Humidity (%)"
|
set ylabel "Humidity (%)"
|
||||||
|
|
||||||
#FileLog 4:T\x3a:10:
|
#FileLog 4:T\x3a|temperature:10:
|
||||||
#FileLog 4:H\x3a:50:
|
#FileLog 4:H\x3a|humidity:50:
|
||||||
|
|
||||||
plot \
|
plot \
|
||||||
"< awk '/T:/ {print $1, $4}' <IN>"\
|
"< egrep 'T:|temperature' <IN>"\
|
||||||
using 1:2 axes x1y2 title 'Measured temperature' with lines lw 2,\
|
using 1:4 axes x1y2 title 'Measured temperature' with lines lw 2,\
|
||||||
"< awk '/H:/ {print $1, $4}' <IN>"\
|
"< egrep 'H:|temperature' <IN>"\
|
||||||
using 1:2 axes x1y1 title 'Humidity (%)' with lines lw 1\
|
using 1:4 axes x1y1 title 'Humidity (%)' with lines lw 1\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user