statistiques wunderground

Une question, un bug ?
Répondre
Micharnaud
Membre
Messages : 787
Inscription : mer. déc. 22, 2010 1:36 pm
Localisation : Ariege
Contact :

statistiques wunderground

Message par Micharnaud »

je m'adresse aux specialistes du php et des statistiques comme noaa le grand Pidou et les hautres biensur serais t'il possible de faire un style de noaa avec les stat du site wunderground pour avoir les données toutes les cinq minutes merci de votre reponse
Avatar de l’utilisateur
paaubert
Membre
Messages : 2624
Inscription : dim. janv. 17, 2010 7:16 pm
Localisation : 1555 Villarzel - Switzerland
Contact :

Re: statistiques wunderground

Message par paaubert »

Salut,

Il existe déjà un script qui permet d'afficher les données WU
Exemple ici
http://www.boock.ch/meteo/Wu_history.php

A télécharger ici

http://jcweather.us/scripts.php

Bonne journée
_________________________________________________________________________________________________________
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
Micharnaud
Membre
Messages : 787
Inscription : mer. déc. 22, 2010 1:36 pm
Localisation : Ariege
Contact :

Re: statistiques wunderground

Message par Micharnaud »

merci pour ta reponse mais comment on fait je suis pas tres fort dans ce domaine
Avatar de l’utilisateur
paaubert
Membre
Messages : 2624
Inscription : dim. janv. 17, 2010 7:16 pm
Localisation : 1555 Villarzel - Switzerland
Contact :

Re: statistiques wunderground

Message par paaubert »

Tu décompresses l'archive dans un répertoire et tu le transfert par FTP, ensuite il faut juste éditer le fichier WU-History.php en lui indiquant tes données, par exemple

$WunderWrong = true;
//
$timezone = "Europe/Paris"; // Change to your TZ. Ken True has a list available at http://saratoga-weather.org/timezone.txt
$WUID = "ton identifiant WU"; // Your stations Wunderground ID
$units = "M"; // Default units which are changeable at runtime. "M" for Metric, "E" for English or "B" for Both
$birthday = "21-03-2010"; // Stations first day of operation format dd-mm-yyyy. This will determine years on the date selector.
$gwidth = "800"; // Width of the graph - normally 500
$gtemp = true; // =true if you want the temperature graph =false if no
$gpress = true; // =true if baro graph =false if no
$gwind = true; // =true if wind velocity graph =false if no
$gwindir = true; // =true if wind direction graph =false if no
$grain = true; // =true if rain graph =false if no
$gsolar = true; // =true if solar graph =false if no
$guv = true; // =true if UV graph =false if no
$pwidth = "100%"; // The width of the summary and graph portion of the page (% or px). Normally 100%
// Optional header info
$header = true; // true if you wish to use it
$Langtitle = "Historique de la station de le nom de ta station"; // The Bold text at the top
$LcurDay = "Retour au jour courant"; // The link back to the current day if off in one of the other modes. "" to disable it.
// Optional footer bar
$footer = true; // true if you wish to have the colored footer bar at the bottom
$LangFtext = "Villarzel history Weather"; // Anything you wish or "" for a plain bar

Ensuite tu inclus ce fichier dans ton site avec soit un include, soit un Iframe

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
Micharnaud
Membre
Messages : 787
Inscription : mer. déc. 22, 2010 1:36 pm
Localisation : Ariege
Contact :

Re: statistiques wunderground

Message par Micharnaud »

genial merci a toi et bonne journée
Micharnaud
Membre
Messages : 787
Inscription : mer. déc. 22, 2010 1:36 pm
Localisation : Ariege
Contact :

Re: statistiques wunderground

Message par Micharnaud »

le principe marche mais je ne me retrouve pas avec le méme resulta que toi voici http://leran-station-meteo.fr/WU-History.phpmerci de ton aide
Avatar de l’utilisateur
paaubert
Membre
Messages : 2624
Inscription : dim. janv. 17, 2010 7:16 pm
Localisation : 1555 Villarzel - Switzerland
Contact :

