Bonjour à tous,
en utilisant les créations de feuilles de style des autres membres du forum, j'ai créé ma feuille de style pour affichage sur iPad.
Il reste encore des améliorations graphiques à apporter, mais au moins cela me donne les informations nécessaires dont j'ai besoin.
J'ai une question qui concerne mon graphique de températures. Je voudrais savoir comment faire pour faire afficher les dernières 24h à chaque fois que je fais un upload du fichier image sur mon web plutôt qu'un affichage entre 0h la veille et 0h le jour même. En effet, en affichant entre 0h et 0h, avec un upload toutes les 10 minutes, le graphique est à moitié vide toute la journée...Si je pouvais afficher un graphique dont les données varient toutes les 10 mintures pour afficher les dernières 24h ce serait parfait : exemple. Je fais un upload à 19h20 et j'affiche les données entre 19h20 la veille et 19h20 aujourd'hui. Je refais un upload à 19h30 et j'affiche alors les données entre 19h30 la veille et 19h30 aujourd'hui...
Que faut-il que je modifie dans ma feuille de style pour faire cela?
Merci de votre aide...
Voici mon fichier xml :
<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="768" height="1024" />
<!-- ================= Fond ================= -->
<frame width="768" height="1024" position-x="0" position-y="0">
<background color="FF000000" />
<border cornerradius="5" color="" thick="1" />
</frame>
<!-- ================= Titre ================= -->
<textbox width="768" height="40" shadow="0" position-x="0" position-y="0" margin="0">
<text alignement="center">
<line text="Station Jouarenne (86) - $CurrentDate[%d %B %Y à %Hh%M]" />
<font color="FFFFFFFF" size="30" weight="944" italic="1" />
</text>
</textbox>
<textbox width="768" height="30" shadow="0" position-x="0" position-y="20" margin="0">
<text alignement="center">
<line text="-----------------------------------------------------------------------------------------------------------------------------------------" />
<font color="FFFFFFFF" size="15" weight="944" italic="1" />
</text>
</textbox>
<!-- ================= Données ================= -->
<frame width="768" height="1024" position-x="0" position-y="100">
<background color1="FF000000" color2="FF000000" gradient="1" gradient-direction="90" stretch="1" />
<border cornerradius="0" color="FF000000" thick="1" />
</frame>
<!-- ================= Temperature ,point de rosee humidite =================
-->
- <lineplot width="768" height="200" shadow="0" position-x="50" position-y="30" margin-top="23" margin-right="280" margin-bottom="57" margin-left="65">
- <title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="400" italic="1" />
</title>
<border cornerradius="0" color="FF000000" thick="0" />
- <xaxis color="FFC0C0C0" grid="0" autoscale="0" min="0" max="0" titleside="bottom">
- <title text="" alignement="vcenter|hcenter" angle="0">
<font color="FFC0C0C0" facename="Arial" size="12" weight="400" italic="0" />
</title>
- <labels labelinterval="1" angle="0" format="%Hh%M" side="left" hide="0">
<font color="FFC0C0C0" 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="FFFF0000" grid="1" autoscale="1" min="0" max="0" titleside="left" titlemargin="30">
- <title text="Température ($Unit[Temperature])" alignement="vcenter|hcenter" angle="0">
<font color="FFFF0000" facename="Arial" size="14" weight="600" italic="1" />
</title>
- <labels labelinterval="1" angle="0" format=".0" side="left" hide="0">
<font color="FFFF0000" 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 ydelta="70" side="right" color="FF00BB33" grid="0" autoscale="0" min="0" max="100" titleside="right" titlemargin="30">
<title text="Humidité (%)" alignement="vcenter|hcenter" angle="0">
<font color="FF00BB33" facename="Arial" size="14" weight="600" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="right" hide="0">
<font color="FF00BB33" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks autoticks="0" majorticks="5" minorticks="4" side="right" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y2axis>
- <legend position-x="600" position-y="50" hide="0" shadow="0">
<font color="FFC0C0C0" facename="Arial" size="13" weight="800" italic="1" />
<border cornerradius="10" color="FF000000" thick="0" />
<background color="00FFFFFF" />
</legend>
- <data>
<outdoor_temperature axisbind="y1axis" legend="Temp ext" color1="FFFF0000" color2="FFC0C0C0" antialiasing="1" filled="0" hide="0" thick="2" />
<threshold axisbind="y1axis" legend="0°" color1="FF0000FF" value="0" thick="1.0"/>
<temperature_2 axisbind="y1axis" legend="Temp Grange" color1="FF00C4FF" color2="FF0000FF" antialiasing="1" filled="0" hide="0" thick="1.2"/>
<outdoor_humidity axisbind="y2axis" legend="Humidité extérieure" color1="5000FF00" color2="500000FF" antialiasing="1" filled="1" hide="0" />
<outdoor_humidity axisbind="y2axis" legend="Humidité extérieure" color1="300000FF" antialiasing="1" hidelegend="1" thick="1.2"/>
</data>
</lineplot>
<!-- ================= Ligne températures ================= -->
<textbox width="768" height="50" shadow="0" position-x="-130" position-y="190" margin="0">
<text alignement="center">
<line text="Température Ext" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="-130" position-y="220" margin="0">
<text alignement="center">
<line text="$Current[outdoor_temperature]°" />
<font color="FF44C13E" facename="Comic sans ms" size="100" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="-320" position-y="190" margin="0">
<text alignement="center">
<line text="Mini / j" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="-320" position-y="220" margin="0">
<text alignement="center">
<line text="$Min[outdoor_temperature]°" />
<font color="FF0000FF" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="60" position-y="190" margin="0">
<text alignement="center">
<line text="Maxi / j" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="60" position-y="220" margin="0">
<text alignement="center">
<line text="$Max[outdoor_temperature]°" />
<font color="FFFF0000" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="250" position-y="190" margin="0">
<text alignement="center">
<line text="Température Int" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="250" position-y="220" margin="0">
<text alignement="center">
<line text="$Current[indoor_temperature]°" />
<font color="FFFFFF00" facename="Comic sans ms" size="70" weight="600" italic="0" />
</text>
</textbox>
<!-- ================= Ligne humidité ================= -->
<textbox width="768" height="50" shadow="0" position-x="0" position-y="280" margin="0">
<text alignement="center">
<line text="Humidité" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="0" position-y="310" margin="0">
<text alignement="center">
<line text="$Current[outdoor_humidity]%" />
<font color="FF44C13E" facename="Comic sans ms" size="100" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="-270" position-y="280" margin="0">
<text alignement="center">
<line text="Pt de rosée" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="-270" position-y="310" margin="0">
<text alignement="center">
<line text="$Current[dew_point]°" />
<font color="FF0000FF" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="270" position-y="280" margin="0">
<text alignement="center">
<line text="WindChill" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="270" position-y="310" margin="0">
<text alignement="center">
<line text="$Current[wind_chill]°" />
<font color="FF0000FF" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<!-- ================= Ligne Pression ================= -->
<textbox width="768" height="50" shadow="0" position-x="0" position-y="390" margin="0">
<text alignement="center">
<line text="Pression" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="0" position-y="420" margin="0">
<text alignement="center">
<line text="$Current[relative_pressure,6.1]hPa" />
<font color="FF44C13E" facename="Comic sans ms" size="100" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="270" position-y="390" margin="0">
<text alignement="center">
<line text="Tendance" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="270" position-y="420" margin="0">
<text alignement="center">
<line text="$Current[rate_relative_pressure]/h" />
<font color="FF0000FF" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="-270" position-y="390" margin="0">
<text alignement="center">
<line text="Prévision" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
!-- ================= Icon ================= -->
<frame width="70" height="70" position-x="80" position-y="430">
<background color="ff0000ff" texture="$WeatherForecast[Icon]" stretch="1" />
</frame>
<!-- ================= Ligne pluie ================= -->
<textbox width="768" height="50" shadow="0" position-x="0" position-y="540" margin="0">
<text alignement="center">
<line text="Pluie du jour " />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="0" position-y="570" margin="0">
<text alignement="center">
<line text="$Stats[Day,TotalRainfall] mm" />
<font color="FF44C13E" facename="Comic sans ms" size="100" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="-270" position-y="540" margin="0">
<text alignement="center">
<line text="Mois" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="-270" position-y="570" margin="0">
<text alignement="center">
<line text="$Stats[Month,TotalRainfall]" />
<font color="FF0000FF" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="270" position-y="540" margin="0">
<text alignement="center">
<line text="Année" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="270" position-y="570" margin="0">
<text alignement="center">
<line text="$Stats[Year,TotalRainfall]" />
<font color="FF0000FF" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<!-- ================= Ligne vent ================= -->
<textbox width="768" height="50" shadow="0" position-x="0" position-y="650" margin="0">
<text alignement="center">
<line text="Vent" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="0" position-y="680" margin="0">
<text alignement="center">
<line text="$Current[wind_gust] $Unit[Speed]" />
<font color="FF44C13E" facename="Comic sans ms" size="100" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="-270" position-y="650" margin="0">
<text alignement="center">
<line text="Moyen/J" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="-270" position-y="680" margin="0">
<text alignement="center">
<line text="$Mean[wind_speed]" />
<font color="FF0000FF" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="270" position-y="650" margin="0">
<text alignement="center">
<line text="Max/J" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<textbox width="768" height="100" shadow="0" position-x="270" position-y="680" margin="0">
<text alignement="center">
<line text="$Max[wind_gust]" />
<font color="FF0000FF" facename="Comic sans ms" size="40" weight="600" italic="0" />
</text>
</textbox>
<!-- ================= graphiques vent ================= -->
<textbox width="768" height="50" shadow="0" position-x="-300" position-y="880" margin="0">
<text alignement="center" angle="90">
<line text="Actuel" />
<font color="FFFFFFFF" size="30" weight="-200" italic="1" />
</text>
</textbox>
<textbox width="768" height="50" shadow="0" position-x="300" position-y="880" margin="0">
<text alignement="center" angle="270">
<line text="Dominant" />
<font color="FFFFFFFF" size="30" weight="200" italic="1" />
</text>
</textbox>
<circulargauge width="150" height="150" shadow="0" orientation="1" position-x="150" position-y="820" margin-top="0" margin-right="0" margin-bottom="0" margin-left="0">
<axis color="FF44C13E" min="0" max="360" titlemargin="20" titleside="32" fromangle="90" toangle="450">
<labels labels="N;NO;O;SO;S;SE;E;NE" labelinterval="1" side="1" hide="0">
<font color="FF44C13E" facename="Comic sans ms" size="25" weight="600" italic="0" />
</labels>
<ticks majorticks="9" minorticks="3" side="32" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="20"/>
</axis>
<index>
<current_wind_direction color1="FFFF0000" />
</index>
<border cornerradius="0" color="FF000000" thick="0" />
<gaugebackground color="00000000" texture="" />
</circulargauge>
<!-- ================= Radarplot ================= -->
<radarplot width="200" height="200" shadow="0" position-x="410" position-y="800" margin-top="20" margin-right="20" margin-bottom="20" margin-left="20">
<title text="" alignement="top|hcenter" angle="0">
<font color="FF44C13E" facename="Arial" size="30" weight="400" italic="1" />
</title>
<border cornerradius="0" color="FF44C13E" thick="0" />
<axis color="FF44C13E" grid="1" autoscale="1" min="0" max="0">
<titles text="E;ENE;NE;NNE;N;NN0;N0;0N0;0;0S0;S0;SS0;S;SSE;SE;ESE">
<font color="FF44C13E" facename="Comic sans ms" size="20" weight="400" italic="0" />
</titles>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0">
<font color="FF44C13E" facename="Comic sans ms" size="12" weight="400" italic="1" />
</labels>
<ticks autoticks="0" majorticks="4" minorticks="2" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</axis>
<legend position-x="0" position-y="0" hide="1" shadow="5">
<font color="FF44C13E" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="0" color="FF44C13E" thick="1" />
<background color="FFFFFFFF" texture="" />
</legend>
<background color="00000000" texture="" stretch="1" />
<graphbackground color="00000000" />
<data>
<wind_direction legend="" color1="FFFF0000" color2="FFFF0000" antialiasing="1" filled="1" />
<wind_direction legend="" color1="FFFF0000" antialiasing="1" hidelegend="1" thick="1.2" />
</data>
</radarplot>
</stylesheet>
Stylesheet iPad et aide pour modification de graphique?
- paaubert
- Membre
- Messages : 2624
- Inscription : dim. janv. 17, 2010 7:16 pm
- Localisation : 1555 Villarzel - Switzerland
- Contact :
Re: Stylesheet iPad et aide pour modification de graphique?
Bonsoir,
Ce n'est pas dans la feuille de style que tu dois modifier ça, mais dans les paramètres de transfert de ton graphique, au lieu de mettre une période de 24h, tu mets grapher les 1440 dernières minutes.
A+
Ce n'est pas dans la feuille de style que tu dois modifier ça, mais dans les paramètres de transfert de ton graphique, au lieu de mettre une période de 24h, tu mets grapher les 1440 dernières minutes.
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

