I am trying to create a chart in the Belchertown skin that would display the average monthly climatological data such as a average high, average low, average dewpoint and average rainfall per month. This would average across my entire database so it would not be year specific.
I have the averages for everything working correctly except the rainfall. No matter what I do, I am either only getting a per day average, or a sum of all rainfall (i.e. monthly rainfall in February for each year TOTAL instead of average. So in the graph below it is showing 13in when in fact that is the sum of rain in February over a 3 year period and not the average of the total monthly rainfall in each February).
I have consulted the Belchertowwn skin wiki, but the definitions of aggregate_type, aggregate_interval, and average_type, are a bit unclear and use some circular definitions. I looked at some chart examples, but they also seem to sum the totals and not average them. I do not mean this as criticism as the skin really rocks!!!!! I know this skin uses Highcharts, but the Highcharts forums seem a foreign language to me.
I have tried different combinations of interval, and aggregate/average tyIIpes but that does not seem to work.
Here is the code from my graphs.conf:
[averageclimate]
title = "Average Climate by Month"
show_button = true
button_text = "Average Climate"
type = spline
time_length = all
tooltip_date_format = "dddd LL"
aggregate_interval = 86400 # 1 day
gapsize = 86400 # 1 day in seconds
start_at_beginning_of_month = true
[[avgclimatetotal]]
title = "Average Climatological Values by Month"
type = spline
aggregate_interval = 86400 # 1 day
xAxis_groupby = month
xAxis_categories = 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
[[[outTemp]]]
aggregate_type = avg
average_type = max
zIndex = 2
name = Max Average Temperature
color = red
[[[[marker]]]]
enabled = true
radius = 4
[[[outTemp_min]]]
name = Min Average Temperature
observation_type = outTemp
aggregate_type = avg
average_type = min
zIndex = 2
[[[[marker]]]]
enabled = true
radius = 4
[[[dewpoint]]]
name = Average Dewpoint
aggregate_type = avg
zIndex = 2
color = purple
[[[[marker]]]]
enabled = true
radius = 4
[[[rain]]]
name = Rain Total
aggregate_interval = day
aggregate_type = sum
average_type = none
type = column
yAxis = 1
zIndex = 0
color = "#268bd2"
Here is an example of the output I am getting:
I am screwing something up here, I just do not know what it is. Any help is appreciated!!!