Skip to content
HALOWERK

Text Tools

html meter threshold clearance

Web page meter threshold clearance finds the closest low or high boundary and the distance to it. Use it when an agent needs a gauge alarm margin.

POST https://text.halowerk.com/v1/html-meter-threshold-clearance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
htmlstringNo
urlstringNo
reuse_licenseSee schemaNo
indexintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "maxLength": 16000,
      "minLength": 1
    },
    "url": {
      "type": "string",
      "maxLength": 800,
      "minLength": 1
    },
    "reuse_license": {
      "enum": [
        "CC0",
        "CC-BY-4.0",
        "public-domain",
        "own-content"
      ]
    },
    "index": {
      "type": "integer",
      "minimum": 0,
      "maximum": 199
    }
  },
  "required": [
    "index"
  ],
  "additionalProperties": false,
  "oneOf": [
    {
      "required": [
        "html"
      ]
    },
    {
      "required": [
        "url"
      ]
    }
  ]
}

Open original schema

Published input example

{
  "html": "<meter min=\"0\" max=\"8\" low=\"2\" high=\"6\" optimum=\"8\" value=\"5\">5 of 8</meter>",
  "index": 0
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "boundary": {
          "type": "string"
        },
        "distance": {
          "type": "number"
        },
        "on_boundary": {
          "type": "boolean"
        }
      },
      "required": [
        "boundary",
        "distance",
        "on_boundary"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →