je souhaiterai pouvoir afficher dans ma feuille de style , une couleur différente pour chaque température.
----> J'y arrive pas !
Seule les informations de la ligne 10 sont prisent en compte.
voici ma feuille:
Code : Tout sélectionner
<!-- ================= Statistics ================= -->
<textbox width="820" height="240" shadow="0" position-x="70" position-y="320" margin="20" >
<border cornerradius="0" color="55555555" thick="1" />
<text alignement="left|top">
<line text="Rapport généré le $CurrentDate[%A %d %B %Y à %Hh%M] "/>
<line text="Du $StartDate[%A %d %B %Y à %Hh%M] au $StopDate[%A %d %B %Y à %Hh%M]"/>
<line text=""/>
<line text="\t\t\t\tActuel\t\t\tValeur minimale\t\t\t\tValeur maximale"/>
<line text=""/>
<font color="FF000000" facename="Arial" size="15" weight="400" italic="0" />
<line text="Température Séjour/Salon :\t $Current[temperature_2] $Unit[Temperature]\t $Min[temperature_2] $Unit[Temperature] - $MinDate[temperature_2,%d %b %Y à %Hh%M]\t\t$Max[temperature_2] $Unit[Temperature] - $MaxDate[temperature_2,%d %b %Y à %Hh%M]\t "/>
<line text="Humiditée Séjour/Salon :\t $Current[humidity_2] % \t $Min[humidity_2] % - $MinDate[humidity_2,%d %b %Y à %Hh%M]\t\t$Max[humidity_2] % - $MaxDate[humidity_2,%d %b %Y à %Hh%M]\t"/>
<font color="FF0000FF" facename="Arial" size="15" weight="400" italic="0" />
<line text="Température Chambre :\t $Current[temperature_1] $Unit[Temperature]\t $Min[temperature_1] $Unit[Temperature] - $MinDate[temperature_1,%d %b %Y à %Hh%M]\t\t$Max[temperature_1] $Unit[Temperature] - $MaxDate[temperature_1,%d %b %Y à %Hh%M]\t "/>
<line text="Humiditée Chambre :\t\t $Current[humidity_1] % \t $Min[humidity_1] % - $MinDate[humidity_1,%d %b %Y à %Hh%M]\t\t$Max[humidity_1] % - $MaxDate[humidity_1,%d %b %Y à %Hh%M]\t"/>
<font color="FF00FF00" facename="Arial" size="17" weight="400" italic="0" />
<line text="Température local Serveur :\t $Current[indoor_temperature] $Unit[Temperature]\t $Min[indoor_temperature] $Unit[Temperature] - $MinDate[indoor_temperature,%d %b %Y à %Hh%M]\t\t$Max[indoor_temperature] $Unit[Temperature] - $MaxDate[indoor_temperature,%d %b %Y à %Hh%M]\t"/>
<line text="Humiditée local Serveur :\t $Current[indoor_humidity] % \t $Min[indoor_humidity] % - $MinDate[indoor_humidity,%d %b %Y à %Hh%M]\t\t$Max[indoor_humidity] % - $MaxDate[outdoor_humidity,%d %b %Y à %Hh%M]\t"/>
<font color="FF000000" facename="Arial" size="17" weight="400" italic="0" />
<line text="Température extérieure :\t $Current[outdoor_temperature] $Unit[Temperature]\t $Min[outdoor_temperature] $Unit[Temperature] - $MinDate[outdoor_temperature,%d %b %Y à %Hh%M]\t\t$Max[outdoor_temperature] $Unit[Temperature] - $MaxDate[outdoor_temperature,%d %b %Y à %Hh%M]\t"/>
<line text="Humiditée extérieure :\t $Current[outdoor_humidity] % \t $Min[outdoor_humidity] % - $MinDate[outdoor_humidity,%d %b %Y à %Hh%M]\t\t$Max[outdoor_humidity] % - $MaxDate[outdoor_humidity,%d %b %Y à %Hh%M]\t"/>
</text>
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
</textbox>
<textbox width="62" height="240" shadow="0" position-x="10" position-y="320" margin="0" >
<border cornerradius="0" color="55555555" thick="1" />
<text text="Statistiques" alignement="relative" angle="90">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="180" />
</textbox>
</stylesheet>
Eric.