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

       

       

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

              Created:
              Updated:
              Resolved: