Bargraph: AIDE

Une question, un bug ?
Répondre
CrasHBoneS
Nouveau membre
Messages : 7
Inscription : jeu. sept. 13, 2012 1:18 pm

Bargraph: AIDE

Message par CrasHBoneS »

Salut à tous, je suis en utilisant GraphWeather v 2.0.321 pour réaliser des graphiques personnalisés, la station météo est en utilisant le programme Cumulus, mais les graphiques ne sont pas personnalisables donc j'utilise GraphWeather d'avoir de meilleurs graphiques

GraphWeather est configuré pour utiliser le plugin de base-CSV.dll et lire des données depuis realtimelog.txt (dans ce fichier sont recueillies les données à partir realtime.txt)

Dans le fichier realtimelog.txt il n'est pas connecté dailyrain données, mais ces données sont enregistrées dans dayfile.txt

Ceci est un exemple de semplified dayfile.txt

Code : Tout sélectionner

06/09/12;1.0;
07/09/12;2.0;
08/09/12;3.0;
09/09/12;4.0;
10/09/12;5.0;
11/09/12;6.0;
12/09/12;7.0;
13/09/12;8.0;
Par exemple: le 09.06.12 pluie journalière mesurée est de 1 mm, sur 09/07/12 pluie journalière est de 2 mm mesurée et ainsi de suite

J'ai également configuré plugin_optional_1 CSV.dll et configuré relative_rainfall_1 dans la colonne 2
Image


et le graphe est représenté ci-dessous
Image

Ceci est du code XML pour générer le graphique
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="750" height="300" />
<frame width="750" height="300" 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="680" height="300" shadow="0" position-x="10" position-y="10" margin-top="30" margin-right="5" margin-bottom="50" margin-left="40">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format="%d/%m/%y" side="left" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
</labels>
<ticks majorticks="8" minorticks="0" 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="Pioggia giornaliera ($Unit[Rainfall])" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
</labels>
<ticks majorticks="4" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<relative_rainfall_1 axisbind="y1axis" legend="Pioggia giornaliera" color1="FFFF0000" filled="0" hide="0" thick="1.2"/>
</data>
<legend orientation="0" margin="5" width="635" position-x="50" position-y="5" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="700" italic="1" />
<border cornerradius="0" color="55555555" thick="1" />
<background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90"/>
</legend>
<border cornerradius="0" color="55555555" thick="0" />
<background color1="00000000" stretch="1" />
<graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
</lineplot>
</stylesheet>


Le problème que j'ai:
Je voudrais pluie graphique quotidien PAS avec lineplot mais avec bargraph, mais si j'utilise "bargraph" au lieu de "lineplot" étiquettes de l'axe X sont mis à 0
Pourquoi? merci
Image
Image
Avatar de l’utilisateur
paaubert
Membre
Messages : 2624
Inscription : dim. janv. 17, 2010 7:16 pm
Localisation : 1555 Villarzel - Switzerland
Contact :

Re: Bargraph: AIDE

Message par paaubert »

Salut,

Essaye ça.

A+
_________________________________________________________________________________________________

<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="700" height="400" />
<frame width="700" 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="FFFFFFFF" color2="FF79BCFF" texture="" stretch="1" gradient="1" gradient-direction="90" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>

