bonjour je voudrais faire un bargraph sur l'année avec le nbr d'heures de soleil par mois.
je ne possede pas de sonde d'ensoleillement mais une sonde uv, j'ai deja trouvé l'astuce pour avoir le nbr d'heures de soleil sur le mois courant et avoir le total sur l'année. (mappage de la sonde uv sur les radiations dans les options csv)
mais je n'arrive pas a sortir un bargraph sur l'année. comme celui des precipitations
merci pour votre aide
bargraph nbr heures de soleil par mois
-
- Membre
- Messages : 17
- Inscription : sam. janv. 05, 2013 3:44 pm
- Localisation : contrexeville vosges
- Contact :
bargraph nbr heures de soleil par mois
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
- ardigier
- Membre
- Messages : 2260
- Inscription : mar. mars 23, 2010 6:05 pm
- Localisation : Le Thor 84250
- Contact :
Re: bargraph nbr heures de soleil par mois
Déjà, les UV et l'ensoleilement sont 2 mesures différentes (UVmetre et pyranometre)
mais on peut tricher en utilisant les UV comme calcul de l'ensoleillement (environ UV*120)
quelquechose comme ça devrait marcher
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="750" height="400" />
<frame width="750" height="400" 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="FFFFFF95" color2="FFFFFFD5" gradient="1" gradient-direction="90" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>
<bargraph width="650" height="340" shadow="0" position-x="10" position-y="10" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF0000FF" grid="1" autoscale="0" min="0" max="0">
<labels labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." labelinterval="1" angle="0" side="left" hide="0">
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF0000FF" grid="1" autoscale="1" min="0" max="130" y-base="0.0" titleside="left" titlemargin="35">
<title text="Nombre d'heures d'ensoleillement" alignement="vcenter|hcenter" angle="0">
<font color="" facename="Arial" size="16" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0" >
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="14" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_year_NbHoursOfSunshine axisbind="y1axis" legend="" color1="FF0000FF" color2="FF80FFFF" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="3" width="500" position-x="300" position-y="400" hide="0" shadow="0">
<font color="FF0000FF" facename="Time new roman" size="18" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
<textbox width="350" height="30" shadow="0" position-x="70" position-y="1" margin="5" >
<border cornerradius="10" color="55555555" thick="1" />
<text alignement="3">
<line text="Nombre d'heures d'ensoleillement mensuel "/>
<font color="FF0000FF" facename="Arial" size="20" weight="400" italic="0" />
</text>
<background color1="FFFFFFFF" color2="FF79BCFF" gradient="1" gradient-direction="90" />
</textbox>
</stylesheet>
mais on peut tricher en utilisant les UV comme calcul de l'ensoleillement (environ UV*120)
quelquechose comme ça devrait marcher
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="750" height="400" />
<frame width="750" height="400" 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="FFFFFF95" color2="FFFFFFD5" gradient="1" gradient-direction="90" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>
<bargraph width="650" height="340" shadow="0" position-x="10" position-y="10" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF0000FF" grid="1" autoscale="0" min="0" max="0">
<labels labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." labelinterval="1" angle="0" side="left" hide="0">
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF0000FF" grid="1" autoscale="1" min="0" max="130" y-base="0.0" titleside="left" titlemargin="35">
<title text="Nombre d'heures d'ensoleillement" alignement="vcenter|hcenter" angle="0">
<font color="" facename="Arial" size="16" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0" >
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="14" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_year_NbHoursOfSunshine axisbind="y1axis" legend="" color1="FF0000FF" color2="FF80FFFF" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="3" width="500" position-x="300" position-y="400" hide="0" shadow="0">
<font color="FF0000FF" facename="Time new roman" size="18" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
<textbox width="350" height="30" shadow="0" position-x="70" position-y="1" margin="5" >
<border cornerradius="10" color="55555555" thick="1" />
<text alignement="3">
<line text="Nombre d'heures d'ensoleillement mensuel "/>
<font color="FF0000FF" facename="Arial" size="20" weight="400" italic="0" />
</text>
<background color1="FFFFFFFF" color2="FF79BCFF" gradient="1" gradient-direction="90" />
</textbox>
</stylesheet>
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
webcam installée orientation NE
http://le-thor-meteo.com/index.php
-
- Membre
- Messages : 17
- Inscription : sam. janv. 05, 2013 3:44 pm
- Localisation : contrexeville vosges
- Contact :
Re: bargraph nbr heures de soleil par mois
j'en etais a peu pres au meme xml que toi mais ca marche pas.
voici mon xml
<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="900" height="500"/>
<frame width="900" height="500" 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="FFFFCC00" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1"/>
<border cornerradius="0" color="55555555" thick="1"/>
</frame>
<!-- ================= First Lineplot ================= -->
<bargraph width="900" height="300" shadow="0" position-x="10" position-y="10" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labelinterval="1" labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." 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="Heures d'ensoleillement " 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>
<data>
<stats_year_NbHoursOfSunshine axisbind="y1axis" legend="Heures d'ensoleillement" color1="44FFFF00" color2="44FF0000" antialiasing="1" filled="1"/>
</data>
<legend orientation="0" margin="5" width="765" position-x="75" position-y="20" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1"/>
<border cornerradius="10" color="55555555" thick="1"/>
<background color1="FFFFFFCC" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</legend>
<border cornerradius="0" color="55555555" thick="0"/>
<background color1="00000000" stretch="1"/>
<graphbackground color1="FFFFFFCC" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</bargraph>
<textbox width="900" height="70" shadow="0" position-x="0" position-y="360" margin="20">
<border cornerradius="10" color="FF909090" thick="1"/>
<text alignement="center">
<line text="Heures d'ensoleillement Année: $Stats[Year,NbHoursOfSunshine] heure(s)"/>
<font color="FF000000" facename="Arial" size="20" weight="400" italic="0"/>
</text>
</textbox>
</stylesheet>
je me pose la question est ce que je dois modifier les stats pour avoir le nbr d'heures par mois
voici mon xml
<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="900" height="500"/>
<frame width="900" height="500" 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="FFFFCC00" color2="FFFFFFFF" gradient="1" gradient-direction="135" stretch="1"/>
<border cornerradius="0" color="55555555" thick="1"/>
</frame>
<!-- ================= First Lineplot ================= -->
<bargraph width="900" height="300" shadow="0" position-x="10" position-y="10" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labelinterval="1" labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." 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="Heures d'ensoleillement " 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>
<data>
<stats_year_NbHoursOfSunshine axisbind="y1axis" legend="Heures d'ensoleillement" color1="44FFFF00" color2="44FF0000" antialiasing="1" filled="1"/>
</data>
<legend orientation="0" margin="5" width="765" position-x="75" position-y="20" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1"/>
<border cornerradius="10" color="55555555" thick="1"/>
<background color1="FFFFFFCC" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</legend>
<border cornerradius="0" color="55555555" thick="0"/>
<background color1="00000000" stretch="1"/>
<graphbackground color1="FFFFFFCC" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</bargraph>
<textbox width="900" height="70" shadow="0" position-x="0" position-y="360" margin="20">
<border cornerradius="10" color="FF909090" thick="1"/>
<text alignement="center">
<line text="Heures d'ensoleillement Année: $Stats[Year,NbHoursOfSunshine] heure(s)"/>
<font color="FF000000" facename="Arial" size="20" weight="400" italic="0"/>
</text>
</textbox>
</stylesheet>
je me pose la question est ce que je dois modifier les stats pour avoir le nbr d'heures par mois
- ardigier
- Membre
- Messages : 2260
- Inscription : mar. mars 23, 2010 6:05 pm
- Localisation : Le Thor 84250
- Contact :
Re: bargraph nbr heures de soleil par mois
qu'est ce qui ne marche pas, l'affichage?, erreur à l'ouverture? autre?
il faut aussi verifier si le tag est présent dans la V2, mon test est réalisé avec la V3
EDIT verification faite ça ne marche pas avec la V2
il faut aussi verifier si le tag est présent dans la V2, mon test est réalisé avec la V3
EDIT verification faite ça ne marche pas avec la V2
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
webcam installée orientation NE
http://le-thor-meteo.com/index.php
-
- Membre
- Messages : 17
- Inscription : sam. janv. 05, 2013 3:44 pm
- Localisation : contrexeville vosges
- Contact :
Re: bargraph nbr heures de soleil par mois
ok je suis en v2
donc la solution passer a la v3
merci
donc la solution passer a la v3
merci
-
- Membre
- Messages : 17
- Inscription : sam. janv. 05, 2013 3:44 pm
- Localisation : contrexeville vosges
- Contact :
Re: bargraph nbr heures de soleil par mois
Je viens de passer a la version 3 sur mon pc de bureau (celui de la station est toujours en version 2)
j'ai utiliser mon xml et la ca marche sauf que sur l'axe des x je n'ai plus les mois en label mais des chiffres
idem pour mon xml des precipitations
j'ai utiliser mon xml et la ca marche sauf que sur l'axe des x je n'ai plus les mois en label mais des chiffres
idem pour mon xml des precipitations
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
- paaubert
- Membre
- Messages : 2624
- Inscription : dim. janv. 17, 2010 7:16 pm
- Localisation : 1555 Villarzel - Switzerland
- Contact :
Re: bargraph nbr heures de soleil par mois
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labelinterval="1" labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." angle="0" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1"/>
A+
<labels labelinterval="1" labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." angle="0" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1"/>
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