Re: Stylesheet iPad et aide pour modification de graphique?
super...merci.
Re: Stylesheet iPad et aide pour modification de graphique?
Bon, cette fois-ci j'ai fait ce qu'il fallait pour prendre en compte les 1440 dernières minutes. C'est OK.
Cependant j'ai encore un petit soucis. Sur mon graphique la dernière heure est vide. C'est en dire qu'en fait sur les 1440 dernières minutes, la légende prend bien en compte les 1440 dernières minutes, mais sur le graphe il n'apparait que 23 heures, soit 1380 minutes...Comment faire pour faire tout afficher?

By fxlacombe at 2012-01-30
Cependant j'ai encore un petit soucis. Sur mon graphique la dernière heure est vide. C'est en dire qu'en fait sur les 1440 dernières minutes, la légende prend bien en compte les 1440 dernières minutes, mais sur le graphe il n'apparait que 23 heures, soit 1380 minutes...Comment faire pour faire tout afficher?

By fxlacombe at 2012-01-30
- ardigier
- Membre
- Messages : 2260
- Inscription : mar. mars 23, 2010 6:05 pm
- Localisation : Le Thor 84250
- Contact :
Re: Stylesheet iPad et aide pour modification de graphique?
il me semble que si on choisit dans le parametre de transfert "derniéres 24 heures" cela doit marcher
de memoire jour en cours = de 0 à 24 h
derniéres 24 h = de l'instant ou on ouvre le stylesheet à - 24 h
de memoire jour en cours = de 0 à 24 h
derniéres 24 h = de l'instant ou on ouvre le stylesheet à - 24 h
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