Hébergeur de fichiers indépendant

meteo.xml

À propos du fichier

Type de fichier
Fichier XML de 7 Ko (application/xml)
Confidentialité
Fichier public, envoyé le 18 août 2014 à 17:20, depuis l'adresse IP 81.255.x.x (France)
Sécurité
Ne contient aucun Virus ou Malware connus - Dernière vérification: 6 heures
Statistiques
La présente page de téléchargement a été vue 747 fois depuis l'envoi du fichier
Page de téléchargement

Aperçu du fichier


<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
<ModulePrefs title="Weather (Oger international Agences)" height="95" scrolling="false" directory_title="Prévision meteo: wofrance.fr" title_url="http://www.wofrance.fr/" description="Prévision meteo " author=" " author_email=" " author_affiliation=" " author_location=" " screenshot="http://www.wofrance.fr/gifs/igooglecity_screen_fr.png" thumbnail="http://www.wofrance.fr/gifs/igooglecity_screen_fr.png">
<Require feature="analytics"/>
</ModulePrefs>
<UserPref name="WMO" display_name="City" datatype="enum" default_value="07149">
<EnumValue display_value="Paris" value="07149"/>
<EnumValue display_value="Abou Dabi" value="41217"/>
<EnumValue display_value="Tunis" value="60715"/>
<EnumValue display_value="Casablanca" value="60155"/>
<EnumValue display_value="Riyad" value="40438"/>
<EnumValue display_value="Beijing" value="54433"/>
</UserPref>
<UserPref name="LANG" display_name="language" datatype="enum" default_value="fr">
<EnumValue value="en" display_value="english"/>
<EnumValue value="fr" display_value="français"/>
</UserPref>
  <Content type="html">
