My logic was correct - the fault was using the wrong variable - it should 
have been trend.barometer.raw and not trend.barometer.  The post was 
originally from 4 years ago though!!!



On Thursday, 3 August 2017 00:24:50 UTC+3, David Bird wrote:

> I'm sure you've found the error in your logic here, but any pressure less 
> than -0.1 will ONLY report 'steady' because for example -0.2 or -4 or any 
> value less than -0.1 will trigger the first test. The solution is to test 
> for -6 first, then -.35 and so on up to -0.1
>
> On Saturday, February 23, 2013 at 6:34:12 PM UTC, Andrew Milner wrote:
>>
>> Have been trying to change index.html.tmpl to give up and down triangles 
>> for barometric trend ..... why does the following snippet always evaluate 
>> to > 6 and give me rising very rapidly even when trend as printed at the 
>> end after the #end if is, say, 2.5?
>>
>>                 #if $trend.barometer > 6
>>                   ▲ ▲ ▲ ▲   rising very 
>> rapidly  
>>                 #elif $trend.barometer > 3.5
>>                   ▲ ▲ ▲   rising quickly  
>>                 #elif $trend.barometer > 1.5
>>                   ▲ ▲   rising  
>>                 #elif $trend.barometer > 0.1
>>                   ▲   rising slowly  
>>                 #elif $trend.barometer > -0.1
>>                   Steady  
>>                 #elif $trend.barometer > -1.5
>>                   ▼   falling slowly  
>>                 #elif $trend.barometer > -3.5
>>                   ▼ ▼ &nbsp falling  
>>                 #elif $trend.barometer > -6
>>                   ▼ ▼ ▼   falling quickly  
>>                 #else
>>                   ▼ ▼ ▼ ▼   falling very 
>> rapidly  
>>                 #end if
>>                 $trend.barometer.format("%+.1f")
>>               </td>
>> ... or am i just doing it wrong anyway??
>>
>> My bald patch is getting bigger by the minute over this .... which comes 
>> hot on the heels of just having finally imported (successfully I think) 3 
>> yrs worth of cumulus data (150,000 records) into sqllite and weewx ... and 
>> all on my poor little raspberry pi.
>>
>>
>>

-- 
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.

Reply via email to