accumulated 24h - rain in Seasons skin - how to instruct the imagegenerator

73 views
Skip to first unread message

Rainer Lang

unread,
Oct 21, 2022, 5:16:38 AM10/21/22
to weewx-user

Hi guys,

the weewx standard depiction of rain in the Seasons skin is accumulated rain per hour as a box plot in the skin.conf  [[[dayrain]]] stanza

how can I make the imagegenerator create a plot where the rain is shown as accumulated rain by

1) a line
2) a line as top delimiter and the area below filled with
some color

By accumulated I mean that the actual sum of rainfall in the reporting interval (300 s) is plotted over a 24 h period
each new rainfall adding to the value before (result: an ascending "line" or "staircase")

e.g. 0.0,0.0,0.2,0.4,0.5,0.8,1.2,1.5 etc.

2nd question and alternative depiction:

how can I have the before mentioned and create a reset at midnight

thanks for helping me out

Chuck Rhode

unread,
Oct 21, 2022, 12:54:40 PM10/21/22
to weewx...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 21 Oct 2022 11:16:31 +0200
Rainer Lang <lang....@gmail.com> wrote:

> how can I make the imagegenerator create a plot where the rain is
> shown as accumulated rain by ... a line as top delimiter and the
> area below filled with some color

It's trivial to generate a cumulative bar plot.

> [[[dayrain]]]
> yscale = None, None, 0.02
> plot_type = bar
> [[[[rain]]]]
> aggregate_type = cumulative
> aggregate_interval = 900 # 15 minutes
> label = Rain (hourly accumulation)

It is not so trivial to replace the WeeWX Image Generator with mine
that I ship with my Phenology Extension. This adds support for the
fill_curve option ... among a great many other things.

> [[[dayrain]]]
> yscale = None, None, 0.02
> plot_type = line
> fill_curve = True
> fill_color = "#72b2c420"
> [[[[rain]]]]
> aggregate_type = cumulative
> aggregate_interval = 900 # 15 minutes
> label = Rain (hourly accumulation)

Which produces the following screenshot seen here dressed in my
"Sperry 1100" theme:

o https://lacusveris.com/Screenshot%20from%202022-10-21%2011-23-42.png

"How to" details may be found at:

o https://lacusveris.com/Phenology/weewx_extension.shtml

One might say, though, that this approach is overkill in every sense.
Not only is installation and use of the Phenology Extension a fraught
process, but the Phenology Image Generator itself operates at somewhat
below peak efficiency. And I note from the above screenshot that I
have not stretched the curve fill to include the ramp-up from the last
missing value on the left. Oh, well ....

- --
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather: http://LacusVeris.com/WX
.. 57° — Wind SSW 15 mph

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCY1LOxgAKCRBg2/xipKOW
UrAEAJ9BfRavrD9rRgUhpM/koj6FrCExkACfdhC6IKMYr+ae5mvHwegbaHtKXJI=
=bBp6
-----END PGP SIGNATURE-----

Rainer Lang

unread,
Oct 21, 2022, 6:09:41 PM10/21/22
to weewx-user

@chuck:
- thanks for the "cumulative" key word - hadn't found that so far - works perfectly
- as for the Phenology Extension, I'm using that for one of my stations already for quite some time - that's where my fill question came from
but I can see that with plot_type = bar and aggregate_interval = 300 and width = 2  the area under the curve is also fully filled 😎
even with the default weewx image generator


what remains open is the question about how to reset the cumulative graph to 0 at midnight

Reply all
Reply to author
Forward
0 new messages