80trust / 100

Metar Decode

by Tanod skypeek in Weather & location

x402 APIPassing, checked 3 h ago

skypeek (Tanod) METAR / TAF decoder. Not for flight planning or navigation.

POST https://tanod.dev/v1/aviation/metar/decode

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
271 ms typical, 372 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/aviation/metar/decode" \
  -H "content-type: application/json" \
  -d '{"raw":"RPLL 080300Z 10005KT 9999 FEW018 SCT025 30/26 Q1008 NOSIG"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Faviation%2Fmetar%2Fdecode
const res = await pay("https://tanod.dev/v1/aviation/metar/decode", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"raw":"RPLL 080300Z 10005KT 9999 FEW018 SCT025 30/26 Q1008 NOSIG"}),
});
console.log(await res.json());

Example input

{
  "raw": "RPLL 080300Z 10005KT 9999 FEW018 SCT025 30/26 Q1008 NOSIG"
}

Example output

{
  "decoded": {
    "altimeter": {
      "hpa": 1008,
      "inhg": 29.77
    },
    "clouds": [
      {
        "cover": "FEW",
        "cover_text": "few",
        "height_ft": 1800,
        "type": null
      },
      {
        "cover": "SCT",
        "cover_text": "scattered",
        "height_ft": 2500,
        "type": null
      }
    ],
    "dewpoint_c": 26,
    "flight_category": "VFR",
    "observed": {
      "day": 8,
      "hour": 3,
      "minute": 0
    },
    "remarks": null,
    "station": "RPLL",
    "temperature_c": 30,
    "trend": "NOSIG",
    "type": "METAR",
    "unparsed": [],
    "visibility": {
      "meters": 9999,
      "qualifier": "greater_than_or_equal",
      "statute_miles": 6.21
    },
    "wind": {
      "calm": false,
      "direction_compass": "E",
      "direction_deg": 100,
      "gust": null,
      "gust_kt": null,
      "speed": 5,
      "speed_kt": 5,
      "unit": "KT",
      "variable": false
    }
  },
  "disclaimer": "Informational only. Not for operational use or flight planning.",
  "kind": "metar",
  "note": "Day / hour / minute are as reported (UTC); the month and year are not part of a METAR or TAF."
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402277 ms$0.001
7 h agoPassed402271 ms$0.001
11 h agoPassed402372 ms$0.001
14 h agoPassed402279 ms$0.001
18 h agoPassed402260 ms$0.001
21 h agoPassed402880 ms$0.001
25 h agoPassed402266 ms$0.001
30 h agoPassed402271 ms$0.001