Tout d'abord merci Antoine pour cette mise à jour de la version 2.0.240b dont les stats fonctionnement maintenant.
Je me suis donc rué sur l'utilisation des nouvelles fonctionnalités que je n'avais pas pu tester. Mais j'ai quelques soucis :
- Les lineplot que j'ai écrites pour la direction du vent mensuel ne fonctionnement pas correctement, il y a toujours un décalage lorsque le mois fait 31 jours, alors que c'est bon lorsqu le mois fait 30 jours. J'ai essayé autoticks="1" mais sans succès (cf code ci-dessous)
- J'ai voulu tester la génération de graph journalier, mais ceux-ci restent désespérement vides. Quelles sont les balises à utiliser ? par exemple : stats_day_truemean_outdoor_temperture ??? (cf code ci-dessous)
- La transparence du fond des graphiques png ne fonctionne plus (cf page d'accueil de mon site).
- Les éphémérides sont justes
Voilà déjà de quoi s'occuper un peu


Code graph-month-4.xml pour graphique vent
Code : Tout sélectionner
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="625" height="150" />
<frame width="625" height="150" 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="FFDDDDFF" color2="FFFFFFFF" gradient="0" gradient-direction="135" stretch="1" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>
<!-- ================= First Bargraph ================= -->
<bargraph width="600" height="120" shadow="0" position-x="0" position-y="35" margin-top="0" margin-right="20" margin-bottom="30" margin-left="40">
<xaxis color="FF000000" grid="1" autoscale="1" min="0" max="0">
<labels labelinterval="1" angle="0" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="31" minorticks="0" 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="Vitesse (km/h)" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" 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="5" minorticks="0" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<y2axis side="right" color="FF000000" grid="0" autoscale="0" min="0" max="360" y-base="0.0" titleside="right" titlemargin="25">
<title text="Direction" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labels="N;E;S;W;N" labelinterval="1" angle="0" side="right" hide="0" >
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="5" minorticks="0" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y2axis>
<data>
<stats_month_truemean_wind_speed axisbind="y1axis" legend="Vent Moyen" color1="FF77FF00" color2="FF22AA00" gradient="horizontal" antialiasing="1" filled="1" />
<stats_month_truemean_wind_gust axisbind="y1axis" legend="Rafales Moyennes" color1="FFDD7700" color2="FF882200" gradient="horizontal" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="3" width="400" position-x="110" position-y="0" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</legend>
<graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Lineplot Direction ================= -->
<lineplot width="600" height="120" shadow="0" position-x="-9" position-y="35" margin-top="0" margin-right="20" margin-bottom="30" margin-left="40">
<xaxis color="00000000" grid="0" autoscale="1" min="1" max="32">
<labels labelinterval="1" angle="0" side="center" hide="1" format="%d">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="31" minorticks="0" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="1" />
</xaxis>
<y1axis color="00000000" grid="0" autoscale="1" min="0" max="0" y-base="0.0" titleside="left" titlemargin="25">
<title text="Vitesse moyenne (km/h)" alignement="vcenter|hcenter" angle="0" hide="1">
<font color="00000000" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="1" >
<font color="00000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="0" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<y2axis side="right" color="00000000" grid="0" autoscale="0" min="0" max="360" y-base="0.0" titleside="right" titlemargin="25">
<title text="Direction" alignement="vcenter|hcenter" angle="0">
<font color="00000000" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="right" hide="1" >
<font color="00000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="0" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y2axis>
<data>
<stats_month_truemean_wind_direction axisbind="y2axis" legend="Direction Moyenne" color1="FF000000" color2="FF000000" gradient="horizontal" antialiasing="1" filled="0" thick="4" pattern="00000000"/>
</data>
<legend orientation="0" margin="3" width="635" position-x="-10" position-y="0" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
<border cornerradius="0" color="55555555" thick="1" hide="0"/>
</legend>
</lineplot>
</stylesheet>
Code : Tout sélectionner
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="800" height="350" />
<!-- ================= Lineplot ================= -->
<lineplot width="800" height="300" shadow="0" position-x="0" position-y="0" margin-top="25" margin-right="160" margin-bottom="35" margin-left="150" >
<background color1="FFCCFFCC" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1" />
<border cornerradius="10" color="FF000000" thick="1" />
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="400" italic="1" />
</title>
<border cornerradius="0" color="FF000000" thick="0" />
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0" titleside="bottom" >
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format="%Hh%M\n%d/%m" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="3" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FFFF0000" grid="1" autoscale="1" min="0" max="0" titleside="top" titlemargin="30">
<title text="Température ($Unit[Temperature])" alignement="vcenter|hcenter" angle="0">
<font color="FFFF0000" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0">
<font color="FFFF0000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<y2axis side="right" color="FF009000" grid="0" autoscale="1" min="0" max="300" titleside="right" titlemargin="35">
<title text="Pression ($Unit[Pressure])" alignement="vcenter|hcenter" angle="0">
<font color="FF009000" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".1" side="right" hide="0">
<font color="FF009000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y2axis>
<y3axis side="right" color="660000FF" grid="0" autoscale="1" min="0" max="300" titleside="right" titlemargin="35" ydelta="55">
<title text="Humidité (%)" alignement="vcenter|hcenter" angle="0">
<font color="660000FF" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".1" side="right" hide="0">
<font color="660000FF" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y3axis>
<legend orientation="0" position-x="20" position-y="300" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
<border cornerradius="10" color="FF000000" thick="1" />
<background color1="FFCCFFCC" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1" />
</legend>
<y4axis side="left" color="660000FF" grid="0" autoscale="1" min="0" max="300" titleside="top" titlemargin="30">
<title text="Précipitations ($Unit[Rainfall])" alignement="vcenter|hcenter" angle="0">
<font color="660000FF" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0">
<font color="660000FF" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y4axis>
<y5axis color="FFFF6666" grid="1" autoscale="1" min="0" max="0" titleside="top" titlemargin="30">
<title text="Vitesse du vent ($Unit[Speed])" alignement="vcenter|hcenter" angle="0">
<font color="FFFF6666" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0">
<font color="FFFF6666" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y5axis>
<y6axis side="right" color="FFFFAA00" grid="0" autoscale="1" min="0" max="300" titleside="right" titlemargin="35" ydelta="55">
<title text="Energie Solaire (W/m²)" alignement="vcenter|hcenter" angle="0">
<font color="FFFFAA00" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".1" side="right" hide="0">
<font color="FFFFAA00" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y6axis>
<graphbackground color="FFFFFFFF" texture="" />
<data>
<stats_day_truemean_solar_radiation axisbind="y6axis" legend="Energie Solaire" color1="AAFFFF00" color2="AAFF0000" antialiasing="1" filled="1" />
<stats_day_truemean_wind_speed axisbind="y5axis" legend="Vitesse du vent" color1="66FF0000" color2="33FF0000" antialiasing="1" filled="1" />
<stats_day_truemean_relative_rainfall axisbind="y4axis" legend="Précipitations" color1="660000FF" color2="330000FF" antialiasing="1" filled="1" />
<stats_day_truemean_relative_rainfall axisbind="y4axis" legend="Précipitations" color1="660000FF" antialiasing="1" filled="0" hidelegend="1" thick="1" />
<stats_day_truemean_outdoor_humidity axisbind="y3axis" legend="Humidité extérieure" color1="FF6666FF" color2="300000FF" antialiasing="1" filled="0" hide="0" thick="2"/>
<stats_day_truemean_outdoor_temperature axisbind="y1axis" legend="Température ext." color1="FFFF0000" color2="FF0000FF" antialiasing="1" filled="0" hide="0" thick="2"/>
<stats_day_truemean_dew_point axisbind="y1axis" legend="Point de rosée" color1="FF0000FF" color2="FF0000FF" antialiasing="1" filled="0" hide="0" thick="2"/>
<stats_day_truemean_relative_pressure axisbind="y2axis" legend="Pression rel." color1="FF009000" color2="FF00FF00" antialiasing="1" filled="0" hide="0" thick="1"/>
</data>
</lineplot>
</stylesheet>