Forum GraphWeather

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

Le fuseau horaire est UTC+1 heure




Publier un nouveau sujet Répondre au sujet  [ 9 message(s) ] 
Auteur Message
 Sujet du message: Stylesheets mini
MessagePublié: Sam Sep 12, 2009 12:07 pm 
Hors-ligne
Membre

Inscription : Jeu Déc 18, 2008 3:57 pm
Message(s) : 202
Bonjour à tous , je me suis amusé ce matin en voyant certaines personnes appartenant au réseau StatIC de faire des minis Stylesheets avec les bases des .xml d'Antoine. Ce n'est pas top mais bon ce sont mes débuts :)

Alors pour les températures :
Image

Ca donne cela :

Code :
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
  <image width="250" height="190" />
  <frame width="250" height="190" position-x="0" position-y="0" shadow="0">
    <title text="" alignement="left|top" angle="0">
      <font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
    </title>
    <background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1" />
    <border cornerradius="0" color="55555555" thick="1" />
  </frame>
   <!-- ================= First Lineplot =================  -->
     <lineplot width="230" height="120" shadow="0" position-x="10" position-y="10" margin-top="10" margin-right="10" margin-bottom="10" margin-left="10">
      <xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
         <title text="" alignement="vcenter|hcenter" angle="0">
            <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
         </title>
         <labels labelinterval="1" angle="0"  side="left" hide="0">
            <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="1"  min="0" max="0" titleside="top" titlemargin="35">
         <title text="Température ($Unit[Temperature])" 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="4" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
      </y1axis>
    <data>     
      <outdoor_temperature axisbind="y1axis" legend="Température ext." color1="FFFF0000" antialiasing="1" filled="0" hide="0" thick="1.2"/>
    </data>
   <legend orientation="0" margin="5" width="250" position-x="10" position-y="1" hide="0" shadow="0">
      <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
      <border cornerradius="0" color="55555555" thick="0" />
    </legend>
    <border cornerradius="0" color="55555555" thick="0" />
    <background color1="00000000" stretch="1" />
    <graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
   </lineplot>
   <!-- ================= Statistics ================= -->
  <textbox width="200" height="50" shadow="0" position-x="10" position-y="160" margin="0" >
    <text alignement="left|top">
      <line text="Température Min: $Min[outdoor_temperature] $Unit[Temperature]  $MinDate[outdoor_temperature, à %Hh%M]"/>
      <line text="Température Max: $Max[outdoor_temperature] $Unit[Temperature]  $MaxDate[outdoor_temperature, à %Hh%M]"/>
    </text>
  </textbox>
</stylesheet>



---------------------------------------------


Pour le vent :

Image

Ca donne cela :

Code :
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
   <image width="250" height="190" />
   <frame width="250" height="190" position-x="0" position-y="0" shadow="0">
      <title text="" alignement="horizontal" angle="0">
         <font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
      </title>
      <background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1" />
    <border cornerradius="0" color="55555555" thick="1" />
   </frame>
   <!-- ================= First Lineplot ================= -->
   <lineplot width="230" height="120" shadow="0" position-x="10" position-y="10" margin-top="10" margin-right="10" margin-bottom="10" margin-left="10">
      <xaxis color="FF000000" grid="1" autoscale="0" 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="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
      </xaxis>
      <y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="left" titlemargin="35">
         <title text="Vitesse du vent ( $Unit[Speed] )" alignement="hcenter|vcenter" 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="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
      </y1axis>
      <data>
      <wind_speed axisbind="y1axis" legend="Vitesse du vent" color1="66FF0000" color2="33FF0000" antialiasing="1" filled="1" />
      <wind_speed axisbind="y1axis" legend="Vitesse du vent" color1="66FF0000" antialiasing="1" filled="0" hidelegend="1" thick="1.2"/>
      </data>      
      <legend orientation="0" margin="5" width="150" position-x="20" position-y="0" hide="0" shadow="0">
      <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
    </legend>
    <border cornerradius="0" color="55555555" thick="0" />
    <background color1="00000000" stretch="1" />
    <graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
   </lineplot>
   <!-- ================= Statistics ================= -->
  <textbox width="250" height="50" shadow="0" position-x="10" position-y="160" margin="0" >
    <text alignement="left|top">
      <line text="Vitesse maximale : $Max[wind_speed] $Unit[Speed] $MaxDate[wind_speed,à %Hh%M]"/>
      <line text="Vitesse moyenne : $Mean[wind_speed] $Unit[Speed]"/>
    </text>
  </textbox>
