Nouvelle version 2.0.250b français

Une question, un bug ?
Répondre
Pidou
Membre
Messages : 478
Inscription : dim. juil. 27, 2008 6:06 pm
Contact :

Nouvelle version 2.0.250b français

Message par Pidou »

Salut à tous,

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 :wink: avant que je teste autre chose 8)

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 graph-day-1.xml pour graphique journalier

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>
Ma station => http://www.meteo-boisney.fr
Image
--- Station Vantage Pro 2 - Plugin VantagePro.dll ---
--- GraphWeather Version 2.0.312b ---
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Re: Nouvelle version 2.0.250b français

Message par TiToine »

Salut,


1 - Il y a en effet un problème. L'échelle x du lineplot ne correspond pas bien au bargraph. Tu verras qu'il y a bien 31 points pour un mois de 31 jours. Solution temporaire: allonger l'axe x du lineplot (sans le tracer) pour que chaque point soit centrer sur chaque barre du bargraph.
2 - En fait tu ne peux pas tracer de stats journalières car pour un type de stats (moyenne par exemple), tu n'as qu'un valeur/point à tracer (la moyenne de la journée par exemple). Tu ne peux donc que tracer les graphes des valeurs du jours...donc utilise les sondes habituelles, outdoor_temperature, etc.
3 - J'essaierai pour le PNG de réintégrer la transparence...ça t'es vraiment indispensable?
Pidou
Membre
Messages : 478
Inscription : dim. juil. 27, 2008 6:06 pm
Contact :

Re: Nouvelle version 2.0.250b français

Message par Pidou »

Salut Antoine,

Merci pour tes réponses, je m'en vais essayer de ce pas.

Concernant la transparance de fond des png, ça fait plus classe (surtout sur report2.xml modfié où j'ai enlevé le cadre principal par exemple).
J'ai essayé en créant un frame avec le même fond que sur mon site :

Code : Tout sélectionner

	<frame width="500" height="270" position-x="0" position-y="0">
		<background color="00000000" texture="fond.jpg" reload_texture="1" stretch="0" />
		<border cornerradius="0" color="00000000" thick="0" />
	</frame>
Mais ça donne la chose suivante, pas terrible non plus.
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Ma station => http://www.meteo-boisney.fr
Image
--- Station Vantage Pro 2 - Plugin VantagePro.dll ---
--- GraphWeather Version 2.0.312b ---
Pidou
Membre
Messages : 478
Inscription : dim. juil. 27, 2008 6:06 pm
Contact :

Re: Nouvelle version 2.0.250b français

Message par Pidou »

Salut Antoine,

Voilà quelques nouvelles :
1- En ce qui concerne le problème de l'échelle x sur les lineplot stats, effectivement je peux corriger l'écart en jouant sur la taille du graphique. Il faudra juste que je pense à changer cette taille pour chaque mois en attendant une correction complète.

2- OK c'est réglé pour les graphs stats journalières

3- Pour le fond transparent des png, en attendant que tu puisses corriger le problème, j'ai du créé un fond de grande taille identique à celui de mon site que j'applique grace à <frame>. Mais cela alourdit sensiblement la taille des fichiers
Ma station => http://www.meteo-boisney.fr
Image
--- Station Vantage Pro 2 - Plugin VantagePro.dll ---
--- GraphWeather Version 2.0.312b ---
Pidou
Membre
Messages : 478
Inscription : dim. juil. 27, 2008 6:06 pm
Contact :

Re: Nouvelle version 2.0.250b français

Message par Pidou »

Salut Antoine,

Concernant le fond transparent des png qui ne marche plus, j'avais mis un fond identique à celui de mon site grace à la balise <frame>.
Mais j'ai du faire marche arrière et supprimer ce fond car le volume de transfert est limité par mon hébergeur, et le fond inclu alourdit mes fichiers d'un facteur 3 environ. Et de ce fait, je risquais de bloquer mon site d'ici la fin du mois.

Donc si tu peux cooriger ce problème je suis preneur 8)
Ma station => http://www.meteo-boisney.fr
Image
--- Station Vantage Pro 2 - Plugin VantagePro.dll ---
--- GraphWeather Version 2.0.312b ---
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Re: Nouvelle version 2.0.250b français

Message par TiToine »

OK c'est corrigé...je te joins la DLL, dis moi si ca fonctionne.
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Re: Nouvelle version 2.0.250b français

Message par TiToine »

Une chose aussi...les graphes png ont retrouvés leurs couleurs fades. Je vais certainement ajouter une option pour activer la transparence PNG qui sera désactivée par défaut.
Pidou
Membre
Messages : 478
Inscription : dim. juil. 27, 2008 6:06 pm
Contact :

Re: Nouvelle version 2.0.250b français

Message par Pidou »

Salut Antoine,

J'ai remplacé le fichier GWCore.dll par celui que tu as fourni plus haut, mais ça ne marche pas, impossible de lancer GW après le remplacement du fichier. Heureusement j'avais fait une sauvegarde 8)
Ma station => http://www.meteo-boisney.fr
Image
--- Station Vantage Pro 2 - Plugin VantagePro.dll ---
--- GraphWeather Version 2.0.312b ---
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Re: Nouvelle version 2.0.250b français

Message par TiToine »

Oups...j'avais oublié que j'avais changé l'interface de la DLL. Ca ne peut donc pas marcher. Il faudra donc attendre la prochaine version.
Répondre