Salut à tous,
Je cherche un moyen de mettre une flèche de tendance de pression, de température en fonction de l'évolution, par exemple si la température monte de 0.5°C/h j'aimerai que à la place ce soit une flache pointant vers le haut qui s'affiche.
J'ai cherché une bonne partie de l'après-midi dans les anciens sujet et en regardant dans les feuilles de style et j'avoue n'avoir rien trouvé, si quelqu’un à une solution ce serait sympa, merci d'avance.
Flèches tendance
Flèches tendance
Station Vantage Pro 2 connectée à un pc sous Windows 7.
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
- jturlier
- Membre
- Messages : 3149
- Inscription : mar. août 22, 2006 8:38 am
- Localisation : 34410 Sérignan - Languedoc
- Contact :
Re: Flèches tendance
Bonjour Romain,
ta question manque de précision : où veux-tu mettre ces flèches, si c'est sur ton site, utilises-tu le php ...
ta question manque de précision : où veux-tu mettre ces flèches, si c'est sur ton site, utilises-tu le php ...
- paaubert
- Membre
- Messages : 2624
- Inscription : dim. janv. 17, 2010 7:16 pm
- Localisation : 1555 Villarzel - Switzerland
- Contact :
Re: Flèches tendance
Salut,
je cherche une solution basée sur le principe de mon thermomètre de galilée
http://www.boock.ch/meteo/thermometre_galilee.php
Le but étant de faire apparaître la bonne flèche dans le cadre du graphique.
Voici une ébauche du fichier xml, si tu as le temps de finaliser le projet, bon courage.
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="120" height="380" />
<background color1="00FFFFFF"/>
<!-- ================= + ================= -->
<lineargauge width="130" height="442" shadow="0" orientation="1" position-x="15" position-y="0" margin-top="6" margin-right="9" margin-bottom="77" margin-left="11" >
<axis color="00000000" min="0.1" max="1" side="hcenter" titlemargin="20">
<labels labelinterval="1" side="left" hide="0">
<font color="00000000" facename="Arial" size="14" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="left" hidefirst="1" hidelast="1" hideminorticks="0" hide="1" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_rate_relative_pressure texture="haut.png" side="left" thick="100" axisdelta="0" reverse="1"/>
</index>
</lineargauge>
<!-- ================= - ================= -->
<lineargauge width="130" height="442" shadow="0" orientation="1" position-x="15" position-y="30" margin-top="56" margin-right="9" margin-bottom="77" margin-left="11" >
<axis color="00000000" min="-0.9" max="-1" side="hcenter" titlemargin="20">
<labels labelinterval="1" side="left" hide="0">
<font color="00000000" facename="Arial" size="14" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="left" hidefirst="1" hidelast="1" hideminorticks="0" hide="1" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_rate_relative_pressure texture="bas.png" side="left" thick="100" axisdelta="0" reverse="1"/>
</index>
</lineargauge>
<!-- ================= = ================= -->
<lineargauge width="130" height="442" shadow="0" orientation="1" position-x="15" position-y="30" margin-top="196" margin-right="9" margin-bottom="77" margin-left="11" >
<axis color="00000000" min="-0.1" max="0.1" side="hcenter" titlemargin="20">
<labels labelinterval="1" side="left" hide="0">
<font color="00000000" facename="Arial" size="14" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="left" hidefirst="1" hidelast="1" hideminorticks="0" hide="1" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_rate_relative_pressure texture="droite.png" side="left" thick="100" axisdelta="0" reverse="1"/>
</index>
</lineargauge>
<!-- ================= texte pression +- ================= -->
<frame width="80" height="80" position-x="0" position-y="280">
<title text=" ($Current[rate_relative_pressure] $Unit[Pressure]/h)" alignement="relative" angle="00" position-x="0.5" position-y="2.0">
<font color="FF003399" facename="Arial" size="15" weight="450" italic="0" />
</title>
</frame>
je cherche une solution basée sur le principe de mon thermomètre de galilée
http://www.boock.ch/meteo/thermometre_galilee.php
Le but étant de faire apparaître la bonne flèche dans le cadre du graphique.
Voici une ébauche du fichier xml, si tu as le temps de finaliser le projet, bon courage.
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="120" height="380" />
<background color1="00FFFFFF"/>
<!-- ================= + ================= -->
<lineargauge width="130" height="442" shadow="0" orientation="1" position-x="15" position-y="0" margin-top="6" margin-right="9" margin-bottom="77" margin-left="11" >
<axis color="00000000" min="0.1" max="1" side="hcenter" titlemargin="20">
<labels labelinterval="1" side="left" hide="0">
<font color="00000000" facename="Arial" size="14" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="left" hidefirst="1" hidelast="1" hideminorticks="0" hide="1" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_rate_relative_pressure texture="haut.png" side="left" thick="100" axisdelta="0" reverse="1"/>
</index>
</lineargauge>
<!-- ================= - ================= -->
<lineargauge width="130" height="442" shadow="0" orientation="1" position-x="15" position-y="30" margin-top="56" margin-right="9" margin-bottom="77" margin-left="11" >
<axis color="00000000" min="-0.9" max="-1" side="hcenter" titlemargin="20">
<labels labelinterval="1" side="left" hide="0">
<font color="00000000" facename="Arial" size="14" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="left" hidefirst="1" hidelast="1" hideminorticks="0" hide="1" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_rate_relative_pressure texture="bas.png" side="left" thick="100" axisdelta="0" reverse="1"/>
</index>
</lineargauge>
<!-- ================= = ================= -->
<lineargauge width="130" height="442" shadow="0" orientation="1" position-x="15" position-y="30" margin-top="196" margin-right="9" margin-bottom="77" margin-left="11" >
<axis color="00000000" min="-0.1" max="0.1" side="hcenter" titlemargin="20">
<labels labelinterval="1" side="left" hide="0">
<font color="00000000" facename="Arial" size="14" weight="400" italic="1" />
</labels>
<ticks majorticks="7" minorticks="4" side="left" hidefirst="1" hidelast="1" hideminorticks="0" hide="1" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_rate_relative_pressure texture="droite.png" side="left" thick="100" axisdelta="0" reverse="1"/>
</index>
</lineargauge>
<!-- ================= texte pression +- ================= -->
<frame width="80" height="80" position-x="0" position-y="280">
<title text=" ($Current[rate_relative_pressure] $Unit[Pressure]/h)" alignement="relative" angle="00" position-x="0.5" position-y="2.0">
<font color="FF003399" facename="Arial" size="15" weight="450" italic="0" />
</title>
</frame>
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
_________________________________________________________________________________________________________
Station Vantage Pro2+ avec station agricole - Weatherlink 6.0.3 - GraphWeather 3.0.15b - Cumulus 1.9.4 - Windows W10 ultimate x64
http://www.boock.ch/meteo-villarzel.php

