Uploaded image for project: 'Skin Intranet'
  1. Skin Intranet
  2. SKININTRA-280

The weather is no longer displayed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.7.0
    • 1.3.0
    • None
    • None
    • 4.8.0 M3

      the weather is no longer displayed

      $j.get(`https://api.openweathermap.org/data/2.5/weather?lang=fr&q=${town}&appid=4aca3fb6e807a81c758c8cdd6b1f86ee&units=metric`, function (data) {
                          $j('.meteo .degree .nb').html(Math.round(data.main.temp));
                          $j('.meteo .description').html(data.weather[0].description);
                          $j('.meteo .icon-meteo').attr('src', `<xsl:value-of select="ametys:skinURL('templates/common/img/icon/weather/${data.weather[0].icon}.png')"/>`);
                      }); 

        1. screenshot-1.png
          281 kB
          Anastasia François

            laurence Laurence Aumeunier
            afrancois Anastasia François
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: