Forum GraphWeather

Forum d'aide GraphWeather
Nous sommes actuellement le Jeu Mars 28, 2024 9:12 pm

Le fuseau horaire est UTC+1 heure




Publier un nouveau sujet Répondre au sujet  [ 5 message(s) ] 
Auteur Message
MessagePublié: Sam Mars 07, 2009 6:19 pm 
Hors-ligne
Membre

Inscription : Mar Oct 21, 2008 11:05 pm
Message(s) : 104
Localisation : Quincy-Sous-Sénart (F-91480)
Bonjour à tous,

voici le code graph_monthx.xml pour afficher les statistiques mensuelles d'humidité sous forme de bargraph
Pièce jointe:
graph-month-3.png

Code :
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
   <image width="713" height="150" />
   <frame width="713" 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="713" 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" format="%Y">
            <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
         </labels>
         <ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
      </xaxis>
      <y1axis color="FF000000" grid="1" autoscale="0" min="0" max="100" y-base="0.0" titleside="left" titlemargin="25">
         <title text="Humidité relative (%)" 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="6" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
      </y1axis>
      <data>
      <stats_month_max_outdoor_humidity axisbind="y1axis" legend="Maximum" color1="FF66CC22" color2="FF44AA00" gradient="horizontal" antialiasing="1" filled="1" />
    </data>      
      <legend orientation="0" margin="3" width="713" position-x="0" 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" />
      <background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
    </legend>
    <graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
   </bargraph>
   <!-- ================= Second Bargraph ================= -->
   <bargraph width="713" 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="0" autoscale="1" min="0" max="0">
         <labels labelinterval="1" angle="0"  side="left" hide="1" format="%Y">
            <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
         </labels>
         <ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="1" />
      </xaxis>
      <y1axis color="FF000000" grid="0" autoscale="0" min="0" max="100" y-base="0.0" titleside="left" titlemargin="25">
         <labels labelinterval="1" angle="0" format=".0" side="left" hide="1" >
            <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
         </labels>
         <ticks majorticks="6" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="1" />
      </y1axis>
      <data>
      <stats_month_truemean_outdoor_humidity axisbind="y1axis" legend="Moyenne" color1="FFFFCC00" color2="FFDDAA00" gradient="horizontal" antialiasing="1" filled="1" />
    </data>      
      <legend orientation="0" margin="3" width="713" position-x="80" position-y="0" hide="0" shadow="0">
      <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
    </legend>
   </bargraph>
   <!-- ================= Third Bargraph ================= -->
   <bargraph width="713" 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="0" autoscale="1" min="0" max="0">
         <labels labelinterval="1" angle="0"  side="left" hide="1" format="%Y">
            <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
         </labels>
         <ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="1" />
      </xaxis>
      <y1axis color="FF000000" grid="0" autoscale="0" min="0" max="100" y-base="0.0" titleside="left" titlemargin="25">
         <labels labelinterval="1" angle="0" format=".0" side="left" hide="1" >
            <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
         </labels>
         <ticks majorticks="6" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="1" />
      </y1axis>
      <data>
      <stats_month_min_outdoor_humidity axisbind="y1axis" legend="Minimum" color1="FF66CCFF" color2="FF44AADD" gradient="horizontal" antialiasing="1" filled="1" />
    </data>      
      <legend orientation="0" margin="3" width="713" position-x="160" position-y="0" hide="0" shadow="0">
      <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
    </legend>
   </bargraph>
  <!-- ================= Textbox =================  -->
  <textbox width="80" height="30" shadow="0" position-x="630" position-y="00" margin="4" >
    <text alignement="center|top">
      <line text="$StartDate[%m / %Y]"/>
    </text>
  </textbox>
</stylesheet>


Vous n’êtes pas autorisé(e) à consulter les fichiers insérés à ce message.

_________________
<----------------------------------------------------->
Station IROX PRO-X USB / WeatherCapture/GraphWeather
http://diving91.homeip.net/


Haut
 Profil  
Répondre en citant  
MessagePublié: Mar Mars 10, 2009 3:01 pm 
Hors-ligne
Membre

