From 92624bcd5fc503d157596f1051aacf6bc48da5bf Mon Sep 17 00:00:00 2001 From: hexenmeister Date: Fri, 8 Aug 2014 21:56:55 +0000 Subject: [PATCH] SYSMON: power (ac, usb, byttery) plots git-svn-id: https://svn.fhem.de/fhem/trunk@6380 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/gplot/SM_power_ac.gplot | 23 +++++++++++++++++++++++ fhem/www/gplot/SM_power_battery.gplot | 27 +++++++++++++++++++++++++++ fhem/www/gplot/SM_power_usb.gplot | 23 +++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 fhem/www/gplot/SM_power_ac.gplot create mode 100644 fhem/www/gplot/SM_power_battery.gplot create mode 100644 fhem/www/gplot/SM_power_usb.gplot diff --git a/fhem/www/gplot/SM_power_ac.gplot b/fhem/www/gplot/SM_power_ac.gplot new file mode 100644 index 000000000..adfe71dd9 --- /dev/null +++ b/fhem/www/gplot/SM_power_ac.gplot @@ -0,0 +1,23 @@ +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 +set grid y2tics +set ylabel "Spannung (V)" +set y2label "Strom (mA)" +set yrange [4.4:5.2] +#set y2range [0:1000] +set y3range [0:2] + +#FileLog 6:power_ac_stat\x3a:0: +# --- FileLog 7:power_ac_stat\x3a:0:$fld[6]/1000 +#FileLog 7:power_ac_stat\x3a:0: +#FileLog 4:power_ac_stat\x3a:0: + +plot "" using 1:2 axes x1y1 title 'Spannung' ls l0 lw 1.2 with lines,\ + "" using 1:2 axes x1y2 title 'Strom' ls l2 lw 1.2 with lines,\ + "" using 1:2 axes x1y3 title 'Online' ls l1fill lw 0 with steps diff --git a/fhem/www/gplot/SM_power_battery.gplot b/fhem/www/gplot/SM_power_battery.gplot new file mode 100644 index 000000000..2610010a1 --- /dev/null +++ b/fhem/www/gplot/SM_power_battery.gplot @@ -0,0 +1,27 @@ +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 +set grid y2tics +set ylabel "Spannung (V)" +set y2label "Strom (mA)" +set yrange [4.4:5.2] +#set y2range [0:1000] +set y3range [0:2] +set y3range [0:100] + +#FileLog 6:power_battery_stat\x3a:0: +# --- FileLog 7:power_battery_stat\x3a:0:$fld[6]/1000 +#FileLog 7:power_battery_stat\x3a:0: +#FileLog 8:power_battery_stat\x3a:0: +#FileLog 4:power_battery_stat\x3a:0: + + +plot "" using 1:2 axes x1y1 title 'Spannung' ls l0 lw 1.2 with lines,\ + "" using 1:2 axes x1y2 title 'Strom' ls l2 lw 1.2 with lines,\ + "" using 1:2 axes x1y4 title 'Ladung' ls l3 lw 1.2 with lines,\ + "" using 1:2 axes x1y3 title 'Online' ls l1fill lw 0 with steps diff --git a/fhem/www/gplot/SM_power_usb.gplot b/fhem/www/gplot/SM_power_usb.gplot new file mode 100644 index 000000000..3a50b0af7 --- /dev/null +++ b/fhem/www/gplot/SM_power_usb.gplot @@ -0,0 +1,23 @@ +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 +set grid y2tics +set ylabel "Spannung (V)" +set y2label "Strom (mA)" +set yrange [4.4:5.2] +#set y2range [0:1000] +set y3range [0:2] + +#FileLog 6:power_usb_stat\x3a:0: +# --- FileLog 7:power_usb_stat\x3a:0:$fld[6]/1000 +#FileLog 7:power_usb_stat\x3a:0: +#FileLog 4:power_usb_stat\x3a:0: + +plot "" using 1:2 axes x1y1 title 'Spannung' ls l0 lw 1.2 with lines,\ + "" using 1:2 axes x1y2 title 'Strom' ls l2 lw 1.2 with lines,\ + "" using 1:2 axes x1y3 title 'Online' ls l1fill lw 0 with steps