[weewx-user] accumulated 24h - rain in Seasons skin - how to instruct the imagegenerator

2022-10-21 Thread Rainer Lang

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

--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/6557cd6d-fb13-cf2a-eaeb-af6a8a0566ae%40gmail.com.


Re: [weewx-user] accumulated 24h - rain in Seasons skin - how to instruct the imagegenerator

2022-10-21 Thread Chuck Rhode
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 21 Oct 2022 11:16:31 +0200
Rainer Lang  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-

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/20221021115430.7c06e97c%40wealthy.


Re: [weewx-user] accumulated 24h - rain in Seasons skin - how to instruct the imagegenerator

2022-10-21 Thread Rainer Lang

@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



On 21.10.2022 18:54, Chuck Rhode wrote:


On Fri, 21 Oct 2022 11:16:31 +0200
Rainer Lang  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 




--
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9f8fca5e-558e-4f6f-8a66-d507b7982e12%40gmail.com.