Re: statistiques wunderground

Message par paaubert »

Je ne sais pas si c'est une nouvelle version, mais voilà la version qui est sur mon site avec mon fichier de configuration en français
http://www.boock.ch/meteo/sauv-donnees/Wu_history.rar

Il faut juste mettre le nom de ta station et la date depuis quand tu envoie tes données sur WU dans le fichier WU-History.php

$WUID = "le nom de la station WU"; // Your stations Wunderground ID
$units = "M"; // Default units which are changeable at runtime. "M" for Metric, "E" for English or "B" for Both
$birthday = "21-03-2010"; // Stations first day of operation format dd-mm-yyyy. This will determine years on the date selector.

@+
_________________________________________________________________________________________________________
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
Micharnaud
Membre
Messages : 787
Inscription : mer. déc. 22, 2010 1:36 pm
Localisation : Ariege
Contact :

Re: statistiques wunderground

Message par Micharnaud »

genial merci a toi
Micharnaud
Membre
Messages : 787
Inscription : mer. déc. 22, 2010 1:36 pm
Localisation : Ariege
Contact :

Re: statistiques wunderground

Message par Micharnaud »

non toujours pareil je ne comprend pas chez toi ca marche nikel
Avatar de l’utilisateur
paaubert
Membre
Messages : 2624
Inscription : dim. janv. 17, 2010 7:16 pm
Localisation : 1555 Villarzel - Switzerland
Contact :

Re: statistiques wunderground

Message par paaubert »

effectivement quand j’appelle la page directement http://www.boock.ch/meteo//Wu_history/WU-History.php j'ai la même chose que toi ???

Essai de faire une page à la racine de ton site et d'appeler le fichier avec un include

Par exemple.

<?php
include("./Wu_history/WU-History.php");
?>

Pour autant que tu as installer le script dans le répertoire Wu_history, autrement change le chemin d'accès.

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
Micharnaud
Membre
Messages : 787
Inscription : mer. déc. 22, 2010 1:36 pm
Localisation : Ariege
Contact :

Re: statistiques wunderground

Message par Micharnaud »

je me ser de LMSOFT Web Creator Pro 6 pour faire mon site et je ne comprend pas ce que veux dire
voici une erreur
Mode sans échec avertissement: Impossible de définir la variable d'environnement 'TZ' - ce n'est pas dans la liste autorisée dans / htdocs / Histoire / WU-WU-History.php à la ligne 176
Avatar de l’utilisateur
ardigier
Membre
Messages : 2260
Inscription : mar. mars 23, 2010 6:05 pm
Localisation : Le Thor 84250
Contact :

Re: statistiques wunderground

Message par ardigier »

il faut demander de supprimer le blacklistage de WU auprés de ton fournisseur, j'avais eu le même pb chez OVH
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
Avatar de l’utilisateur
paaubert
Membre
Messages : 2624
Inscription : dim. janv. 17, 2010 7:16 pm
Localisation : 1555 Villarzel - Switzerland
Contact :

Re: statistiques wunderground

Message par paaubert »

Alors essaye d'afficher la page TestHistory.php au lieu de WU-History.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
Image
Micharnaud
Membre
Messages : 787
Inscription : mer. déc. 22, 2010 1:36 pm
Localisation : Ariege
Contact :

Re: statistiques wunderground

Message par Micharnaud »

la ca marche et pour la ligne erreur
merci pour ton aide
Avatar de l’utilisateur
paaubert
Membre
Messages : 2624
Inscription : dim. janv. 17, 2010 7:16 pm
Localisation : 1555 Villarzel - Switzerland
Contact :

Re: statistiques wunderground

Message par paaubert »

Redonne le lien, car l'autre fonctionne plus.

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
Répondre