Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20982

Integration Error Openweathermap

XMLWordPrintable

    • Sprint 88 (May 2022)
    • 0.125

      During the integration configuration, when the {$LOCATION} parameter receives geo coordinates with a negative sign, the integration does not correctly identify, causing the API question to return an unexpected error.

       

      Configured as per configuration readme

       

      Sending done by zabbix to the api and error.

       

      Test submission for api via chrome browser

      When the minus sign is removed it finds the city, but as it is a geographical coordinate it does not correspond to my country.

       

       

      In the script when the geographic coordinate is negative, the link to the api is generated incorrectly and does not correspond to the correct parameter

      api.openweathermap.org/data/2.5/weather?q='-15.500000000%2C-55.00000000'&appid XXX

       

      The correct would be

      api.openweathermap.org/data/2.5/weather?lat=-15.500000000&lon=-55.00000000&appidXXXX=metric&lang=pt_br

       

      I hope I was clear in the explanations.
      Thanks

       

       

        1. image-2022-05-02-18-40-27-428.png
          30 kB
          Alex Albuquerque
        2. image-2022-05-02-18-44-01-574.png
          9 kB
          Alex Albuquerque
        3. image-2022-05-02-18-46-06-681.png
          54 kB
          Alex Albuquerque
        4. image-2022-05-02-18-49-42-075.png
          28 kB
          Alex Albuquerque
        5. Script Openweathermap Get data.txt
          3 kB
          Alex Albuquerque

            vkhaliev Vyacheslav Khaliev
            alexalburca Alex Albuquerque
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: