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