graph of yearly rain total for past 10+ years

92 views
Skip to first unread message

Michael Hornsby

unread,
Dec 8, 2019, 8:32:52 PM12/8/19
to weewx-user
Hi

I've been looking in the forums and the documentation with no luck. I have 10+ years of data and would like to create a graph of total rain by year since the the start my data. I'd also like to explore other yearly graphs e.g. avg temp etc

I can see Belchertown has a similar graphs but can't see how to do with the standard skins ? Is it possible ?

Many thanks
Michael


.



gjr80

unread,
Dec 8, 2019, 10:33:17 PM12/8/19
to weewx-user
Hi,

Short answer is no you cannot do that with the existing WeeWX plot engine. Longer answer; when plotting aggregates using the WeeWX plot engine each line you plot must use the same aggregate interval throughout. So you can plot an aggregate over an hour, a day or a week as these periods are all precisely and singularly defined. However, you cannot aggregate over a month or a year as whilst these intervals are precisely defined they vary from month to month (28, 29, 30 or 31 days) and year to year (365 or 366 days). The best you could do would be to create a plot with an aggregate period of 365 days (or 366 days), but of course this will only be an approximation and I suspect you may have some issues having your 365/366 day interval align even remotely close to the actual calendar year.

You could of course write a custom image generator to do this but that would involve substantial effort.

Gary

John Smith

unread,
Dec 9, 2019, 1:40:50 AM12/9/19
to weewx-user


On Monday, 9 December 2019 14:33:17 UTC+11, gjr80 wrote:
Hi,

Short answer is no you cannot do that with the existing WeeWX plot engine. Longer answer; when plotting aggregates using the WeeWX plot engine each line you plot must use the same aggregate interval throughout. So you can plot an aggregate over an hour, a day or a week as these periods are all precisely and singularly defined. However, you cannot aggregate over a month or a year as whilst these intervals are precisely defined they vary from month to month (28, 29, 30 or 31 days) and year to year (365 or 366 days). The best you could do would be to create a plot with an aggregate period of 365 days (or 366 days), but of course this will only be an approximation and I suspect you may have some issues having your 365/366 day interval align even remotely close to the actual calendar year.

You could of course write a custom image generator to do this but that would involve substantial effort.

Wouldn't using high charts be able to do some/all of this? 

gjr80

unread,
Dec 9, 2019, 3:42:26 AM12/9/19
to weewx-user
Highcharts is certainly very flexible and provided you can feed it appropriate data it will plot just about anything you want. The OP asked if the Standard skin could do this and unfortunately it cannot.

Gary

Michael Hornsby

unread,
Dec 9, 2019, 4:42:24 AM12/9/19
to weewx-user
Thank you - you’ve confirmed what I thought.

p q

unread,
Dec 9, 2019, 8:58:52 AM12/9/19
to weewx...@googlegroups.com
This isn't something that's going to change very much very fast. Wouldn't doing it once (or once a year)  in something like Excel be a better use of time than automating it?

On Mon, Dec 9, 2019 at 1:42 AM Michael Hornsby <michael....@gmail.com> wrote:
Thank you - you’ve confirmed what I thought.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a9bd0306-e724-4546-afe5-b01f47b51d20%40googlegroups.com.


--
Peter Quinn
(415)794-2264

vince

unread,
Dec 9, 2019, 7:29:45 PM12/9/19
to weewx-user
On Monday, December 9, 2019 at 5:58:52 AM UTC-8, p q wrote:
This isn't something that's going to change very much very fast. Wouldn't doing it once (or once a year)  in something like Excel be a better use of time than automating it?



I dunno, it'll graph whatever is in the database.

Here are some 10-year plots from my system - https://www.skahan.net/weewx/10year.html
 

p q

unread,
Dec 9, 2019, 7:45:08 PM12/9/19
to weewx...@googlegroups.com
Nice. I guess when I get 10 years worth of data I'll want to do the same. (3+ years so far...)

--
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+...@googlegroups.com.


--
Peter Quinn
(415)794-2264
Reply all
Reply to author
Forward
0 new messages