Tag affichant les records d'un jour sur toute les année.
-
- Participation 2
- Messages : 141
- Enregistré le : 25 janv. 2007, 17:24
- Localisation : Grandfresnoy - Oise
- Contact :
Bonsoir à tous et à chriss en particulier,
Voilà j'ai téléchargé ton tag sur ton site, j'ai fait tout ce que tu as dis, j'ai relu 2000 fois les 7 pages du topic.........ça marche pas !!! ???
Qu'ai je fait ou pas fait ? :( :( :(
voici le résultat : http://www.meteo-grandfresnoy.com/historiquejour.html
Seul la date et la pluie fonctionne (+ 2005 pour Temp max (ce qui est faux, car normalement c'est 2006).
Help,
Merci et bonne soirée
christian
Voilà j'ai téléchargé ton tag sur ton site, j'ai fait tout ce que tu as dis, j'ai relu 2000 fois les 7 pages du topic.........ça marche pas !!! ???
Qu'ai je fait ou pas fait ? :( :( :(
voici le résultat : http://www.meteo-grandfresnoy.com/historiquejour.html
Seul la date et la pluie fonctionne (+ 2005 pour Temp max (ce qui est faux, car normalement c'est 2006).
Help,
Merci et bonne soirée
christian
-
- Participation 2
- Messages : 141
- Enregistré le : 25 janv. 2007, 17:24
- Localisation : Grandfresnoy - Oise
- Contact :
Bonsoir Chriss,
Non non mes enregistrements ont commencé le 08/01/2005. (eh oui, je suis un vieux de la vieille, j'ai pratiquement débuté avec Michel "mm91" et Chamois qui m'ont bien aidé sur le forum de Michel 34).
Ainsi j'ai donc modifié la date dans le fichier correspondant.
Merci de ton aide
Christian
Non non mes enregistrements ont commencé le 08/01/2005. (eh oui, je suis un vieux de la vieille, j'ai pratiquement débuté avec Michel "mm91" et Chamois qui m'ont bien aidé sur le forum de Michel 34).
Ainsi j'ai donc modifié la date dans le fichier correspondant.
Merci de ton aide
Christian
Modifié en dernier par chris60 le 04 oct. 2007, 20:24, modifié 1 fois.
-
- Participation 2
- Messages : 141
- Enregistré le : 25 janv. 2007, 17:24
- Localisation : Grandfresnoy - Oise
- Contact :
on va essayer en copier/coller
<customfile>
Date du premier enregistrement des données (Date indiquant où doit démarrer la boucle,ici la date est celle du webmaster)
%ws_setmem[2]=08% jour impérativement à 2 chiffres !!!
%ws_setmem[3]=01% mois impérativement à 2 chiffres !!!
%ws_setmem[4]=2005% Année
Le calcul suivant va regarder si le jour et le mois courant sont avant le jour et le mois courant du démarrage des enregistrement.
Admettons qu'on soit le 30 juillet on ne peut donc pas commencer dans l'année 2005 car a cette date il n'y avait pas de donnée alors on commence l'année suivante.
%ws_setmem[6]=%ws_calc[+]=%ws_getmem[4]%~1~0%%
%ws_setmem[5]=%ws_compare[2]=%ws_month%,%ws_day2%~%ws_getmem[3]%,%ws_getmem[2]%~%ws_getmem[4]%~%ws_getmem[6]%%%
Ces tag sont tout simplement les années de départ pour chacune des variables(Tmin,TmaX,Hum-min,Hum-max...). Dans la boucle, chaque tag conservera l'année de la valeur min ou max et la restitura lors du dernier passage (boucle de cette année) pour afficher la valeur ainsi que l'année.
%ws_getmem[5]%
%ws_setmem[1]=%ws_getmem[5]%%
%ws_setmem[8]=%ws_getmem[5]%%
%ws_setmem[25]=%ws_getmem[5]%%
%ws_setmem[33]=%ws_getmem[5]%%
%ws_setmem[34]=%ws_getmem[5]%%
%ws_setmem[35]=%ws_getmem[5]%%
%ws_setmem[36]=%ws_getmem[5]%%
%ws_setmem[37]=%ws_getmem[5]%%
%ws_setmem[38]=%ws_getmem[5]%%
%ws_setmem[51]=%ws_getmem[5]%%
%ws_setmem[52]=%ws_getmem[5]%%
<openfile>
******************************************************************
<customfile>
<!-- ATTENTION: Pour certaine variables,les id sont différent suivant la station. Notament pour les valeur min et max des vintage. A vous de modifier(les ligne avec les id a changer sont indiqué).
%unit_off%
Température
MAX
%ws_setmem[40]=%ws_day2%~%ws_month2%~%ws_getmem[8]%%
%ws_setmem[2]=%maxvalpast[2~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%maxvalpast[2~%ws_day2%~%ws_month2%~%ws_getmem[8]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,2]%~%ws_getmem[2]%%% attention id a modifier suivant la station
%ws_setmem[3]=%ws_getmem[6]% °C%
%ws_setmem[7]=%ws_getmem[2]%°C%
%ws_setmem[15]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[3]%%%
%ws_setmem[8]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[8]%%%
%ws_setmem[44]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~aujourd'hui à %maxtimecurday[2]%~en %ws_getmem[8]% à %maxtimepast[2~%ws_getmem[40]%]%%% attention id a modifier suivant la station
MIN
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[25]%%
%ws_setmem[2]=%minvalpast[2~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%minvalpast[2~%ws_day2%~%ws_month2%~%ws_getmem[25]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[1,0,2]%~%ws_getmem[2]%%% attention id a modifier suivant la station
%ws_setmem[26]=%ws_getmem[6]% °C%
%ws_setmem[7]=%ws_getmem[2]% °C%
%ws_setmem[15]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[26]%%%
%ws_setmem[25]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[25]%%%
%ws_setmem[44]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~aujourd'hui à %mintimecurday[2]%~ en %ws_getmem[25]% à %mintimepast[2~%ws_getmem[41]%]%%% attention id a modifier suivant la station
Humidité
MAX
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[33]%%
%ws_setmem[2]=%maxvalpast[18~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%maxvalpast[18~%ws_day2%~%ws_month2%~%ws_getmem[33]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,18]%~%ws_getmem[2]%%%
%ws_setmem[10]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[2]%~%ws_getmem[6]%%%
%ws_setmem[33]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[33]%%%
%ws_setmem[42]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~aujourd'hui à %maxtimecurday[18]%~en %ws_getmem[33]% à %maxtimepast[18~%ws_getmem[41]%]%%% attention id a modifier suivant la station
MIN
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[34]%%
%ws_setmem[2]=%minvalpast[18~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%minvalpast[18~%ws_day2%~%ws_month2%~%ws_getmem[34]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[1,0,18]%~%ws_getmem[2]%%%
%ws_setmem[17]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[2]%~%ws_getmem[6]%%%
%ws_setmem[34]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[34]%%%
%ws_setmem[43]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~aujourd'hui à %mintimecurday[18]%~en %ws_getmem[34]% à %mintimepast[18~%ws_getmem[41]%]%%% attention id a modifier suivant la station
pression
MAX
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[35]%%
%ws_setmem[2]=%maxvalpast[33~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[6]=%maxvalpast[33~%ws_day2%~%ws_month2%~%ws_getmem[35]%]%%
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,33]%~%ws_getmem[2]%%%
%ws_setmem[29]=%ws_getmem[6]% hpa%
%ws_setmem[7]=%ws_getmem[2]% hpa%
%ws_setmem[12]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[29]%%%
%ws_setmem[35]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[35]%%%
%ws_setmem[46]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui à %maxtimecurday[33]%~ en %ws_getmem[35]% à %maxtimepast[33~%ws_getmem[41]%]%%%
MIN
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[36]%%
%ws_setmem[2]=%minvalpast[33~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[6]=%minvalpast[33~%ws_day2%~%ws_month2%~%ws_getmem[36]%]%%
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[1,0,33]%~%ws_getmem[2]%%%
%ws_setmem[30]=%ws_getmem[6]% hpa%
%ws_setmem[7]=%ws_getmem[2]% hpa%
%ws_setmem[19]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[30]%%%
%ws_setmem[36]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[36]%%%
%ws_setmem[47]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui à %mintimecurday[33]%~ en %ws_getmem[36]% à %mintimepast[33~%ws_getmem[41]%]%%%
pluie
TOTAL
%ws_setmem[2]=%avgvalpast[34~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[6]=%avgvalpast[34~%ws_day2%~%ws_month2%~%ws_getmem[51]%]%%
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%rainday%~%ws_getmem[2]%%%
%ws_setmem[31]=%ws_getmem[6]% mm%
%ws_setmem[7]=%ws_getmem[2]% mm%
%ws_setmem[21]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[31]%%%
%ws_setmem[51]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[51]%%%
%ws_setmem[48]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui~ en %ws_getmem[51]%%%
Vent
Vent moyen MAX
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[37]%%
%ws_setmem[2]=%maxvalpast[35~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%maxvalpast[35~%ws_day2%~%ws_month2%~%ws_getmem[37]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,35]%~%ws_getmem[2]%%% attention id a modifier suivant la station
%ws_setmem[32]=%ws_getmem[6]% Km/h%
%ws_setmem[7]=%ws_getmem[2]% Km/h%
%ws_setmem[23]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[32]%%%
%ws_setmem[37]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[37]%%%
%ws_setmem[49]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui à %maxtimecurday[35]%~ en %ws_getmem[37]% à %maxtimepast[35~%ws_getmem[41]%]%%% attention id a modifier suivant la station
Rafale max
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[52]%%
%ws_setmem[2]=%maxvalpast[45~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[6]=%maxvalpast[45~%ws_day2%~%ws_month2%~%ws_getmem[52]%]%%
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,45]%~%ws_getmem[2]%%%
%ws_setmem[32]=%ws_getmem[6]% Km/h%
%ws_setmem[7]=%ws_getmem[2]% Km/h%
%ws_setmem[54]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[32]%%%
%ws_setmem[52]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[52]%%%
%ws_setmem[53]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui à %maxtimecurday[45]%~ en %ws_getmem[52]% à %maxtimepast[45~%ws_getmem[41]%]%%%
Soleil
TOTAL
%ws_setmem[61]=%sundaypast[%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[61]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%sunday%~%ws_getmem[61]%%%
%ws_setmem[60]=%ws_replacestr= heures~~%ws_getmem[61]%%%
%ws_setmem[59]=%ws_replacestr= minutes~~%ws_getmem[60]%%%
%ws_setmem[58]=%ws_compare[5]=%ws_getmem[59]%~10~0%ws_getmem[59]%~%ws_getmem[59]%%%
%ws_setmem[56]=%ws_comparestr=%ws_getmem[61]%~%ws_getmem[60]%~0:%ws_getmem[58]%%%
%ws_setmem[63]=%ws_timetoval[%ws_getmem[56]%]%%
%ws_setmem[61]=%sundaypast[%ws_day2%~%ws_month2%~%ws_getmem[38]%]%%
%ws_setmem[60]=%ws_replacestr= heures~~%ws_getmem[61]%%%
%ws_setmem[59]=%ws_replacestr= minutes~~%ws_getmem[60]%%%
%ws_setmem[58]=%ws_compare[5]=%ws_getmem[59]%~10~0%ws_getmem[59]%~%ws_getmem[59]%%%
%ws_setmem[55]=%ws_comparestr=%ws_getmem[61]%~%ws_getmem[60]%~0:%ws_getmem[58]%%%
%ws_setmem[64]=%ws_timetoval[%ws_getmem[55]%]%%
%ws_setmem[7]=%ws_getmem[56]% h%
%ws_setmem[6]=%ws_getmem[55]% h%
%ws_setmem[24]=%ws_compare[2]=%ws_getmem[64]%~%ws_getmem[63]%~%ws_getmem[6]%~%ws_getmem[7]%%%
%ws_setmem[38]=%ws_compare[2]=%ws_getmem[63]%~%ws_getmem[64]%~%ws_getmem[1]%~%ws_getmem[38]%%%
%ws_setmem[50]=%ws_compare[2]=%ws_getmem[63]%~%ws_getmem[64]%~ aujourd'hui~ en %ws_getmem[38]%%%
%ws_setmem[39]=%ws_compare[5]=%ws_getmem[1]%~%ws_year%~repe~%%
%ws_setmem[1]=%ws_calc[+]=%ws_getmem[1]%~1~0%%
Code html pour l'affichage final-->
<meta name="generator" content="Namo WebEditor v5.0">
<table border="1" width="397" align="center" background="wolken.gif">
<tr>
<td width="387">
<p align="center"><b>Les records un %ws_day% %monthtxt%</b></p>
</td>
</tr>
</table>
<table border="1" width="397" align="center" background="wolken.gif">
<tr>
<td width="101">
<p align="center"><u><b>Température</b></u></p>
</td>
<td width="136">
<p align="center"><font color="blue"><b>Min: %ws_getmem[15]%</b><br> </font><font color="blue" size="2">%ws_getmem[44]%</font></p>
</td>
<td width="137">
<p align="center"><font color="#990000"><b>Max: %ws_getmem[4]%</b><br></font><font color="#990000" size="2">%ws_getmem[45]%</font></p>
</td>
</tr>
<tr>
<td width="101">
<p align="center"><u><b>Humidité</b></u></p>
</td>
<td width="136">
<p align="center"><font color="blue"><b>Min: %ws_getmem[17]% %</b><br></font><font color="blue" size="2"> %ws_getmem[43]%</font></p>
</td>
<td width="137">
<p align="center"><font color="#990000"><b>Max: %ws_getmem[10]% %</b><br></font><font color="#990000" size="2"> %ws_getmem[42]%</font></p>
</td>
</tr>
<tr>
<td width="101">
<p align="center"><u><b>Pression</b></u></p>
</td>
<td width="136">
<p align="center"><font color="blue"><b>Min: %ws_getmem[19]%</b><br></font><font color="blue" size="2">%ws_getmem[47]%</font></p>
</td>
<td width="137">
<p align="center"><font color="#990000"><b>Max: %ws_getmem[12]%</b><br></font><font color="#990000" size="2">%ws_getmem[46]%</font></p>
</td>
</tr>
</table>
<table border="1" width="397" align="center" background="wolken.gif">
<tr>
<td width="101" height="29">
<p align="center"><u><b>Vent</b></u></p>
</td>
<td width="280" height="29">
<p align="center"><b>Max:<br> moy: %ws_getmem[23]%</b> <font size="2">%ws_getmem[49]%<br></font><b>Rafale:
%ws_getmem[54]%</b><font size="2"> %ws_getmem[53]%</font></p>
</td>
</tr>
<tr>
<td width="101">
<p align="center"><u><b>Pluie</b></u></p>
</td>
<td width="280">
<p align="center"><font color="#0099FF"><b>Total: %ws_getmem[21]%</b></font><font color="#0099FF" size="2">%ws_getmem[48]%</font></p>
</td>
</tr>
<tr>
<td width="101">
<p align="center"><u><b>Soleil</b></u></p>
</td>
<td width="280">
<p align="center"><font color="#FF6600"><b>%ws_getmem[24]%</b> </font><font color="#FF6600" size="2">%ws_getmem[50]%</font></p>
</td>
</tr>
</table>
%unit_off%
<!-- %openfile=%ws_getmem[39]%tition.txt% -->
*************************************************************************
<!-- %customfile=re1.txt% -->
<!-- %openfile=recorddujour.txt% -->
Et voilà,
Et merci encore
Christian
<customfile>
Date du premier enregistrement des données (Date indiquant où doit démarrer la boucle,ici la date est celle du webmaster)
%ws_setmem[2]=08% jour impérativement à 2 chiffres !!!
%ws_setmem[3]=01% mois impérativement à 2 chiffres !!!
%ws_setmem[4]=2005% Année
Le calcul suivant va regarder si le jour et le mois courant sont avant le jour et le mois courant du démarrage des enregistrement.
Admettons qu'on soit le 30 juillet on ne peut donc pas commencer dans l'année 2005 car a cette date il n'y avait pas de donnée alors on commence l'année suivante.
%ws_setmem[6]=%ws_calc[+]=%ws_getmem[4]%~1~0%%
%ws_setmem[5]=%ws_compare[2]=%ws_month%,%ws_day2%~%ws_getmem[3]%,%ws_getmem[2]%~%ws_getmem[4]%~%ws_getmem[6]%%%
Ces tag sont tout simplement les années de départ pour chacune des variables(Tmin,TmaX,Hum-min,Hum-max...). Dans la boucle, chaque tag conservera l'année de la valeur min ou max et la restitura lors du dernier passage (boucle de cette année) pour afficher la valeur ainsi que l'année.
%ws_getmem[5]%
%ws_setmem[1]=%ws_getmem[5]%%
%ws_setmem[8]=%ws_getmem[5]%%
%ws_setmem[25]=%ws_getmem[5]%%
%ws_setmem[33]=%ws_getmem[5]%%
%ws_setmem[34]=%ws_getmem[5]%%
%ws_setmem[35]=%ws_getmem[5]%%
%ws_setmem[36]=%ws_getmem[5]%%
%ws_setmem[37]=%ws_getmem[5]%%
%ws_setmem[38]=%ws_getmem[5]%%
%ws_setmem[51]=%ws_getmem[5]%%
%ws_setmem[52]=%ws_getmem[5]%%
<openfile>
******************************************************************
<customfile>
<!-- ATTENTION: Pour certaine variables,les id sont différent suivant la station. Notament pour les valeur min et max des vintage. A vous de modifier(les ligne avec les id a changer sont indiqué).
%unit_off%
Température
MAX
%ws_setmem[40]=%ws_day2%~%ws_month2%~%ws_getmem[8]%%
%ws_setmem[2]=%maxvalpast[2~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%maxvalpast[2~%ws_day2%~%ws_month2%~%ws_getmem[8]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,2]%~%ws_getmem[2]%%% attention id a modifier suivant la station
%ws_setmem[3]=%ws_getmem[6]% °C%
%ws_setmem[7]=%ws_getmem[2]%°C%
%ws_setmem[15]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[3]%%%
%ws_setmem[8]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[8]%%%
%ws_setmem[44]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~aujourd'hui à %maxtimecurday[2]%~en %ws_getmem[8]% à %maxtimepast[2~%ws_getmem[40]%]%%% attention id a modifier suivant la station
MIN
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[25]%%
%ws_setmem[2]=%minvalpast[2~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%minvalpast[2~%ws_day2%~%ws_month2%~%ws_getmem[25]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[1,0,2]%~%ws_getmem[2]%%% attention id a modifier suivant la station
%ws_setmem[26]=%ws_getmem[6]% °C%
%ws_setmem[7]=%ws_getmem[2]% °C%
%ws_setmem[15]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[26]%%%
%ws_setmem[25]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[25]%%%
%ws_setmem[44]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~aujourd'hui à %mintimecurday[2]%~ en %ws_getmem[25]% à %mintimepast[2~%ws_getmem[41]%]%%% attention id a modifier suivant la station
Humidité
MAX
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[33]%%
%ws_setmem[2]=%maxvalpast[18~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%maxvalpast[18~%ws_day2%~%ws_month2%~%ws_getmem[33]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,18]%~%ws_getmem[2]%%%
%ws_setmem[10]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[2]%~%ws_getmem[6]%%%
%ws_setmem[33]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[33]%%%
%ws_setmem[42]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~aujourd'hui à %maxtimecurday[18]%~en %ws_getmem[33]% à %maxtimepast[18~%ws_getmem[41]%]%%% attention id a modifier suivant la station
MIN
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[34]%%
%ws_setmem[2]=%minvalpast[18~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%minvalpast[18~%ws_day2%~%ws_month2%~%ws_getmem[34]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[1,0,18]%~%ws_getmem[2]%%%
%ws_setmem[17]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[2]%~%ws_getmem[6]%%%
%ws_setmem[34]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[34]%%%
%ws_setmem[43]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~aujourd'hui à %mintimecurday[18]%~en %ws_getmem[34]% à %mintimepast[18~%ws_getmem[41]%]%%% attention id a modifier suivant la station
pression
MAX
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[35]%%
%ws_setmem[2]=%maxvalpast[33~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[6]=%maxvalpast[33~%ws_day2%~%ws_month2%~%ws_getmem[35]%]%%
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,33]%~%ws_getmem[2]%%%
%ws_setmem[29]=%ws_getmem[6]% hpa%
%ws_setmem[7]=%ws_getmem[2]% hpa%
%ws_setmem[12]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[29]%%%
%ws_setmem[35]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[35]%%%
%ws_setmem[46]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui à %maxtimecurday[33]%~ en %ws_getmem[35]% à %maxtimepast[33~%ws_getmem[41]%]%%%
MIN
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[36]%%
%ws_setmem[2]=%minvalpast[33~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[6]=%minvalpast[33~%ws_day2%~%ws_month2%~%ws_getmem[36]%]%%
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[1,0,33]%~%ws_getmem[2]%%%
%ws_setmem[30]=%ws_getmem[6]% hpa%
%ws_setmem[7]=%ws_getmem[2]% hpa%
%ws_setmem[19]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[30]%%%
%ws_setmem[36]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[36]%%%
%ws_setmem[47]=%ws_compare[4]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui à %mintimecurday[33]%~ en %ws_getmem[36]% à %mintimepast[33~%ws_getmem[41]%]%%%
pluie
TOTAL
%ws_setmem[2]=%avgvalpast[34~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[6]=%avgvalpast[34~%ws_day2%~%ws_month2%~%ws_getmem[51]%]%%
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%rainday%~%ws_getmem[2]%%%
%ws_setmem[31]=%ws_getmem[6]% mm%
%ws_setmem[7]=%ws_getmem[2]% mm%
%ws_setmem[21]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[31]%%%
%ws_setmem[51]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[51]%%%
%ws_setmem[48]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui~ en %ws_getmem[51]%%%
Vent
Vent moyen MAX
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[37]%%
%ws_setmem[2]=%maxvalpast[35~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%% attention id a modifier suivant la station
%ws_setmem[6]=%maxvalpast[35~%ws_day2%~%ws_month2%~%ws_getmem[37]%]%% attention id a modifier suivant la station
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,35]%~%ws_getmem[2]%%% attention id a modifier suivant la station
%ws_setmem[32]=%ws_getmem[6]% Km/h%
%ws_setmem[7]=%ws_getmem[2]% Km/h%
%ws_setmem[23]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[32]%%%
%ws_setmem[37]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[37]%%%
%ws_setmem[49]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui à %maxtimecurday[35]%~ en %ws_getmem[37]% à %maxtimepast[35~%ws_getmem[41]%]%%% attention id a modifier suivant la station
Rafale max
%ws_setmem[41]=%ws_day2%~%ws_month2%~%ws_getmem[52]%%
%ws_setmem[2]=%maxvalpast[45~%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[6]=%maxvalpast[45~%ws_day2%~%ws_month2%~%ws_getmem[52]%]%%
%ws_setmem[2]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%curminmaxhour[2,0,45]%~%ws_getmem[2]%%%
%ws_setmem[32]=%ws_getmem[6]% Km/h%
%ws_setmem[7]=%ws_getmem[2]% Km/h%
%ws_setmem[54]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[7]%~%ws_getmem[32]%%%
%ws_setmem[52]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~%ws_getmem[1]%~%ws_getmem[52]%%%
%ws_setmem[53]=%ws_compare[2]=%ws_getmem[2]%~%ws_getmem[6]%~ aujourd'hui à %maxtimecurday[45]%~ en %ws_getmem[52]% à %maxtimepast[45~%ws_getmem[41]%]%%%
Soleil
TOTAL
%ws_setmem[61]=%sundaypast[%ws_day2%~%ws_month2%~%ws_getmem[1]%]%%
%ws_setmem[61]=%ws_compare[2]=%ws_getmem[1]%~%ws_year%~%sunday%~%ws_getmem[61]%%%
%ws_setmem[60]=%ws_replacestr= heures~~%ws_getmem[61]%%%
%ws_setmem[59]=%ws_replacestr= minutes~~%ws_getmem[60]%%%
%ws_setmem[58]=%ws_compare[5]=%ws_getmem[59]%~10~0%ws_getmem[59]%~%ws_getmem[59]%%%
%ws_setmem[56]=%ws_comparestr=%ws_getmem[61]%~%ws_getmem[60]%~0:%ws_getmem[58]%%%
%ws_setmem[63]=%ws_timetoval[%ws_getmem[56]%]%%
%ws_setmem[61]=%sundaypast[%ws_day2%~%ws_month2%~%ws_getmem[38]%]%%
%ws_setmem[60]=%ws_replacestr= heures~~%ws_getmem[61]%%%
%ws_setmem[59]=%ws_replacestr= minutes~~%ws_getmem[60]%%%
%ws_setmem[58]=%ws_compare[5]=%ws_getmem[59]%~10~0%ws_getmem[59]%~%ws_getmem[59]%%%
%ws_setmem[55]=%ws_comparestr=%ws_getmem[61]%~%ws_getmem[60]%~0:%ws_getmem[58]%%%
%ws_setmem[64]=%ws_timetoval[%ws_getmem[55]%]%%
%ws_setmem[7]=%ws_getmem[56]% h%
%ws_setmem[6]=%ws_getmem[55]% h%
%ws_setmem[24]=%ws_compare[2]=%ws_getmem[64]%~%ws_getmem[63]%~%ws_getmem[6]%~%ws_getmem[7]%%%
%ws_setmem[38]=%ws_compare[2]=%ws_getmem[63]%~%ws_getmem[64]%~%ws_getmem[1]%~%ws_getmem[38]%%%
%ws_setmem[50]=%ws_compare[2]=%ws_getmem[63]%~%ws_getmem[64]%~ aujourd'hui~ en %ws_getmem[38]%%%
%ws_setmem[39]=%ws_compare[5]=%ws_getmem[1]%~%ws_year%~repe~%%
%ws_setmem[1]=%ws_calc[+]=%ws_getmem[1]%~1~0%%
Code html pour l'affichage final-->
<meta name="generator" content="Namo WebEditor v5.0">
<table border="1" width="397" align="center" background="wolken.gif">
<tr>
<td width="387">
<p align="center"><b>Les records un %ws_day% %monthtxt%</b></p>
</td>
</tr>
</table>
<table border="1" width="397" align="center" background="wolken.gif">
<tr>
<td width="101">
<p align="center"><u><b>Température</b></u></p>
</td>
<td width="136">
<p align="center"><font color="blue"><b>Min: %ws_getmem[15]%</b><br> </font><font color="blue" size="2">%ws_getmem[44]%</font></p>
</td>
<td width="137">
<p align="center"><font color="#990000"><b>Max: %ws_getmem[4]%</b><br></font><font color="#990000" size="2">%ws_getmem[45]%</font></p>
</td>
</tr>
<tr>
<td width="101">
<p align="center"><u><b>Humidité</b></u></p>
</td>
<td width="136">
<p align="center"><font color="blue"><b>Min: %ws_getmem[17]% %</b><br></font><font color="blue" size="2"> %ws_getmem[43]%</font></p>
</td>
<td width="137">
<p align="center"><font color="#990000"><b>Max: %ws_getmem[10]% %</b><br></font><font color="#990000" size="2"> %ws_getmem[42]%</font></p>
</td>
</tr>
<tr>
<td width="101">
<p align="center"><u><b>Pression</b></u></p>
</td>
<td width="136">
<p align="center"><font color="blue"><b>Min: %ws_getmem[19]%</b><br></font><font color="blue" size="2">%ws_getmem[47]%</font></p>
</td>
<td width="137">
<p align="center"><font color="#990000"><b>Max: %ws_getmem[12]%</b><br></font><font color="#990000" size="2">%ws_getmem[46]%</font></p>
</td>
</tr>
</table>
<table border="1" width="397" align="center" background="wolken.gif">
<tr>
<td width="101" height="29">
<p align="center"><u><b>Vent</b></u></p>
</td>
<td width="280" height="29">
<p align="center"><b>Max:<br> moy: %ws_getmem[23]%</b> <font size="2">%ws_getmem[49]%<br></font><b>Rafale:
%ws_getmem[54]%</b><font size="2"> %ws_getmem[53]%</font></p>
</td>
</tr>
<tr>
<td width="101">
<p align="center"><u><b>Pluie</b></u></p>
</td>
<td width="280">
<p align="center"><font color="#0099FF"><b>Total: %ws_getmem[21]%</b></font><font color="#0099FF" size="2">%ws_getmem[48]%</font></p>
</td>
</tr>
<tr>
<td width="101">
<p align="center"><u><b>Soleil</b></u></p>
</td>
<td width="280">
<p align="center"><font color="#FF6600"><b>%ws_getmem[24]%</b> </font><font color="#FF6600" size="2">%ws_getmem[50]%</font></p>
</td>
</tr>
</table>
%unit_off%
<!-- %openfile=%ws_getmem[39]%tition.txt% -->
*************************************************************************
<!-- %customfile=re1.txt% -->
<!-- %openfile=recorddujour.txt% -->
Et voilà,
Et merci encore
Christian
Mon site Météo : http://www.meteo-grandfresnoy.com/
-
- Participation 2
- Messages : 141
- Enregistré le : 25 janv. 2007, 17:24
- Localisation : Grandfresnoy - Oise
- Contact :
Bravo "Magic Chriss"
Celà marche impécable !!!, je pense avoir repéré ta modif , rajouter "%varcurminmaxhour_on%" sur la 2ème ligne du fichier "recorddujour". (j'avais repéré ça, à chaque mise à jour de wswin.
Chapeau bas
Je m'en vais maintenant essayer de personnaliser ce nouveau custom.
Encore merci, et à bientôt......
christian
Pour voir la page : http://www.meteo-grandfresnoy.com/historiquejour.html
Pour voir mon site : http://www.meteo-grandfresnoy.com/
Heu, finalement si, il y a un petit problème au niveau du vent -max et moy- ???
Je suis sur que tu va trouver
Celà marche impécable !!!, je pense avoir repéré ta modif , rajouter "%varcurminmaxhour_on%" sur la 2ème ligne du fichier "recorddujour". (j'avais repéré ça, à chaque mise à jour de wswin.
Chapeau bas
Je m'en vais maintenant essayer de personnaliser ce nouveau custom.
Encore merci, et à bientôt......
christian
Pour voir la page : http://www.meteo-grandfresnoy.com/historiquejour.html
Pour voir mon site : http://www.meteo-grandfresnoy.com/
Heu, finalement si, il y a un petit problème au niveau du vent -max et moy- ???
Je suis sur que tu va trouver