@maschinenlesbar.org/pegel-online-cli
    Preparing search index...

    Type Alias MeasurementState

    MeasurementState:
        | "low"
        | "normal"
        | "high"
        | "unknown"
        | "commented"
        | "out-dated"
        | string & {}

    The API's classification of a current water level (stateMnwMhw, stateNswHsw), as documented upstream:

    • low — at or below MNW (stateMnwMhw only);
    • normal — between MNW and MHW, or between 0 and HSW;
    • high — at or above MHW, or HSW;
    • unknown — the series has no MNW/MHW (or HSW) mark to compare with;
    • commented — gauge malfunction or disruption ("Fehlfunktion oder Störung"): the value may be wrong; the reason is in the series' comment (TimeseriesInfo.comment);
    • out-dated — the reading is older than 25 hours. Typed open (string & {}) so a value the API adds later still type-checks.