<![CDATA[ 
<script>
  _IG_Analytics("UA-641544-23", "/Weather_fr");
</script>
<script type="text/javascript">
  function displayWeather(){
    var prefs = new _IG_Prefs(__MODULE_ID__);
    var City = prefs.getString("WMO");
    var Language = prefs.getString("LANG");
    var url = "http://www-3.wofrance.fr/r]]><![CDATA[ss/4days?LANG="+ Language + "&WMO=" + City;

    _IG_FetchXmlContent(url, function (response) {
      if (response == null || typeof(response) != "object" || response.firstChild == null) {
        _gel("content_div").innerHTML = "<i>Invalid data.</i>";
        return;
      }

      var city = response.getElementsByTagName("location").item(0).getAttribute("name");
      var update = response.getElementsByTagName("location").item(0).getAttribute("update");
      var update_label = response.getElementsByTagName("location").item(0).getAttribute("update_label");
      var link = response.getElementsByTagName("location").item(0).getAttribute("link");
      var linkcity = response.getElementsByTagName("location").item(0).getAttribute("linkcity");
      var wodomain = response.getElementsByTagName("location").item(0).getAttribute("wodomain");
      var tendenzname = response.getElementsByTagName("location").item(0).getAttribute("tendenzname");
      html  = "<div style=\"height:5%\">";
      html += "<a target=\"_blank\" onclick=_IG_Analytics('UA-641544-23','/Weather_"+Language+"/click') style=\"font-size:12px;font-weight:bold;color:#003399;text-decoration:none;float:left;margin:0px;padding:0px;\" href=\"http://" + wodomain + "/" + link + "/" + linkcity + ".htm\" title=\"Situation actuelle, Pr&#233;visions, Radar Satellites\">" + city + "</a>";
      html += "<a target=\"_blank\" onclick=_IG_Analytics('UA-641544-23','/Weather_"+Language+"/click') style=\"float:right;color:#003399;font-size:10px;font-weight:bold;margin:0px;padding:0px;text-decoration:none;\" href=\"http://" + wodomain +"/weather/maps/city?LANG=" + Language + "&CONT=frfr&LAND=FR&WMO=" + City + "&LEVEL=101\" title=\"" + tendenzname + " " + city + "\"> >> "+tendenzname+"</a>";
      html += "</div>";

      html += "<div style=\"clear: both;\"></div>";
      html += "";
      html += "<div style=\"height:70%\">";
      html += "<table style=\"border-collapse:collapse;font-size:12px;color:#3c3c3c;margin:auto;padding:0;width:100%;\">";
      html += "<tbody>";
      var itemList = response.getElementsByTagName("day");
      html += "<tr style=\" text-align:center;\">";
      for (var i = 0; i < itemList.length ; i++){
        var nodeList = itemList.item(i).childNodes;
        for (var j = 0; j < nodeList.length ; j++){
          var node = nodeList.item(j);
          if (node.nodeName == "time"){
            var day  = node.firstChild.nodeValue;
          }
          if (node.nodeName == "tmax_celsius"){
            var tmax  = node.firstChild.nodeValue;
          }
          if (node.nodeName == "tmin_celsius"){
            var tmin  = node.firstChild.nodeValue;
          }
          if (node.nodeName == "weather_day_symbol"){
            var day_symbol  = node.firstChild.nodeValue;
          }
        }
        html += "<td width=\"25%\" style=\"margin:0 auto;padding=0px;text-align:center;font-size:12px; color:#7D91AB;\">" + day + "</td>";
      }
      html += "</tr>";
      html += "<tr style=\"text-align:center;\">";
      for (var i = 0; i < itemList.length ; i++){
        var nodeList = itemList.item(i).childNodes;
        for (var j = 0; j < nodeList.length ; j++){
          var node = nodeList.item(j);
          if (node.nodeName == "tmax_celsius"){
            var tmax  = node.firstChild.nodeValue;
          }
          if (node.nodeName == "tmin_celsius"){
            var tmin  = node.firstChild.nodeValue;
          }
        }
        html += "<td width=\"25%\" style=\"margin:0 auto;padding=0px;text-align:center;\">" + tmin + "/" + tmax + "&deg;C</td>";
      }
      html += "</tr>";
      html += "<tr>";
      for (var i = 0; i < itemList.length ; i++){
        var nodeList = itemList.item(i).childNodes;
        for (var j = 0; j < nodeList.length ; j++){
          var node = nodeList.item(j);
          if (node.nodeName == "weather_day_textmodul"){
            var weather_day_textmodul  = node.firstChild.nodeValue;
          }
          if (node.nodeName == "weather_day_symbol"){
            var weather_day_symbol = node.firstChild.nodeValue;
          }
        }
        html += "<td style=\"margin:0 auto;padding=0px;text-align:center;\"><a target=\"_blank\" onclick=_IG_Analytics('UA-641544-23','/Weather_"+Language+"/click') style=\"text-decoration:none;\" href=\"http://" + wodomain + "/"  + link + "/" + linkcity + ".htm\">";
        html += "<img src=\"http://images.wofrance.fr/daten/symbole/vorhersagen/standard/"+weather_day_symbol+".gif\" ALT=\""+weather_day_textmodul+"\" title=\""+weather_day_textmodul+"\" width=\"40\" height=\"28\" border=\"0\"></a></td>";
      }
      html += "</tr>";
      html += "</tbody>";
      html += "</table>";
      html += "</div>";
      html += "<div style=\"height:5%\">";
      html += "<a target=\"_blank\" onclick=_IG_Analytics(\"UA-641544-23\",\"/Weather_"+Language+"/click\") style=\"float:right;color:#003399;font-size:9px;text-decoration:none;\" href=\"http://"+wodomain+"\" title=\"Pr&#233;vision meteo wofrance\">&nbsp;&#169;"+wodomain+"</a>";
      html += "<span style=\"float:right;color:#7D91AB;font-size:9px;text-decoration:none;\">" + update + "</span>";
      html += "<div style=\"clear: both;\"></div>";
      html += "</div>";

      // Display HTML string in <div>
      _gel('content_div').innerHTML = html;
    },{refreshInterval:3});
  }

  _IG_RegisterOnloadHandler(displayWeather);
</script>

<div style="height:100%" id="content_div"></div>
  ]]>
  </Content>
  </Module>


Partager le fichier meteo.xml sur le Web et les réseaux sociaux:


Télécharger le fichier meteo.xml


Télécharger meteo.xml