Running 12 month span for Average Climatological graph

87 views
Skip to first unread message

lecoqacr...@gmail.com

unread,
Jan 5, 2025, 11:31:58 AM1/5/25
to weewx-user
Is it possible to have a running 12 month period showing last 12 months graph and not the yearly graph only for the Belchertown Skin? Below is the graphs.conf for this section.

title = "Climatological Values since weather station startup"
    show_button = true
    button_text = Climate
    type = spline
#    time_length = year_specific
    time_length = all
#    year_specific = 2023
    aggregate_type = max
    aggregate_interval = 86400 # 1 day
    gapsize = 86400000
    xAxis_groupby = month
    xAxis_categories = 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'

I had searched but only found the ability to do specific days,weeks or months. I am interested in a running 12 month period showing last 12 months regardless to where we are in the year without being limited to a yearly display showing only the present year.
Thank you for weewx and all of the support.
Tim

Tom Keffer

unread,
Jan 5, 2025, 11:44:00 AM1/5/25
to weewx...@googlegroups.com
I guess I don't quite understand. The WeeWX graphs have always shown a running 12 months. Well, actually 13 months.

image.png

Perhaps you could add some details about what you're looking for?


--
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 visit https://groups.google.com/d/msgid/weewx-user/5c355929-3e48-419f-b585-1f53f0751e98n%40googlegroups.com.

vince

unread,
Jan 5, 2025, 2:09:51 PM1/5/25
to weewx-user
Untested.....but......

The Seasons skin uses:
    [[year_images]]
        x_label_format = %m
        bottom_label_format = %x %X
        time_length = 31536000 # 365 days
        aggregate_type = avg
        aggregate_interval = 1d
        show_daynight = false


The Standard skin uses:
    [[year_images]]
        x_label_format = %m/%d
        bottom_label_format = %x %X
        time_length = 365d
        aggregate_type = avg
        aggregate_interval = 1d
        show_daynight = false


The Belchertown graphs.conf uses:
[year]
    # Chart Timespan Defaults
    title = "This Year"
    show_button = true
    button_text = "Year"
    type = spline
    time_length = year
    tooltip_date_format = "dddd LL"

    aggregate_type = max
    aggregate_interval = 86400 # 1 day
    gapsize = 86400000 # 1 day in milliseconds

I don't know if time_length in seconds or days or year all end up in the same result for Belchertown specifically, but I'd try making your graphs.conf for Belchertown look like either of the weewx default skins and see if that works.  I've found that messing with Belchertown sometimes requires a weewx stop/restart,  so I'd recommend that just in case.

Worth a try.

Timothy L

unread,
Jan 11, 2025, 11:23:52 AM1/11/25
to weewx...@googlegroups.com
My apologies for not seeing your email sooner. I was attempting to change it on the homepage since it reset at the beginning of the year to just showing January. Thank you to you and Vince for your replies. 


Reply all
Reply to author
Forward
0 new messages