Stylesheet avec des instuments de cockpit

Stylesheet XML créés par nos membres
Répondre
Avatar de l’utilisateur
MétéoHouba
Membre
Messages : 34
Inscription : mar. janv. 04, 2011 9:37 pm
Localisation : Rhône-Alpes
Contact :

Stylesheet avec des instuments de cockpit

Message par MétéoHouba »

Bonsoir,
une feuille de style, sous forme d'instruments de cockpit, dans les fichiers Zip se trouvent les images de jauges ainsi que les index, la version "airgraft 1.xml" et utilisable pour les noms de lieux longs tel que 'St-Julien en Genevois' etc.
Si vous avez des commentaires ou des questions, n'hésitez pas.

<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="760" height="810" position-x="0" position-y="0"/>
<frame width="760" height="810" position-x="0" position-y="0">
<background color="FF656565"/>
<border cornerradius="60" color="00656565" thick="20"/>
</frame>
<textbox width="90" height="30" position-x="140" position-y="15" margin="0">
<text alignement="left|top">
<line text="Index Maxima"/>
<font color="FFff0000" size="16" weight="800"/>
</text>
</textbox>
<textbox width="90" height="30" position-x="40" position-y="15" margin="0">
<text alignement="left|top">
<line text="Index Minima"/>
<font color="FF00FF00" size="16" weight="800"/>
</text>
</textbox>
<!-- ================= Humidex ================= -->
<circulargauge width="250" height="250" shadow="0" orientation="1" position-x="500" position-y="278" margin-top="45" margin-right="45" margin-bottom="45" margin-left="45">
<title text="Humidex" alignement="relative" angle="0" position-x="0.51" position-y="0.82"> <font color="FFFFFFFF" facename="Arial" size="18" weight="800"/>
</title>
<axis color="FFFFFFFF" min="0" max="60" titlemargin="20" titleside="top" fromangle="-45" toangle="225">
<labels labelinterval="1" side="1" hide="0">
<font color="FFFFFFFF" facename="Arial" size="16" weight="800" italic="0"/>
</labels>
<ticks majorticks="9" minorticks="3" side="32" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_heat_index texture="index jaune.png"/>
</index>
<background texture="bg_ph.png" stretch="1"/>
</circulargauge>
<circulargauge width="250" height="250" shadow="0" orientation="1" position-x="500" position-y="278" margin-top="45" margin-right="45" margin-bottom="45" margin-left="45">
<title text="$Current[heat_index] $Unit " alignement="relative" angle="0" position-x="0.51" position-y="0.88">
<font color="FF00FFFF" facename="Arial" size="18" weight="800" italic="1"/>
</title>
<axis color="FFFFFFFFF" min="0" max="60" titlemargin="20" titleside="top" fromangle="-45" toangle="225">
<labels labelinterval="1" side="1" hide="0">
<font color="FFFFFFFF" facename="Arial" size="16" weight="800" italic="0"/>
</labels>
<ticks majorticks="9" minorticks="3" side="32" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
</circulargauge>
<!-- ================= Humidité ================= -->
<circulargauge width="250" height="250" shadow="0" orientation="1" position-x="500" position-y="278" margin-top="65" margin-right="65" margin-bottom="65" margin-left="65">
<title text="Humidité" alignement="relative" angle="0" position-x="0.5" position-y="0.69">
<font color="FFFFFFFF" facename="Arial" size="18" weight="800" italic="0"/>
</title>
<axis color="FFFFFFFF" min="10" max="100" titlemargin="70" titleside="2" fromangle="-45" toangle="225">
<labels labelinterval="1" side="32" hide="0">
<font color="FFFFFFFF" facename="Arial" size="16" weight="800" italic="0"/>
</labels>
<ticks majorticks="7" minorticks="2" side="0" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_outdoor_humidity texture="needle_humid.png"/>
<stats_day_max_outdoor_humidity texture="index rouge ext.png"/>
<stats_day_min_outdoor_humidity texture="index vert ext.png"/>
</index>
</circulargauge>
<circulargauge width="250" height="250" shadow="0" orientation="1" position-x="500" position-y="278" margin-top="65" margin-right="65" margin-bottom="65" margin-left="65">
<title text="$Current[outdoor_humidity] $Unit[outdoor_humidity] %" alignement="relative" angle="0" position-x="0.5" position-y="0.75">
<font color="FF00FFFF" facename="Arial" size="18" weight="800" italic="1"/>
</title>
<axis color="FFFFFFFF" min="10" max="100" titlemargin="70" titleside="2" fromangle="-45" toangle="225">
<labels labelinterval="1" side="32" hide="0">
<font color="FFFFFFFF" facename="Arial" size="16" weight="800" italic="0"/>
</labels>
<ticks majorticks="7" minorticks="2" side="0" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
</circulargauge>
<!-- ================= Vitesse du vent ================= -->
<circulargauge width="250" height="250" shadow="0" orientation="1" position-x="258" position-y="278" margin-top="57" margin-right="57" margin-bottom="57" margin-left="57">
<title text="$Current[wind_speed] $Unit[Speed]" alignement="relative" angle="0" position-x="0.50" position-y="0.75">
<font color="FF00FFFF" facename="Arial" size="18" weight="800" italic="1"/>
</title>
<axis color="FFFFFFFF" min="0" max="120" titlemargin="50" titleside="top" fromangle="-45" toangle="225">
<title text="Vent" alignement="relative" angle="0" position-x="0.95" position-y="0.99">
<font color="FFFFFFFF" facename="Arial" size="18" weight="800"/>
</title>
<labels labelinterval="1" side="194" hide="0">
<font color="FFFFFFFF" facename="Arial" size="18" weight="800"/>
</labels>
<ticks majorticks="13" minorticks="1" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_wind_speed texture="needle_tacho.png"/>
<current_wind_gust texture="index blanc.png"/>
<stats_day_max_wind_speed texture="index rouge ext.png"/>
<stats_day_max_wind_gust texture="index vert ext.png"/>
</index>
<background texture="bg_ph.png" stretch="1"/>
</circulargauge>
<!-- ================= Température extérieure ================= -->
<circulargauge width="250" height="250" shadow="0" orientation="1" position-x="10" position-y="30" margin-top="58" margin-right="58" margin-bottom="58" margin-left="58">
<title text="$Current[outdoor_temperature] $Unit[Temperature]" alignement="relative" angle="0" position-x="0.70" position-y="0.60">
<font color="FF00FFFF" facename="Arial" size="18" weight="800" italic="1"/>
</title>
<background color="FF0000FF" texture="bg_temp.png" stretch="1"/>
<axis color="FFFFFFFF" min="-20" max="40" titlemargin="100" titleside="top" fromangle="-270" toangle="-90">
<labels labelinterval="1" side="1" hide="0">
<font color="FFFFFFFF" facename="Arial" size="16" weight="800" italic="0"/>
</labels>
<ticks majorticks="7" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="8" majorticksize="12"/>
</axis>
<index>
<current_outdoor_temperature texture="needle_temp.png"/>
<stats_day_max_outdoor_temperature texture="index rouge ext.png"/>
<stats_day_min_outdoor_temperature texture="index vert ext.png"/>
</index>
</circulargauge>
<circulargauge width="250" height="250" shadow="0" orientation="0" position-x="10" position-y="30" margin-top="58" margin-right="58" margin-bottom="58" margin-left="58">
<title text="Température\nextérieure" alignement="relative" angle="0" position-x="0.67" position-y="0.45">
<font color="FFFFFFFF" facename="Arial" size="18" weight="800"/>
</title>
</circulargauge>
<!-- ================= Point de rosée ================= -->
<circulargauge width="250" height="250" shadow="0" orientation="0" position-x="10" position-y="278" margin-top="58" margin-right="58" margin-bottom="58" margin-left="58">
<title text="$Current[dew_point] $Unit[Temperature]" alignement="relative" angle="0" position-x="0.70" position-y="0.60">
<font color="FF00FFFF" facename="Arial" size="18" weight="800" italic="1"/>
</title>
<background color="FF0000FF" texture="bg_temp.png" stretch="1"/>
<axis color="FFFFFFFF" min="-20" max="40" titlemargin="100" titleside="top" fromangle="-270" toangle="-90">
<labels labelinterval="1" side="1" hide="0">
<font color="FFFFFFFF" facename="Arial" size="16" weight="800"/>
</labels>
<ticks majorticks="7" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="8" majorticksize="12"/>
</axis>
<index>
<current_dew_point filled="1" texture="needle_temp.png"/>
<stats_day_min_dew_point texture="index vert ext.png"/>
<stats_day_max_dew_point texture="index rouge ext.png"/>
</index>
</circulargauge>
<circulargauge width="250" height="250" shadow="0" orientation="0" position-x="10" position-y="278" margin-top="-30" margin-right="-30" margin-bottom="-30" margin-left="-30">
<title text="Point\nde\nrosée" alignement="relative" angle="0" position-x="0.67" position-y="0.45">
<font color="FFFFFFFF" facename="Arial" size="18" weight="800"/>
</title>
</circulargauge>
<!-- =================Girouette ================= -->
<circulargauge width="250" height="250" shadow="0" orientation="1" position-x="258" position-y="30" margin-top="95" margin-right="90" margin-bottom="95" margin-left="98">
<title text="$Current[wind_direction,f1]" alignement="relative" angle="0" position-x="0.52" position-y="0.88">
<font color="FF00FFFF" facename="Arial" size="18" weight="800" italic="1"/>
</title>
<axis color="00000000" min="0" max="360" titlemargin="20" titleside="0" fromangle="90" toangle="450">
<ticks majorticks="9" minorticks="3" side="1" hidefirst="0" hidelast="0" hideminorticks="0" thick="4" hide="0" minorticksize="5" majorticksize="10"/>
</axis>
<index>
<current_wind_direction texture="index_gir.png"/>
</index>
<background texture="bg_rose.png" stretch="1"/>
</circulargauge>
<!-- ================= Pression relative ================= -->
<circulargauge width="250" height="250" shadow="0" orientation="1" position-x="500" position-y="30" margin-top="57" margin-right="57" margin-bottom="57" margin-left="57">
<title text="$Current[relative_pressure,6.1] $Unit[Pressure]" alignement="relative" angle="0" position-x="0.5" position-y="0.85">
<font color="FF00FFFF" facename="Arial" size="18" weight="800" italic="1"/>
</title>
<axis color="FFFFFFFF" min="940" max="1060" titlemargin="38" titleside="1" fromangle="-45" toangle="225">
<title text="Pression\nrelative" alignement="vcenter|hcenter" angle="0">
<font color="FFFFFFFF" facename="Arial" size="18" weight="800" italic="0"/>
</title>
<labels labelinterval="1" side="0" hide="0">
<font color="FFFFFFFF" facename="Arial" size="16" weight="800" italic="0"/>
</labels>
<ticks majorticks="7" minorticks="3" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
</axis>
<index>
<current_relative_pressure texture="needle_tacho.png"/>
<stats_day_min_relative_pressure texture="index vert ext.png"/>
<stats_day_max_relative_pressure texture="index rouge ext.png"/>
</index>
<background texture="bg_ph.png" stretch="1"/>
</circulargauge>
<!-- ================= Icone conditions================= -->
<frame width="250" height="250" shadow="0" orientation="0" position-x="10" position-y="527">
<background color="FF0000FF" texture="bg_con.png" stretch="1"/>
</frame>
<frame width="200" height="200" position-x="37" position-y="553">
<background color="FF0000FF" texture="$WeatherConditions[Icon]" stretch="1"/>
</frame>
<!-- ================= Lieu ================= -->
<frame width="150" height="110" position-x="264" position-y="525">
<background color="FFFF0000" texture="bg_clock.png" stretch="1"/>
</frame>
<textbox width="150" height="110" shadow="0" position-x="264" position-y="525" margin="20">
<text alignement="center|top">
<line text="$Country"/>
<font color="FFFF0000" size="22" weight="800"/>
</text>
</textbox>
<!-- ================= Date ================= -->
<frame width="150" height="110" position-x="413" position-y="525">
<background color="FFFF0000" texture="bg_clock.png" stretch="1"/>
</frame>
<textbox width="150" height="110" shadow="0" position-x="413" position-y="525" margin="20">
<text alignement="center|top">
<line text="$CurrentDate[%d %B \n%Y]" alignement="top|hcenter" angle="0" position-x="0.1" position-y="0.4"/>
<font color="FFFF0000" size="20" weight="800"/>
</text>
</textbox>
<!-- ================= Clock ================= -->
<frame width="150" height="110" position-x="562" position-y="525">
<background texture="bg_clock.png" stretch="1"/>
</frame>
<textbox width="150" height="110" shadow="0" position-x="562" position-y="525" margin="20">
<text alignement="center|top">
<line text="$CurrentDate[%H:%M:%S]" alignement="top|hcenter" angle="0" position-x="0.1" position-y="0.4"/>
<font color="FFFF0000" size="25" weight="800"/>
</text>
</textbox>
<!-- ================= Stats ================= -->
<frame width="470" height="135" position-x="259" position-y="630">
<background texture="Bg_stats.png" stretch="1"/>
</frame>
<frame width="36" height="36" position-x="585" position-y="710">
<background color="FF0000FF" texture="$WeatherForecast[Icon]" stretch="1"/>
</frame>
<textbox width="450" height="120" shadow="0" position-x="284" position-y="645" margin="5">
<text alignement="left|top">
<line text="Pression relative : $Current[relative_pressure] $Unit[Pressure] ($Current[rate_relative_pressure] $Unit[Pressure]/h) \t Pluie 1h : $Current[rainfall_1h] $Unit[Rainfall]"/>
<line text="Humidité extérieure : $Current[outdoor_humidity] % \t\t\t du mois: $Stats[Month,TotalRainfall] $Unit[Rainfall]"/>
<line text="Point de rosée : $Current[dew_point] $Unit[Temperature]\t\t\t de l'année: $Stats[Year,TotalRainfall] $Unit[Rainfall]"/>
<line text="Facteur vent : $Current[wind_chill] $Unit[Temperature]"/>
<line text="Facteur humidex : $Current[heat_index] $Unit[Temperature]"/>
<line text="Vitesse vent : $Current[wind_speed] $Unit[Speed]\t\t Prévision à 12h : $WeatherForecast[Comment]"/>
<font color="FF00FFFF" size="16" weight="400"/>
</text>
</textbox>