-
- Membre
- Messages : 17
- Inscription : sam. janv. 05, 2013 3:44 pm
- Localisation : contrexeville vosges
- Contact :
Re: bargraph nbr heures de soleil par mois
la mystere
avec le meme xml le bargraph des precipitations mensuel
<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="900" height="500"/>
<frame width="900" height="500" 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="FF40E0D0" color2="FF98FB98" gradient="5" gradient-direction="360" stretch="1"/>
<border cornerradius="0" color="55555555" thick="1"/>
</frame>
<!-- ================= First Lineplot ================= -->
<bargraph width="900" height="300" shadow="0" position-x="10" position-y="10" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labelinterval="1" labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." 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="Précipitations ( $Unit[Rainfall] )" 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>
<data>
<stats_year_totalrainfall axisbind="y1axis" legend="Précipitations" color1="FFAAAAFF" color2="FF0000FF" antialiasing="1" filled="1"/>
</data>
<legend orientation="0" margin="5" width="765" position-x="75" position-y="20" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1"/>
<border cornerradius="10" color="55555555" thick="1"/>
<background color1="FFAFEEEE" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</legend>
<background color1="00000000" stretch="1"/>
<graphbackground color1="FFAFEEEE" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</bargraph>
<textbox width="900" height="70" shadow="0" position-x="0" position-y="360" margin="20">
<border cornerradius="10" color="FF909090" thick="1"/>
<text alignement="center">
<line text="Total des précipitations sur l'année :\t\t\t$Stats[Year,TotalRainfall] $Unit[Rainfall]"/>
<font color="FF000000" facename="Arial" size="20" weight="400" italic="0"/>
</text>
</textbox>
</stylesheet>
j'obtiens cela voir images
avec le meme xml le bargraph des precipitations mensuel
<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="900" height="500"/>
<frame width="900" height="500" 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="FF40E0D0" color2="FF98FB98" gradient="5" gradient-direction="360" stretch="1"/>
<border cornerradius="0" color="55555555" thick="1"/>
</frame>
<!-- ================= First Lineplot ================= -->
<bargraph width="900" height="300" shadow="0" position-x="10" position-y="10" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labelinterval="1" labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." 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="Précipitations ( $Unit[Rainfall] )" 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>
<data>
<stats_year_totalrainfall axisbind="y1axis" legend="Précipitations" color1="FFAAAAFF" color2="FF0000FF" antialiasing="1" filled="1"/>
</data>
<legend orientation="0" margin="5" width="765" position-x="75" position-y="20" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1"/>
<border cornerradius="10" color="55555555" thick="1"/>
<background color1="FFAFEEEE" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</legend>
<background color1="00000000" stretch="1"/>
<graphbackground color1="FFAFEEEE" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</bargraph>
<textbox width="900" height="70" shadow="0" position-x="0" position-y="360" margin="20">
<border cornerradius="10" color="FF909090" thick="1"/>
<text alignement="center">
<line text="Total des précipitations sur l'année :\t\t\t$Stats[Year,TotalRainfall] $Unit[Rainfall]"/>
<font color="FF000000" facename="Arial" size="20" weight="400" italic="0"/>
</text>
</textbox>
</stylesheet>
j'obtiens cela voir images
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.