Colorize search list extension

67 views
Skip to first unread message

Steeple Ian

unread,
Nov 16, 2023, 12:49:33 PM11/16/23
to weewx-user
I have been looking at the colorize search list extensions in the examples folder, specifically colorize-3.py.

Am I correct in assuming that this extension only works with HTML color names and not with HEX, RGB, etc color codes?

vince

unread,
Nov 16, 2023, 2:25:26 PM11/16/23
to weewx-user
(followup)

Ian and I talked via email - he got it working by specifying '#nnnnnnnn' for colors in skin.conf if he surrounded the value in single quotes.

Steeple Ian

unread,
Nov 16, 2023, 6:00:37 PM11/16/23
to weewx-user
Yes just to confirm and thanks to Vince for the clue that nudged me in the right direction, I can confirm that the hex code enclosed in single quotes works perfectly.

Here is an extract from my skin.conf: -

[Colorize]
    [[group_temperature]]
        unit_system = metricwx
        default = '#eba141'
        None = lightgray
        [[[upper_bounds]]]
            -10 = '#8781bd'
            0 = '#487ea9'
            5 = '#369cac'
            10 = '#9aba2f'
            20 = '#eba141'
            25 = '#ec5a34'
            30 = '#d05f2d'
            35 = '#d65b4a'
            40 = '#dc4953'
            100 = '#e26870'
Reply all
Reply to author
Forward
0 new messages