Modifier un code (inverser 2 sondes températures) [Résolu]

Répondre
guy85
Membre
Messages : 184
Inscription : dim. déc. 06, 2015 10:29 am

Modifier un code (inverser 2 sondes températures) [Résolu]

Message par guy85 »

Bonjour,

Pour ma part la température extérieure est la sonde noire (que je n'ai pas besoin dans ce code).
La température extérieure est la sonde "temperature_1".(sonde THGR810)

D'après moi, il faut donc que je remplace " outdoor_temperature" par "temperature_1" dans le code si dessous issu du fichier "gauges_modif_pluvio_Fr.xlm" de "paaubert".?

Avant de faire une bêtise (bien que j'ai sauvegardé le fichier) est-ce bien ça qu'il faut que je fasse ?

Merci de votre aide
Cordialement

Code : Tout sélectionner

	<!-- ================= [b]Outdoor Temperature[/b] ================= -->
	<lineargauge width="130" height="300" shadow="0" orientation="1" position-x="16" position-y="20" margin-top="26" margin-right="9" margin-bottom="77" margin-left="11" >
		<title text="$Current[outdoor_temperature] $Unit[Temperature]" alignement="relative" angle="0" position-x="0.47" position-y="0.86">
			<font color="FF000000" facename="Arial" size="20" weight="400" italic="1" />
		</title>
		<axis color="FF000000" min="-20" max="40" side="hcenter" titlemargin="20">
			<title text="Température exterieure" alignement="vcenter|hcenter" angle="180">
				<font color="FF000000" facename="Arial" size="18" weight="400" italic="1" />
			</title>
			<labels labelinterval="1" side="left" hide="0">
				<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
			</labels>
			<ticks majorticks="7" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
		</axis>
		<index>
			<current_outdoor_temperature color1="FF000099" color2="FFFF0000" filled="1" side="left" thick="9" axisdelta="0"/>
      <stats_day_max_outdoor_temperature texture="img_modern_index7_20x24.png"  side="left" thick="9" axisdelta="0"/>
      <stats_day_min_outdoor_temperature texture="img_modern_index_20x24.png"  side="left" thick="9" axisdelta="0"/>
    </index>
		<border cornerradius="0" color="FF000000" thick="0" />
		<background color="ff0000ff" texture="thermo_b.png" stretch="1" />
		<gaugebackground color="FF000000" texture="" />
	</lineargauge>
	<frame width="130" height="300" position-x="16" position-y="20">
		<background color="ff0000ff" texture="img_modern_thermo2_130x300.png" stretch="1" />
	</frame>
			            	<!-- ================= [b]texte température +[/b]- ================= -->
    <frame width="150" height="128" position-x="5" position-y="230">
		      <title text=" ($Current[rate_outdoor_temperature] °C/h)" alignement="relative" angle="00" position-x="0.3" position-y="2.0">
			<font color="FF003399" facename="Arial" size="15" weight="450" italic="0" />
		</title>
	</frame>	
		
	<!-- ================= [b]Dew Point[/b] ================= -->
	<lineargauge width="130" height="300" shadow="0" orientation="1" position-x="455" position-y="20" margin-top="26" margin-right="9" margin-bottom="77" margin-left="11" >
		<title text="$Current[dew_point] $Unit[Temperature]" alignement="relative" angle="0" position-x="0.47" position-y="0.86">
			<font color="FF000000" facename="Arial" size="20" weight="400" italic="1" />
		</title>
    <axis color="FF000000" min="-20" max="40" side="hcenter" titlemargin="20">
			<title text="Point de rosée" alignement="vcenter|hcenter" angle="180">
				<font color="FF000000" facename="Arial" size="18" weight="400" italic="1" />
			</title>
			<labels labelinterval="1" side="left" hide="0">
				<font color="FF000000" facename="Arial" size="14" weight="400" italic="1" />
			</labels>
			<ticks majorticks="7" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" minorticksize="5" majorticksize="9"/>
		</axis>
		<index>
			<current_dew_point color1="FFFF0000" color2="200000FF" filled="1" side="left" thick="9" axisdelta="0"/>
      <stats_day_min_dew_point texture="img_modern_index_20x24.png"  side="left" thick="9" axisdelta="0"/>
      <stats_day_max_dew_point texture="img_modern_index7_20x24.png"  side="left" thick="9" axisdelta="0"/>
    </index>
		<border cornerradius="0" color="FF000000" thick="0" />
		<background color="ff0000ff" texture="thermo_r.png" stretch="1" />
		<gaugebackground color="FF000000" texture="" />
	</lineargauge>
	<frame width="130" height="300" position-x="455" position-y="20">
		<background color="ff0000ff" texture="img_modern_thermo2_130x300.png" stretch="1" />
	</frame>
Dernière modification par guy85 le mer. oct. 26, 2016 7:27 pm, modifié 2 fois.
Avatar de l’utilisateur
paaubert
Membre
Messages : 2624
Inscription : dim. janv. 17, 2010 7:16 pm
Localisation : 1555 Villarzel - Switzerland
Contact :

Re: Modifier un code (inversement de sondes de températures)

Message par paaubert »

Salut,
C'est certainement juste, mais tu ne peux pas utiliser seulement une partie du code.

Code : Tout sélectionner

<?xml version="1.0" encoding="utf-8" ?>
<stylesheet>
...........
...........
</stylesheet>
le code doit être placé entre les balises stylesheet

La méthode la plus simple pour modifier une feuille de style.

Tu fais une copie de la feuille que tu veux modifier, tu la nome comme tu veux.
Tu l'ouvre avec GW
Tu l'ouvre avec un éditeur de texte, par ex Notepad++
Tu fais une modification et tu fais recharger dans GW, si ça passe c'est que ta modification et bonne, si ça plante tu annules ta modification et alors tu dois la ré ouvrir avec GW ( pas simplement recharger, mais fermer l'onglet et ouvrir à nouveau)

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
Image
guy85
Membre
Messages : 184
Inscription : dim. déc. 06, 2015 10:29 am

Re: Modifier un code (inversement de sondes de températures)

Message par guy85 »

D'accord, mais, je ne veux pas utiliser qu'une parti du code, je le garde en entier, j'avais juste besoin de remplacer la sonde Extérieur intégrée au mât par un sonde THGR810
Ça marche pour moi.
Merci de ton avis
Répondre