Can I influence the position of a config object from a lower level?

64 views
Skip to first unread message

michael.k...@gmx.at

unread,
Jul 4, 2023, 1:50:46 PM7/4/23
to weewx-user
https://weewx.com/docs/latest/customizing.htm#Processing_order

shows four option hierarchies.

When for example, the skin.conf defines:

[ImageGenerator]
    [[day_images]]
        [[[daytemp]]]
            [[[[outTemp]]]]
            [[[[dewpoint]]]]


and weewx.conf defines:

[StdReport]
    [[MyReport]]
        [[[ImageGenerator]]]
            [[[[day_images]]]]
                [[[[[inDaytemp]]]]]
                    [[[[[[inTemp]]]]]]
                    [[[[[[inDewpoint]]]]]]

inDaytemp is after dayTemp. Can I specifiy inDaytemp to appear before daytemp in the config object data structure?

Tom Keffer

unread,
Jul 4, 2023, 2:08:20 PM7/4/23
to weewx...@googlegroups.com
Not sure why you would care but, no, during the merge, new items are appended. 

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8fd0252e-b6b1-427e-bff7-a7c54e73ff97n%40googlegroups.com.

michael.k...@gmx.at

unread,
Jul 4, 2023, 2:46:10 PM7/4/23
to weewx-user
I am caring, because my skin puts images in the order they are configured, something like this in the cheetah template:

#for $imageName in $ImageGenerator
<img src="${imageName}.png" alt="" class="mw-100">
#end for

If I want to put an extra plot, I cannot put it anywhere between by just adding it's config in weewx.conf, I have to edit skin.conf to achieve this.

Tom Keffer

unread,
Jul 4, 2023, 2:53:46 PM7/4/23
to weewx...@googlegroups.com
OK. Where does $ImageGenerator come from? Is it a search list extension that scans the [ImageGenerator] section of the merged skin.conf, then uses that ordering? If so, perhaps it could also accept an option that specifies the ordering.

This is the way the "self-provisioning" feature of the Seasons skin works. See section [DisplayOptions].

michael.k...@gmx.at

unread,
Jul 4, 2023, 3:11:50 PM7/4/23
to weewx-user
Yes, it is a search list extension. So, I specify a key and a list in the config, then the ordering is then done in the template, following some naming conventions?

Tom Keffer

unread,
Jul 4, 2023, 3:16:59 PM7/4/23
to weewx...@googlegroups.com
That's right. That's basically what the Seasons skin does.

Reply all
Reply to author
Forward
0 new messages