From ed9faebfea5d825547d9cb79ff63f227f33152fa Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 4 May 2014 19:49:29 +0000 Subject: [PATCH] changed weblink reference to SVG git-svn-id: https://svn.fhem.de/fhem/trunk@5746 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/32_SYSSTAT.pm | 4 ++-- fhem/www/gplot/sysstat.gplot | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/32_SYSSTAT.pm b/fhem/FHEM/32_SYSSTAT.pm index 67d3d8753..1fedce218 100644 --- a/fhem/FHEM/32_SYSSTAT.pm +++ b/fhem/FHEM/32_SYSSTAT.pm @@ -677,7 +677,7 @@ SYSSTAT_getStat($)
   define sysstatlog FileLog /usr/local/FHEM/var/log/sysstat-%Y-%m.log sysstat
   attr sysstatlog nrarchive 1
-  define wl_sysstat weblink fileplot sysstatlog:sysstat:CURRENT
+  define svg_sysstat SVG sysstatlog:sysstat:CURRENT
   attr wl_sysstat label "Load Min: $data{min1}, Max: $data{max1}, Aktuell: $data{currval1}"
   attr wl_sysstat room System
   
@@ -794,7 +794,7 @@ SYSSTAT_getStat($)
   define sysstatlog FileLog /usr/local/FHEM/var/log/sysstat-%Y-%m.log sysstat
   attr sysstatlog nrarchive 1
-  define wl_sysstat weblink fileplot sysstatlog:sysstat:CURRENT
+  define svg_sysstat SVG sysstatlog:sysstat:CURRENT
   attr wl_sysstat label "Load Min: $data{min1}, Max: $data{max1}, Aktuell: $data{currval1}"
   attr wl_sysstat room System
   
diff --git a/fhem/www/gplot/sysstat.gplot b/fhem/www/gplot/sysstat.gplot index 2f82c5968..c592ce182 100644 --- a/fhem/www/gplot/sysstat.gplot +++ b/fhem/www/gplot/sysstat.gplot @@ -1,12 +1,12 @@ ############################ -# Display the system load values +# Display the system load values # # Corresponding FileLog definition: # define sysstatlog FileLog /usr/local/FHEM/var/log/sysstat-%Y-%m.log sysstat # attr sysstatlog nrarchive 1 # # Corresponding FileLog definition: -# define wl_sysstat weblink fileplot sysstatlog:sysstat:CURRENT +# define svg_sysstat SVG sysstatlog:sysstat:CURRENT # attr wl_sysstat label "Load Min: $data{min1}, Max: $data{max1}, Aktuell: $data{currval1}" # attr wl_sysstat room System @@ -18,7 +18,11 @@ set xlabel " " set title '' set ylabel "Load" +set y2label "°C" #FileLog 4:load:0: +#FileLog 4:temperature:0: -plot "< awk '/load:/ {print $1, $4}' " using 1:2 ls l0 axes x1y1 title 'Load' with lines +plot \ + 1:2 ls l0 axes x1y1 title 'Load' with lines + 1:2 ls l2 axes x1y2 title 'Temperature (°C)' with lines