It works. Thank you very much.
But I just realized that in the chart the blue column is the sum of all
years in database and I want to compare the average ofevery year with the
sum of this year or any other.
I tried it with aggregate_type = avg and maybe rainTotal doesn't admit it
but the result is the same. My graph.conf file is:
[raintotals]
title = Lluvia por Mes
show_button = true
button_text = Totales Lluvia
type = column
time_length = all
aggregate_interval = 86400 # 1 day
[[rainmonthtotals]]
title = Historico de Lluvia por Mes
subtitle = Lluvia por Mes Desde el Comienzo
aggregate_type = avg
xaxis_groupby = month
xaxis_categories = 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul',
'Ago', 'Sep', 'Oct', 'Nov', 'Dic'
[[[rainTotal]]]
name = Lluvia Total
yaxis_minorTicks = true
[[[rainTotal2017]]]
name = 2017
time_length = year_specific
year_specific = 2017
observation_type=rainTotal
zIndex = 3
[[[rainTotal2018]]]
name = 2018
time_length = year_specific
year_specific = 2018
observation_type=rainTotal
zIndex = 4
[[[rainTotal2019]]]
name = 2019
time_length=year_specific
year_specific = 2019
observation_type=rainTotal
zIndex = 5
[[rainyeartotals]]
title = Historicos de Lluvia por Año
xaxis_groupby = year
[[[rainTotal]]]
name = Lluvia Total
[[rain2018totals]]
title = Lluvia en 2018
xaxis_groupby = month
xaxis_categories = 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul',
'Ago', 'Sep', 'Oct', 'Nov', 'Dic'
time_length = year_specific
year_specific = 2019
[[[rainTotal]]]
name = Lluvia Total
[[rainyearstotals]]
title = Lluvia por Años
xaxis_groupby = month
xaxis_categories = 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul',
'Ago', 'Sep', 'Oct', 'Nov', 'Dic'
time_length = year_specific
[[[rainTotal2017]]]
year_specific = 2017
observation_type=rainTotal
name = 2017
[[[rainTotal2018]]]
year_specific = 2018
observation_type=rainTotal
name = 2018
zIndex = 1
[[[rainTotal2019]]]
year_specific = 2019
observation_type=rainTotal
name = 2019
zIndex = 2
and this is the result:
El viernes, 9 de agosto de 2019, 21:07:17 (UTC+2), Pat escribió:
>
> Kike, I've just pushed a commit
> <https://github.com/poblabs/weewx-belchertown/commit/b3066dcd9a631d111860ac7551bc6fc64523a0de>
>
> to the skin's development branch
> <https://github.com/poblabs/weewx-belchertown/tree/development> which
> moves the per-chart timespan to a per-observation timespan. Quick tests
> show that this seems to work ok. I also added yAxis minorTicks. Feel free
> to test it if you want.
>
> You need to install the development skin by downloading the
> development.tar.gz
> <https://github.com/poblabs/weewx-belchertown/archive/development.tar.gz>,
> and install it using wee_extension like you did before. It should
> overwrite the current skin with the development skin. So have a backup of
> your current skin and settings in case you need to revert back. You may
> need to restart weewx once you've installed it.
>
> Here's the graphs.conf code I used to make the graph that is attached (it
> is like yours but you will see yAxis_minorTicks = true).
>
> [raintotals]
> title = Lluvia por Mes
> show_button = true
> button_text = Totales Lluvia
> type = column
> time_length = all
> aggregate_type = max
> aggregate_interval = 86400 # 1 day
>
> [[rainmonthtotals]]
> title = Historico de Lluvia por Mes
> subtitle = Lluvia por Mes Desde el Comienzo
> xaxis_groupby = month
> xaxis_categories = 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul'
> , 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'
> [[[rainTotal]]]
> name = Lluvia Total
> yAxis_minorTicks = true
> [[[rainTotal2019]]]
> name = 2019
> time_length = year_specific
> year_specific = 2019
> observation_type = rainTotal
> zIndex = 2
> color = "#fc0404"
>
>
> Since this is the development skin, let me know if you find issues.
>
>
>
> On Friday, August 9, 2019 at 1:56:44 PM UTC-4, Pat wrote:
>>
>> On all Highcharts options being available - not currently. Because of the
>> way which the skin gathers data from the database during Archive time, not
>> every option is available for all time. Currently I have to map a
>> graphs.conf option to a Highcharts option. Maintaining this duplicate
>> mapping system isn't ideal. So something like minorticks aren't implemented
>> yet because nobody has asked for it (until now). You can read some of
>> the thoughts here
>> <https://github.com/poblabs/weewx-belchertown/issues/185>, and if you
>> know of a way to pass graphs.conf options direct to belchertown.js.tmpl and
>> Highcharts without maintaining a mapping, please submit a PR!
>>
>> Custom charts like what you're describing I don't think will work either.
>> Each chart is for a specific time span. I don't think multiple timespans
>> per chart will work. Some testing and debugging will need to be done here
>> to see what can be done.
>>
>>
>>
>> On Friday, August 9, 2019 at 8:13:31 AM UTC-4, Kike .Asekas wrote:
>>>
>>> Hello. Magnificent skin. I am triying to have a graph that compares the
>>> historical rainfall per month with this year. This is my graphs.conf.
>>> [raintotals]
>>> title = Lluvia por Mes
>>> show_button = true
>>> button_text = Totales Lluvia
>>> type = column
>>> time_length = all
>>> aggregate_type = max
>>>
>>> aggregate_interval = 86400 # 1 day
>>>
>>> [[rainmonthtotals]]
>>> title = Historico de Lluvia por Mes
>>> subtitle = Lluvia por Mes Desde el Comienzo
>>> xaxis_groupby = month
>>> xaxis_categories = 'Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun',
>>> 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'
>>> [[[rainTotal]]]
>>> name = Lluvia Total
>>> [[[rainTotal2019]]]
>>> name = 2019
>>> time_length = year_specific
>>> year_specific = 2019
>>> observation_type = rainTotal
>>> zIndex = 2
>>> color = "#fc0404"
>>> But I get two bars with the same height, the alltime totals. It is
>>> posible this graph?
>>> And I want to add minorTicks to yaxis. It's a hicharts option but does
>>> nothing. The skin only accept hicharts series options?
>>>
>>> El sábado, 1 de junio de 2019, 18:57:56 (UTC+2), Pat escribió:
>>>>
>>>> Belchertown skin 1.0 is released!
>>>>
>>>> This update contains a lot of updates and changes including *an entire
>>>> rewrite of the Highcharts system* which allows you to make almost any
>>>> graph you want for almost any time span you want. You can see some
>>>> examples
>>>> of the charts you can make on the BelchertownWeather.com website
>>>> graphs page <https://belchertownweather.com/graphs/?graph=all>.
>>>>
>>>> You can add/remove/change/reorder any chart, change colors, add
>>>> observation plots, categorize for all time. Almost anything you want to do
>>>> is available! The skin comes with the standard 4 charts ready to go, but
>>>> there's extensive Belchertown Charts Documentation
>>>> <https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation>
>>>>
>>>> which can help you get started.
>>>>
>>>> In addition to the Charts there's now a dark mode (which has an
>>>> auto-switching mode based on sunset/sunrise), more flexibility for
>>>> translations, user customized station observation table which is updated
>>>> in
>>>> real time if the MQTT Websockets are enabled, and a lot more. Check the
>>>> release notes for all the details!
>>>>
>>>> You can download the latest release here
>>>> <https://github.com/poblabs/weewx-belchertown/releases/download/weewx-belchertown-1.0/weewx-belchertown-release-1.0.tar.gz>,
>>>>
>>>> and read all of the details on the changes here:
>>>> https://github.com/poblabs/weewx-belchertown/releases
>>>>
>>>> *Note: You cannot upgrade from Belchertown 0.9 and older*. You must
>>>> uninstall everything and reinstall new. This is due to the Chart system
>>>> being fully rewritten and the potential for conflicts. Please read
>>>> this upgrade guide if you are upgrading from an older version of
>>>> Belchertown skin
>>>> <https://github.com/poblabs/weewx-belchertown/wiki/Upgrading-to-Belchertown-skin-1.0>
>>>> .
>>>>
>>>> Thanks to all the beta testers and translators over the last couple of
>>>> months help me iron out all the kinks and shape the skin in a way that can
>>>> be translated a little easier!
>>>>
>>>> Attached are some examples of the charts that can be made. If you find
>>>> any issues, you can reply here or open an issue on the Belchertown
>>>> skin GitHub page <https://github.com/poblabs/weewx-belchertown>.
>>>>
>>>
--
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/dd075b86-b4a0-4432-9068-2d4f2d8ae816%40googlegroups.com.