</stylesheet>


----------------------------------

Et pour la Pression et l'humidité

Image

Ca donne cela :

Code :
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
  <image width="280" height="190" />
  <frame width="280" height="190" position-x="0" position-y="0" shadow="0">
    <title text="" alignement="left|top" angle="0">
      <font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
    </title>
    <background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1" />
    <border cornerradius="0" color="55555555" thick="1" />
  </frame>
  <!-- ================= First Lineplot =================  -->
  <lineplot width="240" height="120" shadow="0" position-x="10" position-y="10" margin-top="10" margin-right="10" margin-bottom="10" margin-left="20">
   <xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
      <title text="" alignement="vcenter|hcenter" angle="0">
         <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
      </title>
      <labels labelinterval="1" angle="0"  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="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="top" titlemargin="35">
      <title text="Pression ($Unit[Pressure])" 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="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
   </y1axis>
   <y2axis side="right" color="FF000000" grid="0" autoscale="0" min="0" max="100" titleside="right" titlemargin="30">
      <title text="Humidité (%)" alignement="vcenter|hcenter" angle="0">
         <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
      </title>
      <labels labelinterval="1" angle="0" format=".1" side="right" hide="0">
         <font color="FF000000" 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>
    <data>
      <outdoor_humidity axisbind="y2axis" legend="Humidité extérieure" color1="3000FF00" color2="300000FF" antialiasing="1" filled="1" hide="0" />
      <outdoor_humidity axisbind="y2axis" legend="Humidité extérieure" color1="300000FF" antialiasing="1" hidelegend="1" thick="1.2"/>
     
   <relative_pressure axisbind="y1axis" legend="Pression relative" color1="FF009000" antialiasing="1" filled="0" hide="0" thick="1.2" />   
 </data>
    <legend orientation="0" margin="5" width="250" position-x="22" position-y="0" hide="0" shadow="0">
      <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
      <border cornerradius="0" color="55555555" thick="0" />
    </legend>
    <border cornerradius="0" color="55555555" thick="0" />
    <background color1="00000000" stretch="1" />
    <graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
  </lineplot>
  <!-- ================= Statistics ================= -->
  <textbox width="200" height="50" shadow="0" position-x="10" position-y="160" margin="0" >
    <text alignement="left|top">
      <line text="Pression rel Min: $Min[relative_pressure] $Unit[Pressure] $MinDate[relative_pressure,à %Hh%M]"/>
      <line text="Pression rel Max: $Max[relative_pressure] $Unit[Pressure] $MaxDate[relative_pressure, à %Hh%M]"/>
     <line text="Humiditée ext Min: $Min[outdoor_humidity] % $MinDate[outdoor_humidity, à %Hh%M]"/>
     <line text="Humiditée ext Max: $Max[outdoor_humidity] % $MaxDate[outdoor_humidity, à %Hh%M]"/>
    </text>
  </textbox>
</stylesheet>




--------------------------------

Voilà , Vous pouvez les modifier comme vous voulez , mais j'avais pensé à faire un genre de Réseau StatGW que Marco a déjà et donc d'intégrer aussi un logo StatGW dans ce genre de StyleSheet , je pense que c'est faisable mais je n'ai pas encore cherché à comment faire cela :)

_________________
VP2, Weatherlink 6.0.3, GraphWeather 3.0.33 Beta , Windows 7 Intégrale 64bits
ImageImageImage


Haut
 Profil  
Répondre en citant  
 Sujet du message: Re: Stylesheets mini
MessagePublié: Jeu Oct 15, 2009 12:13 pm 
Hors-ligne
Membre

Inscription : Mar Déc 02, 2008 10:35 pm
Message(s) : 39
Localisation : Bourgogne
Salut Arnaud !

Ton xml me plait beaucoup, je vais me permettre de l'utiliser :mrgreen:

