/v1/hour-line-angle
Hour-line angle on the dial
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}