Subscribing to measurements from specific sensor - Xweather Observe

Vaisala Xweather Observe API Reference

Document code
M212980EN
Revision
A
Language
English
Product
Xweather Observe
Document type
User guide

You can subscribe to the following channel to receive measurements from a specific sensor published by the service.

/measurement-stream?{sensor_id}

Provide your API key as the user and leave the password empty.

Table 1. Parameters
Parameter Mandatory Description Example
sensor_id Sensor uniform resource name (URN) urn:dev:ops:16961-WXT530-S4131016

Message

Example

[
  {
    "observedTime": "2023-05-12T14:49:00Z",
    "value": 1021.1,
    "sourceId": "urn:dev:ops:16961-WXT530-S4131016",
    "quality": {
      "qualityValue": 8500,
      "checkLevel": 1,
      "checkedAt": "2023-05-12T14:49:00Z",
      "qualityReasons": [
        {
          "name": "Level0.Unknown",
          "description": "ACCEPTED by the measurement device."
        }
      ]
    },
    "measurementType": {
      "parameter": "AIR_PRESSURE",
      "unit": "HECTOPASCALS",
      "statistics": "MEAN",
      "period": "PT1M",
      "height": 2,
      "dataLevel": "LEVEL_TWO"
    }
  }
]