Skip to content
HALOWERK

Text Tools

html meter scale markers

Web page meter trip points convert user-selected percentage marks into absolute gauge values. Use it when an agent needs thresholds expressed in native units.

POST https://text.halowerk.com/v1/html-meter-scale-markers

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
htmlstringNo
urlstringNo
reuse_licenseSee schemaNo
indexintegerYes
percentintegerYes
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
    },
    "percent": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "index",
    "percent"
  ],
  "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,
  "percent": 25
}

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": {
        "mark": {
          "type": "number"
        },
        "reading_reaches_mark": {
          "type": "boolean"
        },
        "units_to_mark": {
          "type": "number"
        }
      },
      "required": [
        "mark",
        "reading_reaches_mark",
        "units_to_mark"
      ]
    },
    "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 →