location.weather

The location.weather command is used to return weather information for the specified coordinates.

TR50 Request


                        {
  "cmd": {
    "command": "location.weather",
    "params": {
      "lat": 30.455,
      "lng": -84.253333
    }
  }
}
      

Request Parameters

Name

Type

Required

Description

lat

Float

Yes

The latitude of the location.

lng

Float

Yes

The longitude of the location.

TR50 Response

If the command is sent successfully a success message and params list are returned. Otherwise, an error and error message will be returned.


                        {
  "cmd": {
    "success": true,
    "params": {
      "lat": 30.4,
      "lng": -84.35,
      "temperature": 18.0,
      "humidity": 59.0,
      "windSpeed": 16.0,
      "windDirection": 340.0,
      "dewPoint": 10.0
    }
  }
}
      

Response Parameters

Name

Type

Description

lat

Float

The latitude of the location.

lng

Float

The longitude of the location.

temperature

Float

The observed temperature at the specified location.

humidity

Float

The observed humidity at the specified location.

windSpeed

Float

The observed wind speed at the specified location.

windDirection

Float

The observed wind direction at the specified location.

dewPoint

Float

The observed dew point at the specified location.