brewster76 / fuzzy-archer

Graphical gauges and history table generators for Weewx
GNU General Public License v2.0
39 stars 32 forks source link

INFO user.historygenerator: No colors defined for max_wind #121

Closed swfrx closed 1 year ago

swfrx commented 1 year ago

As per the title - I found that in syslog - and yes, there are no colours defined for maxWind in skin.conf.

I also notice that windGust doesn't cater for speed in knots, but I'm not sure if this is an issue as I don't know at what point the colour is looked up:

    [[windGust]]
        [[[meter_per_second]]]
            ...
        [[[km_per_hour]]]
            ...
        [[[mile_per_hour]]]
            ...
mKainzbauer commented 1 year ago

The default colors for the tables on the "History" page are defined in skin.conf and are a kind of a proposal and even don't fit every location. The location is here: https://github.com/brewster76/fuzzy-archer/blob/4.1/skins/Bootstrap/skin.conf#L136

As a quick test you could put this in weewx.conf (under the skin's section in [StdReport]):

[[[HistoryColors]]]
    [[[[windGust]]]]
        [[[[[knot]]]]]
            minvalues = 0, 1, 3, 7, 12, 18, 24, 31, 38, 46, 54, 63, 72
            maxvalues = 1, 3, 7, 12, 18, 24, 31, 38, 46, 54, 63, 72, 200
            colors = "#ffffff", "#72d475", "#10cd24", "#00b900", "#f1eea5", "#f6ef27", "#fed6d3", "#ffb6b3", "#ff9e9a", "#ff8281", "#ff6160", "#ff453c", "#ff200e"
            fontColors = "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333"

This is just the same table as for mile_per_hour, since knot isn't too far away :)

If this works, this isn't an issue. But I could also add the knot-section in the defaults.

swfrx commented 1 year ago

I put it in skin.conf – I don’t have HistoryColours in weewx.conf – and the error has gone.

From: mKainzbauer @.> Sent: 16 July 2023 13:05 To: brewster76/fuzzy-archer @.> Cc: Shunra @.>; Author @.> Subject: Re: [brewster76/fuzzy-archer] INFO user.historygenerator: No colors defined for max_wind (Issue #121)

The default colors for the tables on the "History" page are defined in skin.conf and are a kind of a proposal and even don't fit every location. The location is here: https://github.com/brewster76/fuzzy-archer/blob/4.1/skins/Bootstrap/skin.conf#L136

As a quick test you could put this in weewx.conf (under the sikn's section in [StdReport]):

[[[HistoryColors]]]

[[[[windGust]]]]

    [[[[[knot]]]]]

        minvalues = 0, 1, 3, 7, 12, 18, 24, 31, 38, 46, 54, 63, 72

        maxvalues = 1, 3, 7, 12, 18, 24, 31, 38, 46, 54, 63, 72, 200

        colors = "#ffffff", "#72d475", "#10cd24", "#00b900", "#f1eea5", "#f6ef27", "#fed6d3", "#ffb6b3", "#ff9e9a", "#ff8281", "#ff6160", "#ff453c", "#ff200e"

        fontColors = "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333", "#333333"

This is just the same table as for mile_per_hour, since knot isn't too far away :)

If this works, this isn't an issue. But I could also add the knot-section in the defaults.

— Reply to this email directly, view it on GitHubhttps://github.com/brewster76/fuzzy-archer/issues/121#issuecomment-1637066589, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKMMTIKT65WXR2XMTPG5JF3XQPKIHANCNFSM6AAAAAA2L3KQ34. You are receiving this because you authored the thread.Message ID: @.**@.>>

mKainzbauer commented 1 year ago

If you put it in weewx.conf, they won't be overwritten with the skin's next release. The ultimate test, if this issue is resolved, would be putting this single history color config in your weewx.conf under the skin's section in [StdReport]

mKainzbauer commented 1 year ago

fixed with https://github.com/brewster76/fuzzy-archer/commit/f35b5baa38b827ce2609071710e247a3dc100aa8