Fetch device history synchronously.

Retrieves historical weather data for a specific device within a given time range.

get/history/sync/{device_id}

Request

  • Base URL: https://playground.weatherxm.com/b2b
  • URL: https://playground.weatherxm.com/b2b/history/sync/{device_id}
  • Auth: none declared

Path parameters

device_idstring required

Query parameters

start_datetimestring date-time required
end_datetimestring date-time required

Headers

x-wxm-api-keystring

WXM API key

Response

Data retrieved successfully

object[] required

Example response

[
  {
    "timestamp": 1658448016000,
    "gps_lat": 51.8968277,
    "gps_lon": -114.1117783,
    "gps_alt": 1107.900024,
    "metadata_latitude": 51.89688,
    "metadata_longitude": -114.11175,
    "metadata_altitude": 1100,
    "temperature": 28.5,
    "humidity": 34,
    "pressure": 884.9768677,
    "precipitation_accumulated": 12.95400047,
    "wind_speed": 0.837200046,
    "wind_gust": 1.529999971,
    "wind_direction": 43,
    "illuminance": 420330,
    "solar_irradiance": 0,
    "name": "Test Bisque Nowcast",
    "owner": "test@yahoo.ca",
    "utc_datetime": "2022-07-22 00:00:16",
    "device_id": "test0780-d8f6-11ec-960f-d7d4cf200cc9"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.