FHEMWEB cleanup, some small additional fixes/additions

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@230 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2008-08-08 10:46:25 +00:00
parent 84003ef04b
commit ca28a99a11
13 changed files with 477 additions and 469 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -117,6 +117,7 @@ SVG_render($$$$$$$)
} else {
($d, $v) = split(" ", $l);
$d = ($tmul ? int((time_to_sec($d)-$fromsec)*$tmul) : $d);
if($ld ne $d || $lv ne $v) { # Saves a lot on year zoomlevel
$ld = $d; $lv = $v;

View File

@@ -11,7 +11,7 @@ weblink_Initialize($)
my ($hash) = @_;
$hash->{DefFn} = "weblink_Define";
$hash->{AttrList}= "fixedrange noscroll";
$hash->{AttrList}= "fixedrange plotmode plotsize label";
}

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,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

View File

@@ -1,4 +1,4 @@
body { color: black; background: #FFFFD7; }
body { color: black; background: #FFFFE7; }
table { -moz-border-radius:8px; }

View File

@@ -12,7 +12,7 @@ polyline { stroke:black; stroke-width:1px; fill:none; }
.l1 { stroke:green; } text.l1 { stroke:none; fill:green; }
.l2 { stroke:blue; } text.l2 { stroke:none; fill:blue; }
.l3 { stroke:magenta; } text.l3 { stroke:none; fill:magenta; }
.l4 { stroke:cyan; } text.l4 { stroke:none; fill:cyan; }
.l4 { stroke:brown; } text.l4 { stroke:none; fill:brown; }
.l5 { stroke:black; } text.l5 { stroke:none; fill:black; }
.l6 { stroke:olive; } text.l6 { stroke:none; fill:olive; }
.l7 { stroke:gray; } text.l7 { stroke:none; fill:gray; }