Station Vantage Pro2+ avec station agricole - Weatherlink 6.0.3 - GraphWeather 3.0.15b - Cumulus 1.9.4 - Windows W10 ultimate x64
http://www.boock.ch/meteo-villarzel.php

Re: Flèches tendance
Je vais regarder ça, merci à vous deux
PS : Non je n'utilise pas le PHP jturlier.

PS : Non je n'utilise pas le PHP jturlier.
Station Vantage Pro 2 connectée à un pc sous Windows 7.
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
Re: Flèches tendance
En fait le problème principal et celui sur lequel je bute pour le moment, c'est que GW sort les 3 images, alors qu'il faudrai qu'il n'en sorte qu'une.
Je repost dès que j'ai trouvé une solution ( en espérant qu'il y en est une ).
Je repost dès que j'ai trouvé une solution ( en espérant qu'il y en est une ).
Station Vantage Pro 2 connectée à un pc sous Windows 7.
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
- paaubert
- Membre
- Messages : 2624
- Inscription : dim. janv. 17, 2010 7:16 pm
- Localisation : 1555 Villarzel - Switzerland
- Contact :
Re: Flèches tendance
oui mais le but est de faire un graphique plus petit que celui que j'ai mis en ligne, et que les flèches non utilisées sortes du graphique.
Je n'ai pas beaucoup de temps maintenant mais la solution doit être réalisable avec ce principe.
A+
Je n'ai pas beaucoup de temps maintenant mais la solution doit être réalisable avec ce principe.
A+
_________________________________________________________________________________________________________
Station Vantage Pro2+ avec station agricole - Weatherlink 6.0.3 - GraphWeather 3.0.15b - Cumulus 1.9.4 - Windows W10 ultimate x64
http://www.boock.ch/meteo-villarzel.php

Station Vantage Pro2+ avec station agricole - Weatherlink 6.0.3 - GraphWeather 3.0.15b - Cumulus 1.9.4 - Windows W10 ultimate x64
http://www.boock.ch/meteo-villarzel.php

Re: Flèches tendance
Oui c'est ce que j'essaie justement de faire, je te tien au courant si j'ai des pistes.paaubert a écrit :oui mais le but est de faire un graphique plus petit que celui que j'ai mis en ligne, et que les flèches non utilisées sortes du graphique.
Station Vantage Pro 2 connectée à un pc sous Windows 7.
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
Re: Flèches tendance
Je suis parti du code que tu m'a passé mais malgré ça j'avoue que je piedtinne un peu, je vais continuer à regarder.
Station Vantage Pro 2 connectée à un pc sous Windows 7.
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/
Extraction des données avec Weatherlink.
Site internet : http://meteostsat.fr/