<!-- ================= mois en cours ================= -->
<bargraph width="750" height="380" shadow="0" position-x="-10" position-y="30" margin-top="40" margin-right="70" margin-bottom="50" margin-left="65">
<xaxis color="FF0000FF" grid="1" autoscale="0" min="0" max="0">
<title text="" alignement="20" angle="0">
<font color="FF0062C4" facename="Arial" size="16" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format="%d" side="2" hide="0">
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="32" minorticks="0" side="0" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF0000FF" grid="1" autoscale="1" min="0" max="40" y-base="0.0" titleside="left" titlemargin="35">
<title text="Précipitations ( $Unit[Rainfall] )" alignement="vcenter|hcenter" angle="0">
<font color="" facename="Time new roman" 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="9" minorticks="1" side="0" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_month_totalrainfall axisbind="y1axis" legend="" color1="FF0000FF" color2="FF80FFFF" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="5" width="765" position-x="300" position-y="35" 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>
<border cornerradius="0" color="55555555" thick="0" />
<background color1="00000000" stretch="1" />
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Cumule sur la période mois================= -->
<textbox width="500" height="30" shadow="0" position-x="100" position-y="35" margin="5" >
<border cornerradius="10" color="55555555" thick="1" />
<text alignement="center">
<line text="Cumul des précipitations sur le mois en cours : $Stats[Month,TotalRainfall] $UNIT[RAINFALL]"/>
<font color="FF0000FF" facename="Comic Sans MS" size="20" weight="400" italic="0" />
</text>
<background color1="FFFFFFFF" color2="FF79BCFF" gradient="1" gradient-direction="90" />
</textbox>
<textbox width="470" height="50" position-x="395" position-y="375" >
<text>
<font color="FF0000FF" facename="Time new roman" size="12" weight="400" italic="0" />
<line text="Rapport généré le $CurrentDate[%A %d %B %Y à %Hh%M]\n" alignement="vcenter|hcenter"/>
</text>
<background color1="" color2="" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<textbox width="450" height="50" position-x="250" position-y="0" >
<text>
<font color="FF0000FF" facename="Comic Sans MS" size="26" weight="600" italic="0" />
<line text=" PRECIPITATIONS " alignement="vcenter|hcenter"/>
</text>
<background color1="" color2="" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
</stylesheet>
_________________________________________________________________________________________________________
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
Image
Avatar de l’utilisateur
MAGNUS
Membre
Messages : 992
Inscription : dim. mars 26, 2006 4:44 pm
Localisation : VIDAUBAN (83) FRANCE
Contact :

Re: Bargraph: AIDE

Message par MAGNUS »

Bonjour,
Je peux vous passer le stylesheet de mon bargraph que vous pourrez modifier à votre gout.
Voir le bargraph ici :http://www.vardecouverte.fr/pluie%20moi ... 0cours.htm
Cordialement.
Station WMR 200 avec XNet_meteo V 2014-10-29a Logiciels:Graphweather V 3.0.16, Noaa Template2, Windows 7
Mon abri météo ici :http://www.vardecouverte.fr/sta%20bc2008.htm
Site Web : http://www.vardecouverte.fr
Image
Avatar de l’utilisateur
domidom81
Membre
Messages : 477
Inscription : mer. févr. 18, 2009 1:34 pm
Localisation : Lagarrigue 81 (Tarn France)
Contact :

Re: Bargraph: AIDE

Message par domidom81 »

MAGNUS a écrit :Bonjour,
Je peux vous passer le stylesheet de mon bargraph que vous pourrez modifier à votre gout.
Voir le bargraph ici :http://www.vardecouverte.fr/pluie%20moi ... 0cours.htm
Cordialement.
Bonjour,
Je veux bien moi! Si tu n'y vois pas d'inconvénient! :D
a+
Station VP2-IP + WebCam sur IC Lagarrigue81 Weatherlink 6555 (V 6.0.2)
Site Station VantagePro2+WebCam Foscam FI9805W (GW V3.0.15) Win10x64 Pc HP
Image
Avatar de l’utilisateur
MAGNUS
Membre
Messages : 992
Inscription : dim. mars 26, 2006 4:44 pm
Localisation : VIDAUBAN (83) FRANCE
Contact :

Re: Bargraph: AIDE

Message par MAGNUS »

domidom81 a écrit :
MAGNUS a écrit :Bonjour,
Je peux vous passer le stylesheet de mon bargraph que vous pourrez modifier à votre gout.
Voir le bargraph ici :http://www.vardecouverte.fr/pluie%20moi ... 0cours.htm
Cordialement.
Bonjour,
Je veux bien moi! Si tu n'y vois pas d'inconvénient! :D
a+
Bonjour,
OK pas de PB, contacte moi par l’intermédiaire de mon site et je t'indiquerais les petites astuces de modif au cas ou...
Cordialement.
Station WMR 200 avec XNet_meteo V 2014-10-29a Logiciels:Graphweather V 3.0.16, Noaa Template2, Windows 7
Mon abri météo ici :http://www.vardecouverte.fr/sta%20bc2008.htm
Site Web : http://www.vardecouverte.fr
Image
Répondre