# Created by FHEM/98_SVG.pm, 2018-10-29 11:00:46 set terminal png transparent size crop set output '.png' set xdata time set timefmt "%Y-%m-%d_%H:%M:%S" set xlabel " " set title '' set ytics set y2tics ("plugged" 1,"unplugged" 0) set grid set ylabel "" set y2label "" set yrange [0:100] set y2range [-0.2:1.2] #DBLogging ku.Tablet:battery_level #DBLogging ku.Tablet:power:::$val=($val=~"unplugged"?0:1) plot "" using 1:2 axes x1y1 title 'Battery' ls l0 lw 1 with lines,\ "" using 1:2 axes x1y2 title 'Power' ls l1 lw 1 with lines