Zum Inhalt springen
GET /v1/hour-line-angle

Hour-line angle on the dial

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/sundial-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/sundial-api/v1/hour-line-angle" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sundial-api/v1/hour-line-angle", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sundial-api/v1/hour-line-angle");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/sundial-api/v1/hour-line-angle",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "The hour-line angle on the dial plate, measured from the noon (12:00) line: for a horizontal dial tan(angle) = sin(latitude) × tan(hour angle); for a vertical south-facing dial it is cos(latitude) instead. The hour angle is 15° per hour from solar noon (1 pm = 15°, 2 pm = 30°). At 50° latitude the 1-o'clock line sits about 11.6° from noon, not 15° — the lines bunch near noon and spread toward the ends, which is why a sundial's hours are unevenly spaced.",
        "inputs": {
            "dial_type": "horizontal",
            "latitude_deg": 50,
            "hour_angle_deg": 15
        },
        "hour_line_angle_deg": 11.5995
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:49.912Z",
        "request_id": "c99c1664-125f-4e84-b8ba-530b6d616006"
    },
    "status": "ok",
    "message": "Hour-line angle",
    "success": true
}