J'ai choisi le graph de la température pour débuter, par contre je n'a pas la température live comme dans ton exemple ? :?

_________________
Vantage Pro II + Graphweather v3, Win XP, le tout basé à Cerisiers (89).


Haut
 Profil  
Répondre en citant  
 Sujet du message: Re: Stylesheets mini
MessagePublié: Jeu Oct 15, 2009 4:04 pm 
Hors-ligne
Membre
Avatar de l’utilisateur

Inscription : Jeu Oct 08, 2009 9:37 am
Message(s) : 28
Localisation : Marseille
TIGRE21 a écrit:
Salut Arnaud !

Ton xml me plait beaucoup, je vais me permettre de l'utiliser :mrgreen:

J'ai choisi le graph de la température pour débuter, par contre je n'a pas la température live comme dans ton exemple ? :?


Idem... :?

_________________
Image


Haut
 Profil  
Répondre en citant  
 Sujet du message: Re: Stylesheets mini
MessagePublié: Jeu Oct 15, 2009 4:47 pm 
Hors-ligne
Membre

Inscription : Jeu Déc 18, 2008 3:57 pm
Message(s) : 202
TIGRE21 a écrit:
Salut Arnaud !

Ton xml me plait beaucoup, je vais me permettre de l'utiliser :mrgreen:

J'ai choisi le graph de la température pour débuter, par contre je n'a pas la température live comme dans ton exemple ? :?


Ca doit être cela mais des fois cela bug donc pas de panique si des fois il y a des erreurs :

<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="250" height="190" />
<frame width="250" height="190" position-x="0" position-y="0" shadow="0">
<title text="" alignement="horizontal" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>
<image width="36" height="25" />
<!-- ================= Background ================= -->
<textbox width="50" height="36" shadow="1" position-x="200" position-y="150" margin="0">
<text alignement="center">
<line text="Live" />
<line text="$Current[wind_speed] $Unit[Speed]" />
<font color="FF000000" size="12" weight="45" italic="0" />
</text>
</textbox>
<image width="36" height="25" />
<!-- ================= Backgroundtop ================= -->
<textbox width="30" height="12" shadow="1" position-x="210" position-y="0" margin="0">
<text alignement="2">
<line text="$CurrentDate[%Hh%M]" />
<font color="FF000000" size="14" weight="40" italic="0" />
</text>
</textbox>
<!-- ================= First Lineplot ================= -->
<lineplot width="230" height="120" shadow="0" position-x="10" position-y="10" margin-top="10" margin-right="10" margin-bottom="10" margin-left="10">
<xaxis color="FF000000" grid="1" autoscale="0" 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="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="left" titlemargin="35">
<title text="Vitesse du vent ( $Unit[Speed] )" alignement="hcenter|vcenter" 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="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<wind_speed axisbind="y1axis" legend="Vitesse du vent" color1="66FF0000" color2="33FF0000" antialiasing="1" filled="1" />
<wind_speed axisbind="y1axis" legend="Vitesse du vent" color1="66FF0000" antialiasing="1" filled="0" hidelegend="1" thick="1.2"/>
</data>
<legend orientation="0" margin="5" width="150" position-x="20" position-y="0" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</legend>
<border cornerradius="0" color="55555555" thick="0" />
<background color1="00000000" stretch="1" />
<graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
</lineplot>
<!-- ================= Statistics ================= -->
<textbox width="250" height="50" shadow="0" position-x="10" position-y="160" margin="0" >
<text alignement="left|top">
<line text="Vitesse maximale : $Max[wind_speed] $Unit[Speed] $MaxDate[wind_speed,à %Hh%M]"/>
<line text="Rafale maximale : $Max[wind_gust] $Unit[Speed] $MaxDate[wind_gust,à %Hh%M]"/>
</text>
</textbox>
</stylesheet>

_________________
VP2, Weatherlink 6.0.3, GraphWeather 3.0.33 Beta , Windows 7 Intégrale 64bits
ImageImageImage


Haut
 Profil  
Répondre en citant  
 Sujet du message: Re: Stylesheets mini
MessagePublié: Jeu Oct 15, 2009 5:22 pm 
Hors-ligne
Membre

