Aide sur Maxi de la journée

Répondre
guy85
Membre
Messages : 184
Inscription : dim. déc. 06, 2015 10:29 am

Aide sur Maxi de la journée

Message par guy85 »

Bonjour,
J'essais avec beaucoup de solutions, soit de faire une gauge avec des relevés "Maxi" de la journée

$Max[wind_gust] $Unit[Speed] (ligne 25)......avec <stats_Day_Max_wind_gust......(ligne 37) ou <stats_Current_Max_wind_gust.....

Pour moi la solution serait :
$Max[wind_gust] $Unit[Speed] (ligne 25)......avec <stats_Day_Max_wind_gust......(ligne 37)

Mais ça ne me donne pas les valeurs normales, je devrais avoir :
Dans l'exemple suivant:
1) Vent maxi (17.6)
2) Température maxi (4.5)
3) Pressions maxi (1020)

Je dois louper quelque chose ?
Merci de votre aide
Cordialement
Image
Voici le code :

Code : Tout sélectionner

<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
	<image width="300" height="300" />
			<!-- ================= Fond ================= -->
	<frame width="295" height="300" position-x="0" position-y="0">
		<background color="FF003399" />
		<border cornerradius="5" color="" thick="1" />
	</frame>
	
	
  <!-- ================= Gauge ================= -->
	<frame width="300" height="300" position-x="0" position-y="0">
	
	<title text="\nMini-Maxi de la journée" alignement="top|hcenter" angle="0" position-x="0.1" position-y="0.5">
		<font color="FF000000" facename="Arial" size="20" weight="400" italic="1" />
	</title>
	
	<background color="ff0000ff" texture="img_modern_square1_450x300.png" stretch="1" />
	</frame>
  
	
	<!-- ================= Vent ================= -->
	<lineargauge width="25" height="250" shadow="0" orientation="1" position-x="60" position-y="20" margin-top="34" margin-right="0" margin-bottom="42" margin-left="0" >
	
	<title text="Vent :\n$Max[wind_gust] $Unit[Speed]" alignement="relative" angle="0" position-x="0.47" position-y="0.92">
		<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
	</title>
	
	<axis color="66000000" min="0" max="100" side="left" titlemargin="30" titleside="left">
		<labels labelinterval="1" side="right" hide="0">
		<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
		</labels>
		<ticks majorticks="8" minorticks="4" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="18" majorticksize="25"/>
	</axis>
	
	<index>
		<stats_Current_Max_wind_gust color1="FFFF0000" color2="FFFFFF00" filled="1" reverse="0" side="right" thick="25" axisdelta="0"/>
	</index>
		<border cornerradius="0" color="FF000000" thick="0" />
		<background color="00000000" stretch="1" />
		<gaugebackground color="FF000000" texture="" />
	</lineargauge>
	
	<!-- ================= Température maxi ================= -->
	
	<lineargauge width="25" height="250" shadow="0" orientation="1" position-x="133" position-y="20" margin-top="34" margin-right="0" margin-bottom="42" margin-left="0" >
	
	<title text="T° Maxi :\n$Max[Outdoor_temperature]°" alignement="relative" angle="0" position-x="0.47" position-y="0.92">
		<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
	</title>
	
	<axis color="66000000" min="0" max="80" side="left" titlemargin="30" titleside="left">
		<labels labelinterval="1" side="right" hide="0">
		<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
		</labels>
		<ticks majorticks="8" minorticks="4" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="18" majorticksize="25"/>
	</axis>
	
	<index>
		<stats_Current_Max_Outdoor_temperature color1="FF00FF00" color2="FFFF9900" filled="1" reverse="0" side="right" thick="25" axisdelta="0"/>
	</index>
		<border cornerradius="0" color="FF000000" thick="0" />
		<background color="00000000" stretch="1" />
		<gaugebackground color="FF000000" texture="" />
	</lineargauge>
	
	<frame width="300" height="300" position-x="10" position-y="0">
		<background color="ff0000ff" texture="img_modern_square3_300x300.png" stretch="1" />
	</frame>
	
	 <!-- ================= Pression maxi mois================= -->
	 
	<lineargauge width="25" height="250" shadow="0" orientation="1" position-x="203" position-y="20" margin-top="34" margin-right="0" margin-bottom="42" margin-left="0" >
		
	<title text="Pression Maxi :\n$Max[Pression_relative] hpa" alignement="relative" angle="0" position-x="0.47" position-y="0.92">
		<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
	</title>
	
	<axis color="66000000" min="1000" max="1030" side="left" titlemargin="30" titleside="left">
		<labels labelinterval="1" side="right" hide="0">
		<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
	</labels>
		<ticks majorticks="8" minorticks="4" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="18" majorticksize="25"/>
	</axis>
	
	<index>
		<stats_Max_Pression_relative color1="FF00FF00" color2="FFFF9900" filled="1" reverse="0" side="right" thick="25" axisdelta="0"/>
	</index>
		<border cornerradius="0" color="FF000000" thick="0" />
		<background color="00000000" stretch="1" />
		<gaugebackground color="FF000000" texture="" />
	</lineargauge>
	
	<frame width="300" height="300" position-x="10" position-y="0">
		<background color="ff0000ff" texture="img_modern_square3_300x300.png" stretch="1" />
	</frame>
	
</stylesheet>
Avatar de l’utilisateur
ardigier
Membre
Messages : 2260
Inscription : mar. mars 23, 2010 6:05 pm
Localisation : Le Thor 84250
Contact :

Re: Aide sur Maxi de la journée

Message par ardigier »

Il faut faire un choix soit c'est max de la stat soit c'est current = valeur du moment , je ne pense pas qu'on puisse demander la stat du moment c'est en opposition
WMR200 - XNet meteo 2011-10-14a- graphweather V 3.0.35- Win10 x64
webcam installée orientation NE
http://le-thor-meteo.com/index.php
guy85
Membre
Messages : 184
Inscription : dim. déc. 06, 2015 10:29 am

Re: Aide sur Maxi de la journée

Message par guy85 »

Bonjour,
Excuse-moi ..... :oops: :oops:
Merci de m'avoir quand même répondu, mais je pense avoir fais un erreur :oops:
Je changeais mes texte dans xml tout en gardant mon image sur GW avec "mois en cours" au lieu de travaillé sur "journée en cours" :roll: :roll:
Cordialement

Ps : Ce message peut être supprimé
Pas de raison, il fait partie du sujet et explique la raison de ta question
D'autre part, les commentaires de Pierre André peuvent aider quelqu'un d'autre
Jean
Répondre