Code: Alles auswählen
('- - - - - - - - - - - - - -','','current','3'),
('Feinstaub-Sensor','#bfbfbf','current','3'),
('AirLink','','current','3'),
('pm1_0','#465eb4','current','1'),
Code: Alles auswählen
('- - - - - - - - - - - - - -','','current','3'),
('Feinstaub-Sensor','#bfbfbf','current','3'),
('AirLink','','current','3'),
('pm1_0','#465eb4','current','1'),
Code: Alles auswählen
#for $x in $observ
Code: Alles auswählen
#if $x[3] == '1' and (($getattr($year, $x[0]).has_data) ...
Code: Alles auswählen
#if $x[3] == '3'
#if $usefontcolor == 1
#set $color = $x[1]
#if $color == ''
#set $color = 'black'
#end if
#else
#set $color = 'black'
#end if
<tr>
<td class="label"><font color=$color><b>$x[0]</b></font></td>
<td class="data"><font color=$color> </font></td>
</tr>
#elif $x[3] == '1' and (($getattr($year, $x[0]).has_data) ...