API
Endpoints
GET /api/v1/accounts/{accountid}/stations/{stationid}/realtimedata/
Stream station data via SSE
Description
Requires role: guest
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
accountid |
path | string | No | ||
stationid |
path | string | No |
Response 200 OK
{
"measData": {
"mtSampTime": "string"
},
"stationid": "string",
"updateTS": "string"
}
Schema of the response body
{
"description": "",
"properties": {
"measData": {
"$ref": "#/components/schemas/MeasData"
},
"stationid": {
"title": "Stationid",
"type": "string"
},
"updateTS": {
"title": "Updatets",
"type": "string"
}
},
"required": [
"stationid",
"updateTS",
"measData"
],
"title": "SampleData",
"type": "object"
}
GET /api/v1/accounts/{accountid}/stations/{stationid}/latestdata/
Get latest station data.
Description
Returns 204 NO CONTENT if no data available.
Requires role: guest
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
accountid |
path | string | No | ||
stationid |
path | string | No |
Response 200 OK
{
"measData": {
"mtSampTime": "string"
},
"stationid": "string",
"updateTS": "string"
}
Schema of the response body
{
"description": "",
"properties": {
"measData": {
"$ref": "#/components/schemas/MeasData"
},
"stationid": {
"title": "Stationid",
"type": "string"
},
"updateTS": {
"title": "Updatets",
"type": "string"
}
},
"required": [
"stationid",
"updateTS",
"measData"
],
"title": "SampleData",
"type": "object"
}
Schemas
MeasData
Name | Type |
---|---|
mtSampTime |
string |