Hi Gary, thanks for your answer and your suggestion. Changing the unit for the whole group will work for sure. I indeed was hoping that there is a solution on a plot by plot basis, since something that makes sense on a daily base (minutes) doesn't make sense on a monthly/year base (hours). So in the end the only solution would be to create a second data_type which is then defined in a new group which is defined as hours or to either live with one unit type for all plots.
Best regards, Matthias gjr80 schrieb am Donnerstag, 29. Juli 2021 um 12:30:37 UTC+2: > All you want to do is change the ‘units’ used in the plots just like you > would to plot temperature inC or F. In this case you need to tell WeeWX the > units you wish to use for group_interval is hours not minutes. > Unfortunately, that is done on a skin by skin basis and can’t be done on a > plot by plot basis. Try adding the following (untested) to WeeWX.conf under > [StdReport] [[Seasons]]: > > [StdReport] > …. > [[Seasons]] > …. > [[[Units]]] > [[[[Groups]]]] > group_interval = hours > > Save weewx.conf and restart WeeWX. This should cause all of your plots > that include an observation that belongs to group_interval to plot in hours > rather than minutes. You may need to delete plots with an aggregate period > (eg week, month and year) to force them to be re-generated otherwise you > will need to wait for them to re-generate. > > This approach may have some unintended consequences in some reports or > (possibly) other plots, unfortunately I am away from my PC and cannot test > the change. If this does work and gives you (some of) the plots you want > you can achieve a plot by plot effect by create a cutdown copy of the > Seasons skin that will just produce the plots in hours (and nothing else) > and the original Seasons skin can produce everything else plus your plot in > minutes. > > Gary > > On Thursday, 29 July 2021 at 18:51:05 UTC+10 [email protected] wrote: > >> Hello altogether, >> >> I added to the sunshine_time extension to my weewx configuration and also >> the plots to the Seasons-Skin and all works great. >> But for the weekly, monthly and yearly plots, I would like to create >> plots with hours instead of the minutes, which is the default unit (defined >> as group_interval which is in minutes). >> So I checked the description of the image generator but didn't find >> anything. >> I tried it with sunshine_time.hours which works for the current values >> but not for the image generation. >> Anyone has an idea? >> >> Best regards, >> Matthias >> > -- 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/86a77115-6a64-4e7f-9363-0f0d7b99fbc8n%40googlegroups.com.
