To DJ
les enregistrements avec xnet toutes les minutes sont parfaitement inutiles, toutes les 5 ou 10 minutes, c'est bien suffisant. En faisant ça, tu vas pénaliser tes temps de traitement par GW quand tes fichiers auront un mois ou plus, car ils vont grossir inconsidérément. (n'oublie pas qu'à chaque action de GW sur ces fichiers, comme ils sont séquentiels, ils doivent être lus toutes les fois depuis le début pour pouvoir traiter le dernier enregistrement)
Autre point : les mises à jour de tes graphes toutes les 10 minutes, c'est OK, par contre, tu peux mettre 4h ou plus pour les stats, c'est une opération lourde et ce sont des données "historiques", donc comme tes données du jour dont disponibles sur ton graphique 24h, une mise à jour toutes les 10 min ne changera rien sur les infos de la veille, du mois en cours ou du mois précédent.
Si tu souhaites une synthèse de la journée en cours, tu peux rajouter une page de ce style sur ton site :
report24h.png
Code : Tout sélectionner
<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="510" height="605"/><!-- ================= Image d'arrière plan ================= --><frame width="500" height="300" position-x="5" position-y="5">
<background color="ff0000ff" texture="tex_greengrad.png" stretch="1"/>
<border cornerradius="20" color="FF555555" thick="1"/>
</frame>
<frame width="500" height="290" position-x="5" position-y="315">
<background color="ff0000ff" texture="tex_greengrad.png" stretch="1"/>
<border cornerradius="20" color="FF555555" thick="1"/>
</frame><!-- ================= Stats ================= --><textbox width="440" height="180" shadow="0" position-x="80" position-y="320" margin="10">
<text alignement="5" text="Dernières 24 heures">
<font color="FF5555BB" facename="Arial" size="20" weight="1800" italic="0"/>
</text>
<background color="00000000"/>
</textbox>
<textbox width="440" height="220" shadow="0" position-x="120" position-y="360" margin="10">
<text alignement="3">
<font color="FF000000" facename="Arial" size="14" weight="800" italic="0"/>
<line text="Du : $START_DATE[%A %d %B %Y à %Hh%M]"/>
<line text="Au : $STOP_DATE[%A %d %B %Y à %Hh%M]"/>
<line text="\n\t\t\tMin\t\tMax\t\tMoyenne\n"/>
<line text="Pression rel. :\t\t$MIN[relative_pressure] $UNIT[PRESSURE]\t$MAX[relative_pressure] $UNIT[PRESSURE]\t$MEAN[relative_pressure] $UNIT[PRESSURE]"/>
<line text="Température ext. :\t$MIN[outdoor_temperature] °\t\t$MAX[outdoor_temperature] °\t\t$MEAN[outdoor_temperature] °"/>
<line text="Humidité ext. :\t\t$MIN[outdoor_humidity] %\t\t$MAX[outdoor_humidity] %\t\t$MEAN[outdoor_humidity] %"/>
<line text="Point de rosée :\t$MIN[dew_point] °\t\t$MAX[dew_point] °\t\t$MEAN[dew_point] °"/>
<line text="Facteur vent :\t\t$MIN[wind_chill] °\t\t$MAX[wind_chill] °\t\t$MEAN[wind_chill] °"/>
<line text="Facteur humidex :\t$MIN[heat_index] °\t\t$MAX[heat_index] °\t\t$MEAN[heat_index] °\n"/>
<line text="Vitesse maximale du vent : $MAX[wind_speed] $UNIT[SPEED]"/>
<line text="Total pluie : $CUMUL[relative_rainfall%2.1] $UNIT[RAINFALL]"/>
</text>
<background color="00000000" stretch="0"/>
</textbox>
<textbox width="400" height="180" shadow="0" position-x="80" position-y="0" margin="10">
<text alignement="5" text="MétéOzoir le\n$CURRENT_DATE[%A %d %B %Y à %Hh%M]">
<font color="FF5555BB" facename="Arial" size="20" weight="900" italic="0"/>
</text>
<background color="00000000"/>
</textbox>
<textbox width="440" height="270" shadow="0" position-x="120" position-y="60" margin="10">
<text alignement="3">
<font color="FF000000" facename="Arial" size="14" weight="800" italic="0"/>
<line text="Latitude : 48° 46' 9" N"/>
<line text="Longitude : 2° 29 '59" E"/>
<line text="Altitude : 112 m"/>
</text>
<background color="00000000"/>
</textbox>
<textbox width="220" height="270" shadow="0" position-x="120" position-y="120" margin="10">
<text alignement="3">
<line text="Pression relative : $CURRENT[relative_pressure] $UNIT[PRESSURE]"/>
<line text="Humidité exterieure : $CURRENT[outdoor_humidity] %"/>
<line text="Point de rosée : $CURRENT[dew_point] $UNIT[TEMPERATURE]"/>
<line text="Facteur vent : $CURRENT[wind_chill] $UNIT[TEMPERATURE]"/>
<line text="Facteur humidex : $CURRENT[heat_index] $UNIT[TEMPERATURE]\n"/>
<line text="Total pluie : $CURRENT[absolute_rainfall] $UNIT[RAINFALL]"/>
<line text="Pluie 1h : $CURRENT[rainfall_1h] $UNIT[RAINFALL]"/>
<line text="\n\tVent : \tDirection $CURRENT[wind_direction%5.1] ° \n\t\tVitesse $CURRENT[wind_speed%5.1] $UNIT[SPEED]\n" alignement="20" angle="0"/>
<font color="FF000000" facename="Arial" size="14" weight="800" italic="0"/>
</text>
<background color="00000000"/>
</textbox><!-- ================= Jauge Temperature exterieure ================= --><lineargauge width="110" height="270" shadow="0" orientation="1" position-x="1" position-y="0" margin-top="20" margin-right="9" margin-bottom="55" margin-left="11">
<title text="$CURRENT[outdoor_temperature] $UNIT[TEMPERATURE]" alignement="64" angle="0" position-x="0.47" position-y="0.93">
<font color="FF555555" facename="Comic sans ms" size="20" weight="800" italic="0"/>
</title>
<axis color="FF000000" min="-10" max="30" side="4" titlemargin="30">
<labels labelinterval="1" side="2" hide="0">
<font color="FF555555" facename="Arial" size="14" weight="800" italic="0"/>
</labels>
<ticks majorticks="5" minorticks="3" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_outdoor_temperature color1="FFFF0000" color2="FF00FF00" filled="1" side="2" thick="9" axisdelta="0"/>
</index>
<border cornerradius="0" color="FF000000" thick="0"/>
<background color="00000000"/>
<gaugebackground color="00000000"/>
</lineargauge>
<circulargauge width="80" height="80" shadow="0" orientation="1" position-x="400" position-y="210" margin-top="0" margin-right="0" margin-bottom="0" margin-left="0">
<axis color="FF000000" min="0" max="360" titlemargin="20" titleside="32" fromangle="90" toangle="450">
<labels labels="N;NO;O;SO;S;SE;E;NE" labelinterval="1" side="1" hide="0">
<font color="FF008800" facename="Arial" size="14" weight="800" italic="0"/>
</labels>
<ticks majorticks="9" minorticks="3" side="32" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_wind_direction color1="FF008800"/>
</index>
<border cornerradius="0" color="FF000000" thick="0"/>
<gaugebackground color="00000000" texture=""/>
</circulargauge><!-- ================= Reflet jauge Temperature exterieure ================= --><frame width="360" height="270" position-x="0" position-y="0">
<background color="ff0000ff" texture="img_report2.png" stretch="1"/>
</frame>
</stylesheet>
René,
les màJ sont bien toutes les 10 minutes, mais le point ci-dessus (Mises à jour des stats trop fréquentes) pourrait bien se faire sentir, en fonction du type de PC.
Jean
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.