Inscription : Mar Mars 03, 2009 1:53 pm
Message(s) : 24
Bonjour,

Si je fais "Mois précédent", c'est toujours le graphique du mois en cours qui est affiché.
C'est normal ?

Manu

_________________
Emmanuel
GW V. 3.0.15β , W8-64


Haut
 Profil  
Répondre en citant  
MessagePublié: Mar Mars 10, 2009 5:46 pm 
Hors-ligne
Membre
Avatar de l’utilisateur

Inscription : Mer Oct 29, 2008 11:34 pm
Message(s) : 141
Localisation : Bruxelles
oui cela l'est car cette template est à placer dans le répertoire statistiques (et l'ajouter dans le fichier month.xsl) mais il s'affiche très bien comme graph mais il ne mettra que le mois en cours (comme tab-rain-bargraph) et pour y afficher d'autre mois il faut utiliser les stats

_________________
Davis Vantage Pro 2 (une non-câblée à Bruxelles, une câblée à Grimentz (1710m, VS) depuis décembre 2015. Datalogger usb, Cumulus et Weatherlink
Anciennement
WMR200; Xnet_météo v2011-10-14a (entre 2014 et 2015) + données de 2008 à 2013 en txt, format WD;
Graphweather v3.0.15 ;
Deux minipc Beebox de ASRock sous Windows 10 gèrent WL et GW.

Image Image


Haut
 Profil  
Répondre en citant  
MessagePublié: Mar Mars 10, 2009 9:35 pm 
Hors-ligne
Membre

Inscription : Mar Oct 21, 2008 11:05 pm
Message(s) : 104
Localisation : Quincy-Sous-Sénart (F-91480)
Merci Chris_01 c'est tout a fait cela, tout est dit.

C'est un fichier de statistiques. Lorsque GW génère les statistiques, il va générer un fichier image par mois que tu peux ensuite visualiser en les intégrant dans le fichier month.xsl de la facon suivante (code a insérer dans ton fichier à l'endroit désiré)
Code :
  <img>
                    <xsl:attribute name = "src">
                        ../<xsl:value-of select = "@month"/>/graph-month-1.png
                    </xsl:attribute>
                </img>


la première fois, pour avoir les graphes, il faut utiliser l'option "régénérer la base"
Cordialement
Hervé

_________________
<----------------------------------------------------->
Station IROX PRO-X USB / WeatherCapture/GraphWeather
http://diving91.homeip.net/


Haut
 Profil  
Répondre en citant  
MessagePublié: Mer Mars 11, 2009 3:57 pm 
Hors-ligne
Membre
Avatar de l’utilisateur

Inscription : Mer Oct 29, 2008 11:34 pm
Message(s) : 141
Localisation : Bruxelles
et je me permet d'ajouter aussi ceci
Code :
    <img>
                    <xsl:attribute name = "src">
                        ../<xsl:value-of select = "@month"/>/[b]graph-month-1.png[/b]
                    </xsl:attribute>
                </img>


et ce qui est en gras est le nom du fichier contenant le code ci-dessus qui doit être mis dans "statistiques"

voilà :wink:

_________________
Davis Vantage Pro 2 (une non-câblée à Bruxelles, une câblée à Grimentz (1710m, VS) depuis décembre 2015. Datalogger usb, Cumulus et Weatherlink
Anciennement
WMR200; Xnet_météo v2011-10-14a (entre 2014 et 2015) + données de 2008 à 2013 en txt, format WD;
Graphweather v3.0.15 ;
Deux minipc Beebox de ASRock sous Windows 10 gèrent WL et GW.

Image Image


Haut
 Profil  
Répondre en citant  
Afficher les messages publiés depuis :  Trier par  
Publier un nouveau sujet Répondre au sujet  [ 5 message(s) ] 

Le fuseau horaire est UTC+1 heure


Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 3 invité(s)


Vous ne pouvez pas publier de nouveaux sujets dans ce forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum
Vous ne pouvez pas insérer de pièces jointes dans ce forum

Recherche de:
Aller vers :  
cron
POWERED_BY
Traduction et support en françaisHébergement de site