Hi Paul,
At the moment there is no ability in the WeeWX plot engine to scale values
that are plotted. Ideally, you need to have an 'energy' field in your
archive. Is your power data coming from an inverter or such device that can
produce an energy value (cumulative or incremental)? You are right that
energy is the integral of power over time. I am not questioning your
requirements, but I would expect that calculating energy output from
instantaneous power readings every 5 minutes would, for a solar power
source, be indicative at best. If your power values were 5 minute averages
or your sampling frequency was much higher then you would start to
reasonably approximate the actual energy production. I guess what I am
saying is is the actual energy value you are calculating really a
meaningful value or is the relative values more meaningful.
In terms of the best practice, the best practice would be to either (1)
extend your data file used by the filepile driver to include an energy
value storing energy in another re-purposed field or in a custom field or
(2) write a small custom service that calculates your energy value and adds
it to the loop packets/archive records accordingly again either in a
re-purposed field or in a custom field. Writing a custom service may seem
daunting but there are plenty of examples around and all up you are
probably only talking 20-30 lines of code.
The other advantage of a field containing energy is that you can now easily
look at aggregates such as today's energy production, yesterday's this
month's or year's or the max daily energy production etc. Far more powerful
(pun intended).
Gary
On Monday, 8 April 2019 05:55:25 UTC+10, Paul Bartholdi wrote:
>
> Hello,
>
> I did some clean-up of various files, and have a few problems related with
> graphics.
> I am using version 3.9.1(p2). Station is an IROX PRO X (te923).
> 'interval' is 5 minutes.
> All accented characters are given in "html-entities".
> Every thing works perfectly, no problem except:
>
> 1 I have been able to use accented characters in tables and graphics,
> except in the top labels. No encoding works.
>
> 2 I am using 'filepile' to get the instant power produced by the solar
> panels. The data are put in column 'radiation'. It works very nicely. Is is
> a simple and very effective solution.
> For week/month/year 'power' has no meaning, I want 'energy', the
> 'sum/integral' over a given interval (1d, 1w, 1m...).
>
> For the tables, I found the following solution (in week.html.tmpl) :
>
> <td class="stats_data">
> $week.radiation.max le
> $week.radiation.maxtime.format("%d/%m à %H:%M")<br/>
> $("%0.3f kWh" % (0.08333*$week.radiation.sum.raw)) <br/>
> </td>
>
> Is there a better way to do it? adding a new column (as rainrate)?
>
> Using the following code in skin.conf, I get the right graph, but the
> y-scale is wrong by a factor of 12 (12 measurements per hour).
>
> [[[weekradiation]]]
> yscale = None, None, 1
> plot_type = bar
> [[[[radiation]]]]
> aggregate_type = sum
> aggregate_interval = 86400
> label = Energie PV
>
> How, where can I produce the right scaling?
>
> In general, what is the best place to do these kind of adaptations?
>
> Thanks for any help/suggestion. Yours, Paul
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.