Inscription : Mar Déc 02, 2008 10:35 pm
Message(s) : 39
Localisation : Bourgogne
Ca marche merci c'est nikel :!: 8)

_________________
Vantage Pro II + Graphweather v3, Win XP, le tout basé à Cerisiers (89).


Haut
 Profil  
Répondre en citant  
 Sujet du message: Re: Stylesheets mini
MessagePublié: Jeu Oct 15, 2009 5:46 pm 
Hors-ligne
Membre
Avatar de l’utilisateur

Inscription : Jeu Oct 08, 2009 9:37 am
Message(s) : 28
Localisation : Marseille
Ouaip ! super !
Pour celui de la température, on fait comment ? :?

_________________
Image


Haut
 Profil  
Répondre en citant  
 Sujet du message: Re: Stylesheets mini
MessagePublié: Jeu Oct 15, 2009 6:22 pm 
Hors-ligne
Membre

Inscription : Jeu Déc 18, 2008 3:57 pm
Message(s) : 202
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="250" height="190" />
<frame width="250" height="190" position-x="0" position-y="0" shadow="0">
<title text="" alignement="left|top" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>
<image width="36" height="25" />
<!-- ================= Background ================= -->
<textbox width="36" height="36" shadow="1" position-x="210" position-y="150" margin="0">
<text alignement="center">
<line text="Live" />
<line text="$Current[outdoor_temperature] $Unit[Temperature]" />
<font color="FF000000" size="12" weight="40" italic="0" />
</text>
</textbox>
<image width="36" height="25" />
<!-- ================= Backgroundtop ================= -->
<textbox width="30" height="12" shadow="1" position-x="210" position-y="0" margin="0">
<text alignement="2">
<line text="$CurrentDate[%Hh%M]" />
<font color="FF000000" size="14" weight="40" italic="0" />
</text>
</textbox>
<!-- ================= First Lineplot ================= -->
<lineplot width="230" height="120" shadow="0" position-x="10" position-y="10" margin-top="10" margin-right="10" margin-bottom="10" margin-left="10">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" side="left" hide="0">
<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="1" min="0" max="0" titleside="top" titlemargin="35">
<title text="Température ($Unit[Temperature])" 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="4" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<outdoor_temperature axisbind="y1axis" legend="Température ext." color1="FFFF0000" antialiasing="1" filled="0" hide="0" thick="1.2"/>
</data>
<legend orientation="0" margin="5" width="250" position-x="10" position-y="1" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
<border cornerradius="0" color="55555555" thick="0" />
</legend>
<border cornerradius="0" color="55555555" thick="0" />
<background color1="00000000" stretch="1" />
<graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
</lineplot>
<!-- ================= Statistics ================= -->
<textbox width="200" height="50" shadow="0" position-x="10" position-y="160" margin="0" >
<text alignement="left|top">
<line text="Température Min: $Min[outdoor_temperature] $Unit[Temperature] $MinDate[outdoor_temperature, à %Hh%M]"/>
<line text="Température Max: $Max[outdoor_temperature] $Unit[Temperature] $MaxDate[outdoor_temperature, à %Hh%M]"/>
</text>
</textbox>
</stylesheet>

_________________
VP2, Weatherlink 6.0.3, GraphWeather 3.0.33 Beta , Windows 7 Intégrale 64bits
ImageImageImage


Haut
 Profil  
Répondre en citant  
 Sujet du message: Re: Stylesheets mini
MessagePublié: Jeu Oct 15, 2009 6:30 pm 
Hors-ligne
Membre
Avatar de l’utilisateur

Inscription : Jeu Oct 08, 2009 9:37 am
Message(s) : 28
Localisation : Marseille
Super !
Merci beaucoup :)

_________________
Image


Haut
 Profil  
Répondre en citant  
 Sujet du message: Re: Stylesheets mini
MessagePublié: Mar Jan 19, 2010 7:53 pm 
Hors-ligne
Membre

Inscription : Mar Jan 19, 2010 3:46 pm
Message(s) : 15
Aurais tu le xml des précipitations et pressions avec le display live !!!

Merci


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

Le fuseau horaire est UTC+1 heure


Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 6 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