I think the problem is with the comparisons:

if (value >= (float(c[0])*mult)) and (value <= (float(c[1])*mult)): 

this should probably be:
if (value >= (float(c[0])*mult)) and (value < (float(c[1])*mult)):  
 
With the >= and <= certain values match two colors
[email protected] schrieb am Freitag, 5. März 2021 um 12:52:30 UTC+1:

> I'll take a look at it. I can reproduce the double-double-quot issue. For 
> the color and maximum days: that's related to your (or the default) 
> configuration.
>
> Auchtermuchty Weather schrieb am Freitag, 5. März 2021 um 12:46:34 UTC+1:
>
>> And of course my initial fix isn't quite right...
>>
>> On Friday, 5 March 2021 at 11:39:24 UTC Auchtermuchty Weather wrote:
>>
>>> I reported an issue with the Days of rain table which turned out to be 
>>> caused by the maximum value for colour coding being 50, and there almost 
>>> always being more than 50 days of rain per year where I live.  I've put my 
>>> fixed code in the 'issues':
>>>
>>> LiveCharts - Days of Rain errors · Issue #60 · brewster76/fuzzy-archer 
>>> (github.com) <https://github.com/brewster76/fuzzy-archer/issues/60#> 
>>>  
>>>
>>> On Thursday, 4 March 2021 at 09:59:08 UTC [email protected] wrote:
>>>
>>>> There is no out-of-the-box template for displaying these values. The 
>>>> way you did this, is one of several possible ways to go. Adapting the 
>>>> templates to your own, customized needs, is always possible.
>>>>
>>>> For the missing template in the installer: thank you, I fixed it.
>>>> Michael schrieb am Donnerstag, 4. März 2021 um 09:20:25 UTC+1:
>>>>
>>>>> Is there a (hopefully simple) way to display the values of the gauge 
>>>>> in tabular form (e.g. as they are displayed in the Seasons skin)?
>>>>> For this display I have added the lines to the file 
>>>>> livegauges.html.tmpl
>>>>>
>>>>>                   <tr>
>>>>>                     <td>$Labels.Generic.outTemp</td>
>>>>>                     <td>23 °C / 57%</td>
>>>>>                   </tr>
>>>>>
>>>>> Example:
>>>>> [image: Screenshot.png]
>>>>>
>>>>>

-- 
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/baf9941a-10e4-4993-96f5-b9e023714866n%40googlegroups.com.

Reply via email to