Let me clear a few things up. The approach taken by the WeeWX image generator is to generate a given image/plot every 'aggregate_interval' seconds where aggregate_interval is the aggregate interval applied to that particular plot. If there is no aggregate_interval (eg for 'day' plots) the image/plot is generated on every report cycle, by default week, month and year plots use a one, three and 24 hour aggregate_interval respectively. This results in the default behaviour where week, month and year plots are generated every one, three and 24 hours respectively (the one, three and 24 hour period is taken from the time the plot was last generated rather than on the hour or such like, so the actual hour/minute of generation tends to vary as WeeWX is started/stopped/restarted etc over time). The only modification that can be made to this behaviour is through changing the aggregate_interval setting for a plot, the link to aggregate_interval cannot be turned off as such. The issue you strike if you do remove the aggregate_interval for say a year plot is that you are now querying/plotting significantly more data points (eg 27 hours = 324 points at a five minute interval, one year = approx 105000 points at a five minute interval) and there will likely be a drop in performance for arguably little extra benefit.
The report_timing <http://weewx.com/docs/customizing.htm#The_report_timing_option> and stale_age <http://weewx.com/docs/customizing.htm#stale_age> options can be used to control when reports are run/images are generated; however, they can only delay a report/image generation they cannot make it happen more frequently (eg you cannot use the report_timing option to force a year plot with a 24 hour aggregate_interval to be generated every report cycle). The stacked wind rose generator is slightly different in that it does not use an aggregate_interval. However, just as with the image generator the stacked wind rose generator suffers from the same performance penalties for long period plots, so to mitigate this issue I set the following in terms of when wind rose plots are generated: - plots that do not exist are always generated - plots covering a period less than seven days are generated every report cycle - plots covering from seven days to less than 30 days are generated every one hour - plots covering 30 days or more are generated every 24 hours This closely follows the default WeeWX image generator behaviour. As with the image generator this behaviour is fixed but with the stacked wind rose generator you no longer have the ability to modify this behaviour through changing the aggregate_interval setting. You can use the report_timing option to control the stacked wind rose generator but it does not support the stale_age option (largely because when I wrote the stacked wind rose generator the WeeWX image generator did not support the stale_age option, it is simple enough to add and I likely do so in due course). I hope this explains the behaviour being seen. Gary On Monday, 8 June 2020 11:06:05 UTC+10, Jerry Keefe wrote: > > I expected that I would have to add a section under [[[[week_images]]]]. > Both graphics run under [[[[day_images]]]] > > On Sunday, June 7, 2020 at 5:49:02 PM UTC-7, Graham Eddy wrote: >> >> not all items are generated at every cycle - it is graduated. >> for example, why generate a yearly graph every 5 mins. >> scheduling options are available to override defaults. >> g-eddy >> >> On 8 Jun 2020, at 10:40 am, Jerry Keefe <[email protected]> wrote: >> >> StackedWindRose is now generating daily and weekly images but on a >> puzzlin' schedule. I expected them to both run every 5 minutes, until I >> implemented Graham's suggestions. But the weekly wind rose png only gets >> generated every 12th run. This OK, but not what I expected. It seems like >> weekly gets generated once every 12th run, but not on a repeatable on the >> hour schedule like the other weekly graphics. How does it know to do that? >> └─[$] <> ll *windrose.png >> -rw-r--r-- 1 root staff 8.2K Jun 7 17:15 daywindrose.png >> -rw-r--r-- 1 root staff 9.0K Jun 7 16:55 weekwindrose.png >> >> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/56d2c5dd-0a92-4efd-819c-89aa221e2984o%40googlegroups.com.