</stylesheet>
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Station: La Crosse Technology WS-2308-11
http://bernard.amacker.free.fr/crbst_7.html
Image
dad
Nouveau membre
Messages : 8
Inscription : dim. févr. 15, 2009 9:28 am
Localisation : la carlota (espagne)

Re: Stylesheet avec des instuments de cockpit

Message par dad »

tres jolie, je le "adjunto"
ws3650
Avatar de l’utilisateur
Vals
Membre
Messages : 171
Inscription : dim. déc. 02, 2007 7:23 pm
Contact :

Re: Stylesheet avec des instuments de cockpit

Message par Vals »

Bonjour.
Ce qui serait sympa c'est de joindre le résultat du script sous forme de jpg ou png.
Merci.
Image
La météo de Feyzin - La webcam
GraphWeather 2.0.321
Davis Vantage Pro2+ avec plugin wswin.dll
Avatar de l’utilisateur
MétéoHouba
Membre
Messages : 34
Inscription : mar. janv. 04, 2011 9:37 pm
Localisation : Rhône-Alpes
Contact :

Re: Stylesheet avec des instuments de cockpit

Message par MétéoHouba »

Vals a écrit :Bonjour.
Ce qui serait sympa c'est de joindre le résultat du script sous forme de jpg ou png.
Merci.
Bonjour,
dans l'autre post "Stylesheet avec instrument de cockpit", il y a un fichier aircraft.jpg, il faudrait peut être joindre ces deux posts, mais je ne suis pas sûr de la procédure...


Voici le fichier .xml et les dessins pour ma bannière ainsi que quelques aiguilles pour la girouette et un micro-tuto (à utiliser à votre gré).
A+
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Station: La Crosse Technology WS-2308-11
http://bernard.amacker.free.fr/crbst_7.html
Image
Avatar de l’utilisateur
Vals
Membre
Messages : 171
Inscription : dim. déc. 02, 2007 7:23 pm
Contact :

Re: Stylesheet avec des instuments de cockpit

Message par Vals »

Bravo.
Je n'avais pas vu l'autre post.
Beau travail.
Prêt pour alignement et décollage.
Fais Ton Métier Pour Vivre Entier :)
(Il n'y a que les initiés qui pourront comprendre !!! :wink: ).
Image
La météo de Feyzin - La webcam
GraphWeather 2.0.321
Davis Vantage Pro2+ avec plugin wswin.dll
Avatar de l’utilisateur
juliendebeauregard
Membre
Messages : 11
Inscription : mer. févr. 17, 2010 6:46 pm
Contact :

Re: Stylesheet avec des instuments de cockpit

Message par juliendebeauregard »

Merci très sympa :o
Image
Répondre