I’m using the weewx-aqi extension, and running into an interesting issue in 
cheetah.  I have the following code:
    <tr>
                <td class="stats_label">PM 2.5 AQI</td>
                <td 
class="stats_data">$current($data_binding='aqi_binding').aqi_pm2_5</td>
              </tr>
              <tr>
                <td class="stats_label">PM 10 AQI</td>
                <td 
class="stats_data">$current($data_binding='aqi_binding').aqi_pm10_0</td>
             </tr>
              #end if
          </table>
        </div>
 
        <p>&nbsp;</p>
 
            <div class="stats_header">
                Air Quality
            </div>
            #if ($current($data_binding='aqi_binding').aqi_pm2_5 > 
$current($data_binding='aqi_binding').aqi_pm10_0)
                <div style="text-align: center; background-color: 
#$aqi($current($data_binding='aqi_binding').aqi_pm2_5_category).color;" >
                    $current($data_binding='aqi_binding').aqi_pm2_5 <br/>
                    
$aqi($current($data_binding='aqi_binding').aqi_pm2_5_category).category
                </div>
            #else
               <div style="text-align: center; background-color: 
#$aqi($current($data_binding='aqi_binding').aqi_pm10_0_category).color;" >
                   $current($data_binding='aqi_binding').aqi_pm10_0 <br/>
                    
$aqi($current($data_binding='aqi_binding').aqi_pm10_0_category).category
               </div>
            #end if 
 
 
At seemingly random times, usually a string of 4 or 5 iterations in a row (but 
not always), it produces output that would seem to indicate that the “if” is 
taking an incorrect branch,  as illustrated below.
 
Any ideas, or places and way to start looking would be greatly appreciated.
 
Clay Jackson
 
 
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/3E45B7D1-B25F-4C91-A56A-CD3EA3777BB9%40gmail.com.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/3E45B7D1-B25F-4C91-A56A-CD3EA3777BB9%40gmail.com.

Reply via email to