Pat, I have achieved the graphic I wanted. I have created a new variable called rainTotalAvg I changed line 1571 and added: if observation == 'rainTotalAvg': sql_lookup = 'SELECT strftime ("{0}", datetime (dateTime, "unixepoch")) as {1}, IFNULL ({2} ({3}), 0) / count (DISTINCT (strftime ("% Y" , datetime, "unixepoch"))) as obs from archive WHERE dateTime> = {4} AND dateTime <= {5} GROUP BY {6}; '. format (strformat, xaxis_groupby, aggregate_type, obs_lookup, start_ts, end_ts, xaxis_groupby ) else: sql_lookup = 'SELECT strftime ("{0}", datetime (dateTime, "unixepoch")) as {1}, IFNULL ({2} ({3}), 0) as obs FROM archive WHERE dateTime> = {4} AND dateTime <= {5} GROUP BY {6}; '. Format (strformat, xaxis_groupby, aggregate_type, obs_lookup, start_ts, end_ts, xaxis_groupby) Then modify lines 1138, 1191 and 1524 by adding 'or observation_type == "rainTotalAvg"' The chart: The blue column is the average of other 3 or 2 from September.
-- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0430cb1a-5e5d-4216-ab4d-2b3a45560a2d%40googlegroups.com.