I find myself the answer in the userguide :
Including the same SQL type more than once in a plot
Another example. Say you want a plot of the day's temperature, overlaid
with hourly averages. Here, you are using the same data type (outTemp) for
both plot lines, the first with averages, the second without. If you do the
obvious it won't work:
## WRONG ##
[[[daytemp_with_avg]]]
[[[[outTemp]]]]
aggregate_type = avg
aggregate_interval = 3600
[[[[outTemp]]]] # OOPS! The same section name appears more than once!
The option parser does not allow the same section name (outTemp in this
case) to appear more than once at a given level in the configuration file,
so an error will be declared (technical reason: formally, the sections are
an unordered dictionary). If you wish for the same SQL type to appear more
than once in a plot then there is a trick you must know: use option
data_type. This will override the default action that the logical line name
is used for the SQL type. So, our example would look like this:
[[[daytemp_with_avg]]]
[[[[avgTemp]]]]
data_type = outTemp
aggregate_type = avg
aggregate_interval = 3600
label = Avg. Temp.
[[[[outTemp]]]]
Le jeudi 3 janvier 2019 13:24:17 UTC+1, Mic G77 a écrit :
>
> Hello,
>
> I have two database with the same kind of records :
> In my first database, i have stored data until the 31th of december 2018.
> in the second database, weewx stores data from the 1st of january.
>
> I have tried to do a graph in the skin.conf file with the following:
> [[[yearinside]]]
> [[[[inTemp]]]]
> [[[[inTemp]]]]
> data_binding="wx_2018_binding"
> wx_2018_binding is of course the binding for my "old" database.
>
> I got the following error :
> reportengine: Failed to read skin configuration file
> /etc/weewx/skins/Standard/skin.conf for report StandardReport: Duplicate
> section name at line 803.
>
> Any idea to solve this ?
>
> Thanks in advance.
>
>
> Mic
>
--
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].
For more options, visit https://groups.google.com/d/optout.