2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00
fhem-mirror/fhem/www/gplot/sysstat.gplot
2022-03-07 08:45:37 +00:00

30 lines
786 B
Plaintext

############################
# 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 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
set readonly
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 "Load"
set y2label "&#xb0;C"
#FileLog 4:load:0:
#FileLog 4:temperature:0:
plot \
1:2 ls l0 axes x1y1 title 'Load' with lines
1:2 ls l2 axes x1y2 title 'Temperature (&#xb0;C)' with lines