From 9ab4b6c3bb9d0aa3b92c989f62326d5784962a18 Mon Sep 17 00:00:00 2001 From: pahenning <> Date: Mon, 13 Feb 2012 15:52:31 +0000 Subject: [PATCH] Plotfiles for solar inverter Sunways NT5000 git-svn-id: https://svn.fhem.de/fhem/trunk@1258 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/nt5000d.gplot | 57 ++++++++++++++++++++++++++++++++++++++ fhem/contrib/nt5000m.gplot | 46 ++++++++++++++++++++++++++++++ fhem/contrib/nt5000y.gplot | 53 +++++++++++++++++++++++++++++++++++ 3 files changed, 156 insertions(+) create mode 100644 fhem/contrib/nt5000d.gplot create mode 100644 fhem/contrib/nt5000m.gplot create mode 100644 fhem/contrib/nt5000y.gplot diff --git a/fhem/contrib/nt5000d.gplot b/fhem/contrib/nt5000d.gplot new file mode 100644 index 000000000..4d83c3fbb --- /dev/null +++ b/fhem/contrib/nt5000d.gplot @@ -0,0 +1,57 @@ +################################################ +# Display the current data from an NT5000 solar inverter +# +# Prof. Dr. Peter A. Henning, April 2011 +# +# Corresponding FileLog definition: +# define FileLog +# + +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 grid xtics ytics + +set ytics nomirror +set y3tics +set y2tics +set ytics + + +set ylabel "P [kW]" +set y2label "Wd [kWh]" +set y3label "Udc [V]" +set y4label "T [°C]" +set y5label "S [W/m²]" + +set yrange [0:4.5] +set y2range [0:35] +set y3range [0:750] +set y4range [-5:95] +set y5range [0:850] + +## These are passed to the FileLog module to sort out data +## column_spec is ::: +## may be written as ,, then the first column is interpreted as the time value +## The following functions are implemented: +## - int (to cut off % from a number, as for the actuator) +## - delta-h / delta-d to get rain/h and rain/d values from continuous data. +# +#FileLog 9:reading:0: +#FileLog 12:reading:0: +#FileLog 4:reading:0: +#FileLog 10:reading:0: +#FileLog 11:reading:0: + + +## These are either passed to the gnuplot program +## or to the SVG module +plot \ + "< egrep 'Pac' " using 1:2 axes x1y1 title 'P [kW]' with lines ls l0fill,\ + "< egrep 'Wd' " using 1:2 axes x1y2 title 'Wd [kWh]' with lines,\ + "< egrep 'Udc' " using 1:2 axes x1y3 title 'Udc [V]' with lines,\ + "< egrep 'Temp' " using 1:2 axes x1y4 title 'T [°C]' with lines css 'display:none;',\ + "< egrep 'S' " using 1:2 axes x1y5 title 'S [W/m²]' with lines css 'display:none;' \ No newline at end of file diff --git a/fhem/contrib/nt5000m.gplot b/fhem/contrib/nt5000m.gplot new file mode 100644 index 000000000..9e7c02998 --- /dev/null +++ b/fhem/contrib/nt5000m.gplot @@ -0,0 +1,46 @@ +################################################ +# Display the monthly data from an NT5000 solar inverter +# +# Prof. Dr. Peter A. Henning, April 2011 +# +# Corresponding FileLog definition: +# define FileLog +# + +set terminal png transparent size crop +set output '.png' +set xdata +set timefmt "%Y-%m-%d_%H:%M:%S" +set xlabel " " +set ytics +set y2tics nomirror +set title '' +set grid xtics y2tics + +set ylabel "Wd [kWh]" +set y2label "Wm [%]" +set y3label "Wm [kWh]" + +set yrange [0:35] +set y2range [0:190] +set y3range [0:750] + +## These are passed to the FileLog module to sort out data +## column_spec is ::: +## may be written as ,, then the first column is interpreted as the time value +## The following functions are implemented: +## - int (to cut off % from a number, as for the actuator) +## - delta-h / delta-d to get rain/h and rain/d values from continuous data. +# +#FileLog 4,5:DEV,nt5000,LASTM,END.*W_D:0: +#FileLog 4,7:DEV,nt5000,LASTM,END.*W_D:0: +#FileLog 4,6:DEV,nt5000,LASTM,END.*W_D:0: + +## These are either passed to the gnuplot program +## or to the SVG module +plot \ + "< egrep 'W_D' " using 4:5 axes x1y1 title 'Wd [kWh]' with bars ls l2fill,\ + "< egrep 'W_D' " using 4:7 axes x1y2 title 'Wm [%]' with lines ls l4,\ + "< egrep 'W_D' " using 4:6 axes x1y3 title 'Wm [kWh]' with histeps ls l3 + + \ No newline at end of file diff --git a/fhem/contrib/nt5000y.gplot b/fhem/contrib/nt5000y.gplot new file mode 100644 index 000000000..0773d7d0e --- /dev/null +++ b/fhem/contrib/nt5000y.gplot @@ -0,0 +1,53 @@ +################################################ +# Display the yearly data from an NT5000 solar inverter +# +# Prof. Dr. Peter A. Henning, April 2011 +# +# Corresponding FileLog definition: +# define FileLog +# + +set terminal png transparent size crop +set output '.png' +set xdata +set timefmt "%Y-%m-%d_%H:%M:%S" +set xlabel " " +set ytics +set y2tics nomirror +set title '' +set grid xtics y2tics + +set ylabel "Wm [kWh]" +set y2label "Wm(exp) [kWh]" +set y3label "Wy [kWh]" +set y4label "Wy [%]" + +set yrange [0:750] +set y2range [0:750] +set y3range [0:5500] +set y4range [0:125] + + + +## These are passed to the FileLog module to sort out data +## column_spec is ::: +## may be written as ,, then the first column is interpreted as the time value +## The following functions are implemented: +## - int (to cut off % from a number, as for the actuator) +## - delta-h / delta-d to get rain/h and rain/d values from continuous data. +# +#FileLog 4,5:TODAY.*W_M:0: +#FileLog 4,6:TODAY.*W_M:0: +#FileLog 4,7:TODAY.*W_M:0: +#FileLog 4,8:TODAY.*W_M:0: + + +## These are either passed to the gnuplot program +## or to the SVG module +plot \ + "< egrep 'W_M' " using 4:5 axes x1y1 title 'Wm [kWh]' with bars ls l3fill,\ + "< egrep 'W_M' " using 4:6 axes x1y2 title '' with bars ls l4,\ + "< egrep 'W_M' " using 4:7 axes x1y3 title 'Wy [kWh]' with histeps ls l5,\ + "< egrep 'W_M' " using 4:8 axes x1y4 title 'Wy [%]' with lines ls l6 + + \ No newline at end of file