Je possède une station météo La crosse technology WS3500 depuis fin Août 2009 et je me suis mis à l'utilisation de GraphWeather pour personnaliser mes courbes.
J'ai donc fait une feuille de style pour me donner les min,max,moy de la température, de la pression et de la humidité sur un mois. Jusqu'à présent tout marchait bien. Hier au soir j'ai voulu la mettre à jour avec les dernières données de ma station. Et là surprise, ma feuille de style ne fonctionne plus.
Pour vous aider à comprendre, j'ai attaché ma feuille de style ci-dessous ainsi que deux photos. Une photo faite quelques jours auparavant quand ca marchait et une autre photo faite aujourd'hui.
Si vous avez des idées, merci d'avance car là je suis scotché et je ne vois plus quoi faire.
Vous verrez que les infos du 1 er jour de septembre sont différentes entre les 2 photos. Ce qui est bizarre, c'est que les infos de la photo qui ne marche plus sont des infos qui correspondent au mois d'octobre alors que le fichier .dat n'a que les jours de septembre. Je suis vraiment perplexe.
Cordialement
fafou38
Code : Tout sélectionner
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="900" height="1000" />
<frame width="900" height="1000" position-x="0" position-y="0" shadow="0">
<title text="" alignement="3" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<background color1="FFFFFF66" color2="FFFFFFFF" gradient="1" gradient-direction="180" stretch="1" />
<border cornerradius="0" color="55555555" thick="2" />
</frame>
<!-- ================= Textbox ================= -->
<textbox width="500" height="50" shadow="0" position-x="200" position-y="10" margin="4" >
<text alignement="center|top">
<font color="FF000000" facename="Arial" size="15" weight="400" italic="0" />
<line text=" $Country , Lat=5°37'11.5''E , Long=45°11'25''N , Altitude=910m"/>
<line text="Relevés du $StartDate[%A %d %B %Y à %Hh%M] au $StopDate[%A %d %B %Y à %Hh%M]"/>
<line text="Station météo = $Station"/>
</text>
</textbox>
<!-- ================= Bargraph Temperature ================= -->
<bargraph width="800" height="240" shadow="0" position-x="50" position-y="70">
<xaxis color="FF000000" grid="1" autoscale="1" min="0" max="0">
<labels labelinterval="1" angle="0" side="left" hide="0" format="%Y">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" y-base="0.0" titleside="left" titlemargin="25">
<title text="Temperature ($Unit[Temperature])" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="6" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_month_min_outdoor_temperature axisbind="y1axis" legend="Minimum" color1="FF0000FF"/>
<stats_month_truemean_outdoor_temperature axisbind="y1axis" legend="Moyenne" color1="FF669900"/>
<stats_month_max_outdoor_temperature axisbind="y1axis" legend="Maximum" color1="FFFF0000"/>
</data>
<!--<legend orientation="0" margin="5" width="300" height="30" alignement="vcenter|hcenter" position-x="300" position-y="310" hide="0" shadow="0">-->
<legend orientation="0" margin="5" width="300" height="30" alignement="vcenter|hcenter" position-x="300" position-y="790" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
<border cornerradius="8" color="55555555" thick="2" />
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="FFCCFFFF" color2="FFCCFFDD" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Bargraph Humidité ================= -->
<bargraph width="800" height="240" shadow="0" position-x="50" position-y="310">
<xaxis color="FF000000" grid="1" autoscale="1" min="0" max="0">
<labels labelinterval="1" angle="0" side="left" hide="0" format="%Y">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" y-base="0.0" titleside="left" titlemargin="25">
<title text="Humidité ($Unit[Humidity])" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="6" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_month_min_outdoor_humidity axisbind="y1axis" legend="Minimum" color1="FF0000FF"/>
<stats_month_truemean_outdoor_humidity axisbind="y1axis" legend="Moyenne" color1="FF669900"/>
<stats_month_max_outdoor_humidity axisbind="y1axis" legend="Maximum" color1="FFFF0000"/>
</data>
<legend orientation="0" margin="5" width="300" height="30" alignement="vcenter|hcenter" position-x="300" position-y="790" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
<border cornerradius="8" color="55555555" thick="2" />
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="FFFFCC99" color2="FFFFFFCC" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Bargraph Pression ================= -->
<bargraph width="800" height="240" shadow="0" position-x="50" position-y="550">
<xaxis color="FF000000" grid="1" autoscale="1" min="0" max="0">
<labels labelinterval="1" angle="0" side="left" hide="0" format="%Y">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="0" min="1000" max="1030" y-base="1000.0" titleside="left" titlemargin="30">
<title text="Pression ($Unit[Pressure])" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="6" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_month_min_relative_pressure axisbind="y1axis" legend="Minimum" color1="FF0000FF"/>
<stats_month_truemean_relative_pressure axisbind="y1axis" legend="Moyenne" color1="FF669900"/>
<stats_month_max_relative_pressure axisbind="y1axis" legend="Maximum" color1="FFFF0000"/>
</data>
<legend orientation="0" margin="5" width="300" height="30" alignement="vcenter|hcenter" position-x="300" position-y="790" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
<border cornerradius="8" color="55555555" thick="2" />
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="FFCCFF99" color2="FFCCFFCC" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Statistics =================-->
<textbox width="700" height="140" shadow="0" position-x="140" position-y="850" margin="15" >
<border cornerradius="8" color="55555555" thick="2" />
<text alignement="left|top">
<line text="Rapport généré le $CurrentDate[%A %d %B %Y à %Hh%M]\n"/>
<line text="\t\t\t\tMini\t\t\t\t\tMaxi\t\t\t\t\tMoyenne"/>
<line text=""/>
<line text="Température :\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\t$Mean[outdoor_temperature] $Unit[Temperature]"/>
<line text="Humidité :\t $Min[outdoor_humidity] $Unit[Humidity] - $MinDate[outdoor_humidity,%d %b %Y à %Hh%M]\t\t$Max[outdoor_humidity] $Unit[Humidity] - $MaxDate[outdoor_humidity,%d %b %Y à %Hh%M]\t\t\t$Mean[outdoor_humidity] $Unit[Humidity]"/>
<line text="Pression :\t $Min[relative_pressure] $Unit[Pressure] - $MinDate[relative_pressure,%d %b %Y à %Hh%M]\t\t$Max[relative_pressure] $Unit[Pressure] - $MaxDate[relative_pressure,%d %b %Y à %Hh%M]\t\t$Mean[relative_pressure] $Unit[Pressure]"/>
<!--<line text="Stat Temperature :\t $Stats[Day,Min,outdoor_temperature] $Unit[Temperature] "/>-->-->
<font color="FF000000" facename="Arial" size="15" weight="400" italic="1" />
</text>
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
</textbox>
<textbox width="80" height="140" shadow="0" position-x="60" position-y="850" margin="0" >
<border cornerradius="8" color="55555555" thick="1" />
<text text="Statistiques" alignement="relative" angle="90">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="1" />
</text>
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="180" />
</textbox>
</stylesheet>