How to generale/display two plots from the same observation?

23 views
Skip to first unread message

DR

unread,
Feb 23, 2026, 3:01:49 PM (3 days ago) Feb 23
to 'Jon Fear' via weewx-user
I want to use the image generator structure to generate and display two
plots of the same info, namely using rain to generate a bar chart of the
rain per hour (the standard image that gets made) and then follow with a
plot of the cumulative rain in line form.


I've tried just putting the info for the second plot right after the
first, and that didn't work.


I tried putting rain in the list to plot and order twice and that didn't
work.


Is there some other way to include this in 5.2 structure?

Thanks for any pointers.  I couldn't find an option  in the wiki or the
manual which helped me modify the skin.conf   Dale


# This list determines which plots will be shown, as well as the order in
    # which they will be displayed.  The names refer to the plots
defined in
    # the ImageGenerator section, without any time span prefix. For
example,
    # the name 'wind' refers to 'daywind', 'weekwind', 'monthwind', and
    # 'yearwind'.
    plot_groups = barometer, tempdew, tempfeel, hum, wind, winddir,
rain, rain, ET, radiation

^ two rains didn't trigger a second plot



One or the other of these plot instructions work, but does not when both
are in the  list for the image generator

        [[[dayrain]]]
            # Make sure the y-axis increment is at least 0.02 for the
rain plot
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 1h
                label = Hourly Rain


        [[[dayrain]]]
            # Make sure the y-axis increment is at least 0.02 for the
rain plot
            yscale = None, None, 0.02
            plot_type = line
            [[[[rain]]]]
                aggregate_type = cumulative
                aggregate_interval = 300
                label = Rain

Vince Skahan

unread,
Feb 23, 2026, 3:29:44 PM (3 days ago) Feb 23
to weewx-user
Try calling one dayrain1 and the other dayrain2.   You can’t duplicate tags at the same level of [[[ ]]] like that. If you look at your logs I’d expect it threw errors if you really have two [[[dayrain]]] in your skin.conf
Reply all
Reply to author
Forward
0 new messages