Skip to content
HALOWERK

Naturwerk

water stage threshold dwell

Return time above a supplied stage threshold using linear interpolation between readings.

POST https://natur.halowerk.com/v1/water-stage-threshold-dwell

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
times_harrayYes
stages_marrayYes
threshold_mReferenceYes
Show full input schema
{
  "type": "object",
  "properties": {
    "times_h": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/s0"
      },
      "maxItems": 100,
      "minItems": 2
    },
    "stages_m": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/s0"
      },
      "maxItems": 100,
      "minItems": 1
    },
    "threshold_m": {
      "$ref": "#/$defs/s0"
    }
  },
  "required": [
    "times_h",
    "stages_m",
    "threshold_m"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w3:E6:input",
  "$defs": {
    "s0": {
      "type": "number",
      "minimum": -1000000,
      "maximum": 1000000
    }
  }
}

Open original schema

Published input example

{
  "times_h": [
    0,
    2,
    4
  ],
  "stages_m": [
    0,
    2,
    0
  ],
  "threshold_m": 1
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’