Forecast weather data by polygon

API call:

http://api.agromonitoring.com/agro/1.0/weather/forecast

Parameters:

appid personal api key

polyid ID of polygon

Examples of API calls:

http://api.agromonitoring.com/agro/1.0/weather/forecast?polyid=5aaa8052cbbbb5000b73ff66&appid=bb0664ed43c153aa072c760594d775a7

Example of API response:
[
   {
      "dt":1522162800,
      "weather":[
         {
            "id":500,
            "main":"Rain",
            "description":"light rain",
            "icon":"10d"
         }
      ],
      "main":{
         "temp":285.15,
         "temp_min":285.137,
         "temp_max":285.15,
         "pressure":1028.19,
         "sea_level":1032.34,
         "grnd_level":1028.19,
         "humidity":98,
         "temp_kf":0.02
      },
      "wind":{
         "speed":7.06,
         "deg":280
      },
      "rain":{
         "3h":2.1075
      },
      "clouds":{
         "all":92
      }
   },
   {
      "dt":1522173600,
      "weather":[
         {
            "id":500,
            "main":"Rain",
            "description":"light rain",
            "icon":"10d"
         }
      ],
      "main":{
         "temp":285.15,
         "temp_min":285.133,
         "temp_max":285.15,
         "pressure":1028.55,
         "sea_level":1032.84,
         "grnd_level":1028.55,
         "humidity":97,
         "temp_kf":0.01
      },
      "wind":{
         "speed":6.06,
         "deg":281.501
      },
      "rain":{
         "3h":0.5575
      },
      "clouds":{
         "all":92
      }
   },
   {
      ...
   }
]
Parameters:
  • coord
    • coord.lon City geo location, longitude
    • coord.lat City geo location, latitude
  • weather (more info Weather condition codes)
    • weather.id Weather condition id
    • weather.main Group of weather parameters (Rain, Snow, Extreme etc.)
    • weather.description Weather condition within the group
    • weather.icon Weather icon id
  • main
    • main.temp Temperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
    • main.pressure Atmospheric pressure (on the sea level, if there is no sea_level or grnd_level data), hPa
    • main.humidity Humidity, %
    • main.temp_min Minimum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally). Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
    • main.temp_max Maximum temperature at the moment. This is deviation from current temp that is possible for large cities and megalopolises geographically expanded (use these parameter optionally). Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
    • main.sea_level Atmospheric pressure on the sea level, hPa
    • main.grnd_level Atmospheric pressure on the ground level, hPa
  • wind
    • wind.speed Wind speed. Unit Default: meter/sec, Metric: meter/sec, Imperial: miles/hour.
    • wind.deg Wind direction, degrees (meteorological)
  • clouds
    • clouds.all Cloudiness, %
  • rain
    • rain.3h Rain volume for the last 3 hours
  • snow
    • snow.3h Snow volume for the last 3 hours
  • dt Time of data calculation, unix, UTC