augmenter taille du graphe

Une question, un bug ?
Répondre
maxime1
Membre
Messages : 127
Inscription : mar. mai 22, 2007 8:44 pm

Message par maxime1 »

bonjour à tous

Voila depuis quelques jours l'affichage du graphe n'est pas assez large et la date est coupée comme exposé ici: http://www.auribeaumeteo.com/pages/graph2.jpg
pourriez vous m'indiquer comment l'agrandir.

merci d'avance.

maxime
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

Salut,

Le plus simple est de diminuer la police du titre. Tu devrais trouver cette ligne dans report.xml :
<font color="FF5555BB" facename="Comic sans ms" size="28" weight="800" italic="0" />

Diminue le 28 en 20 par exemple.

Antoine.
dominique
Membre
Messages : 140
Inscription : jeu. sept. 06, 2007 8:24 am
Contact :

Message par dominique »

bonjour

ayant eu les même soucis, j'ai modifié la taille des fichiers img_report.png 1puis2 ( 500x307) ensuite j'ai modifié le fichier report.xml

ne sachant pas trop comment faire au début j'ai fait une copie du fichier avant , au cas ou.

http://meteo.canejan.free.fr

désolé pour la taille du post.

copie de report.xml

<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="500" height="307" />
<!-- ================= Image d'arrière plan ================= -->
<frame width="500" height="307" position-x="0" position-y="0">
<background color="ff0000ff" texture="img_report1.png" stretch="1" />
<border cornerradius="20" color="FF555555" thick="1" />
</frame>
<!-- ================= Stats ================= -->
<textbox width="500" height="307" shadow="0" position-x="120" position-y="0" margin="10">
<text alignement="3" text="tle temps à Canejan len$CURRENT_DATE[%A %d %B %Y à %Hh%M]">
<font color="FF5555BB" facename="Comic sans ms" size="28" weight="800" italic="0" />
</text>
<background color="00000000"/>
</textbox>
<textbox width="500" height="307" shadow="0" position-x="120" position-y="0" margin="10">
<text alignement="3">
<line text="nnn"/>
<line text="Pression relative : $CURRENT[relative_pressure] $UNIT[PRESSURE]"/>
<line text="Humidité exterieure : $CURRENT[outdoor_humidity] %"/>
<line text="Point de rosée : $CURRENT[dew_point] $UNIT[TEMPERATURE]"/>
<line text="Facteur vent : $CURRENT[wind_chill] $UNIT[TEMPERATURE]"/>
<line text="Facteur humidex : $CURRENT[heat_index] $UNIT[TEMPERATURE]n"/>
<line text="Vitesse vent : $CURRENT[wind_speed] $UNIT[SPEED]"/>
<line text="Total précipitations : $CURRENT[absolute_rainfall] $UNIT[RAINFALL]"/>
<line text="Pluie 1h : $CURRENT[rainfall_1h] $UNIT[RAINFALL]"/>
<line text="Pluie 24h : $CURRENT[rainfall_24h] $UNIT[RAINFALL]"/>
<font color="FF555555" facename="Comic sans ms" size="18" weight="600" italic="0" />
</text>
<background color="00000000"/>
</textbox>
<!-- ================= Jauge Temperature exterieure ================= -->
<lineargauge width="150" height="307" shadow="0" orientation="1" position-x="1" position-y="0" margin-top="20" margin-right="9" margin-bottom="55" margin-left="11">
<title text="$CURRENT[outdoor_temperature] $UNIT[TEMPERATURE]" alignement="64" angle="0" position-x="0.47" position-y="0.93">
<font color="FF555555" facename="Comic sans ms" size="20" weight="800" italic="0" />
</title>
<axis color="FF000000" min="-10" max="30" side="4" titlemargin="30">
<labels labelinterval="1" side="2" hide="0">
<font color="FF555555" facename="Arial" size="14" weight="800" italic="0" />
</labels>
<ticks majorticks="5" minorticks="3" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_outdoor_temperature color1="FFFF0000" color2="FF00FF00" filled="1" side="2" thick="9" axisdelta="0"/>
</index>
<border cornerradius="0" color="FF000000" thick="0" />
<background color="00000000"/>
<gaugebackground color="00000000"/>
</lineargauge>
<circulargauge width="80" height="80" shadow="0" orientation="1" position-x="340" position-y="125" margin-top="0" margin-right="0" margin-bottom="0" margin-left="0">
<axis color="FF000000" min="0" max="360" titlemargin="20" titleside="32" fromangle="90" toangle="450">
<labels labels="N;O;S;E" labelinterval="1" side="1" hide="0">
<font color="FF555555" facename="Comic sans ms" size="14" weight="800" italic="0" />
</labels>
<ticks majorticks="5" minorticks="3" side="32" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_wind_direction color1="90FF0000" />
</index>
<border cornerradius="0" color="FF000000" thick="0" />
<gaugebackground color="00000000" texture="" />
</circulargauge>
<!-- ================= Reflet jauge Temperature exterieure ================= -->
<frame width="500" height="307" position-x="0" position-y="0">
<background color="ff0000ff" texture="img_report2.png" stretch="1" />
</frame>
</stylesheet>
mon site / la webcam
station : Vantage pro2 logiciel : Graphweather 2.0.312b, WeatherLink 5.9.1, windows XP sp3 .
maxime1
Membre
Messages : 127
Inscription : mar. mai 22, 2007 8:44 pm

Message par maxime1 »

TiToine a écrit :Salut,

Le plus simple est de diminuer la police du titre. Tu devrais trouver cette ligne dans report.xml :
<font color="FF5555BB" facename="Comic sans ms" size="28" weight="800" italic="0" />

Diminue le 28 en 20 par exemple.

Antoine.
Merci ça fonctionne maintenant (24 suffisait)
Répondre