bonjour à tous,
Voici ma dernière création/modification :
Je souhaiterai profiter de l'exactitude des données de ma VP2 et donc afficher sur mon graphique les UV en dixième (0,0) et pas au nombre entier et en revanche réduire au nombre entier le rayonnement solaire :
d'avance merci.
Voici le code :
Code :
<stylesheet>
<image width="450" height="420"/>
<!-- ================= Background ================= -->
−
<frame width="450" height="420" position-x="0" position-y="0">
<background color1="FF9999FF" color2="FFFFFFFF" gradient="1" gradient-direction="90" stretch="1"/>
<border cornerradius="0" color="FF555555" thick="1"/>
</frame>
<!-- ================= Stats ================= -->
−
<textbox width="250" height="35" shadow="1" position-x="10" position-y="5" margin="10">
<background color1="FFAAAAFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" stretch="1"/>
<border cornerradius="10" color="FF999999" thick="1"/>
−
<text alignement="top|hcenter">
<line text="Station météo La Louvière, Davis VP2"/>
<line text=""/>
<font color="FF000000" facename="Comic Sans MS" size="16" weight="600" italic="0"/>
</text>
<background color="00000000" texture="tex_greengrad.png" stretch="1"/>
</textbox>
<!-- ================= direct ================= -->
−
<textbox width="250" height="95" shadow="1" position-x="10" position-y="45" margin="10">
<background color1="FFAAAAFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" stretch="1"/>
<border cornerradius="10" color="FF999999" thick="1"/>
−
<text alignement="left|top">
<line text="En direct à $CurrentDate[%Hh%M] - $CurrentDate[%a %d %b %Y]"/>
<line text=""/>
<font color="FF000000" facename="Comic Sans MS" size="15" weight="600" italic="0"/>
</text>
<background color="00000000" texture="tex_greengrad.png" stretch="1"/>
</textbox>
−
<textbox width="250" height="175" shadow="1" position-x="10" position-y="75" margin="10">
<background color1="FFAAAAFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" stretch="1"/>
<border cornerradius="10" color="FF999999" thick="1"/>
−
<text alignement="left|top">
<line text="Pression relative : \t$Current[relative_pressure] $Unit[Pressure]"/>
<line text="Humidité extérieure :\t $Current[outdoor_humidity] %"/>
<line text="Point de rosée :\t\t $Current[dew_point] $Unit[Temperature]"/>
<line text="Facteur vent : \t\t$Current[wind_chill] $Unit[Temperature]"/>
<line text=""/>
<line text="Indice UV :\t\t$Current[uv_index] "/>
<line text="Ensoleillement :\t\t$Current[solar_radiation] W / m²"/>
<line text=""/>
<line text="Vitesse du vent : \t$Current[wind_speed] $Unit[Speed]"/>
<line text="Pluie aujourd'hui : \t$Stats[Day,TotalRainfall] $Unit[Rainfall]"/>
<font color="FF000000" facename="Comic Sans MS" size="15" weight="400" italic="0"/>
</text>
</textbox>
<!-- ================= mini maxi ================= -->
−
<textbox width="250" height="95" shadow="1" position-x="10" position-y="255" margin="10">
<background color1="FFAAAAFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" stretch="1"/>
<border cornerradius="10" color="FF999999" thick="1"/>
−
<text alignement="left|top">
<line text="Mini et Maxi du jour :"/>
<line text=""/>
<font color="FF000000" facename="Comic Sans MS" size="16" weight="600" italic="0"/>
</text>
<background color="00000000" texture="tex_greengrad.png" stretch="1"/>
</textbox>
−
<textbox width="250" height="130" shadow="1" position-x="10" position-y="285" margin="10">
<background color1="FFAAAAFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" stretch="1"/>
<border cornerradius="10" color="FF999999" thick="1"/>
−
<text alignement="left|top">
<line text="Température mini : $Min[outdoor_temperature] $Unit[Temperature]\t à $MinDate[outdoor_temperature,%Hh%M]"/>
<line text="Température maxi : $Max[outdoor_temperature] $Unit[Temperature]\t à $MaxDate[outdoor_temperature,%Hh%M]"/>
<line text="Vitesse maxi du vent : $Max[wind_speed] $Unit[Speed] à $MaxDate[wind_speed,%Hh%M]"/>
<line text="Rafale maxi du vent : $Max[wind_gust] $Unit[Speed] à $MaxDate[wind_gust,%Hh%M]"/>
<line text=""/>
<line text="Indice UV maxi :\t$Max[uv_index] \t $MaxDate[uv_index,à %Hh%M]"/>
<line text="Rayonnement maxi :$Max[solar_radiation] W / m² $MaxDate[solar_radiation,à %Hh%M]"/>
<line text=""/>
<font color="FF000000" facename="Comic Sans MS" size="15" weight="400" italic="0"/>
</text>
</textbox>
−
<textbox width="160" height="40" shadow="1" position-x="275" position-y="135" margin="10">
<background color1="FFAAAAFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" stretch="1"/>
<border cornerradius="10" color="FF999999" thick="1"/>
−
<text alignement="4">
<line text="$Current[outdoor_temperature] $Unit[Temperature]"/>
<font color="FF000000" facename="Comic Sans MS" size="26" weight="600" italic="0"/>
</text>
<background color="00000000"/>
</textbox>
<!-- ================= prevision ================= -->
−
<textbox width="160" height="80" shadow="1" position-x="275" position-y="335" margin="10">
<background color1="FFAAAAFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" stretch="1"/>
<border cornerradius="10" color="FF999999" thick="1"/>
−
<text alignement="4">
<line text="Prévision à 12h : "/>
<line text=""/>
<line text=""/>
<line text="$WeatherForecast[Comment]"/>
<font color="FF000000" facename="Comic Sans MS" size="16" weight="400" italic="0"/>
</text>
<background color="00000000"/>
</textbox>
<!-- ================= Icon ================= -->
−
<frame width="128" height="128" position-x="290" position-y="5">
<background color="ff0000ff" texture="$WeatherConditions[Icon]" stretch="1"/>
</frame>
−
<frame width="36" height="36" position-x="340" position-y="360">
<background color="ff0000ff" texture="$WeatherForecast[Icon]" stretch="1"/>
</frame>
<!-- ================= Webcam 1 ================= -->
−
<frame width="180" height="135" position-x="265" position-y="190" shadow="0">
<background reload-texture="300" texture="http://www.meteo-lalouviere.be/cam_1.jpg" color1="FF0000FF" color2="FFFFFFFF" gradient="1" fill="1" fill-direction="130" stretch="1"/>
<border cornerradius="20" color="FF000000" thick="1.3"/>
</frame>
</stylesheet>