Skip to content

太阳

太阳高度/方位角

bash
curl "https://singer.caiyunhub.com/v3/astro/sun/location/?longitude=116&latitude=39&days=2&token={token}"
  • longitude: 经度
  • latitude: 纬度
  • days: 多少天,最多2天
json
{
  "data": [
    { "timestamp": 1671638400, "altitude": -74.1515, "azimuth": 348.0473 },
    // ...
    { "timestamp": 1671721200, "altitude": -67.8016, "azimuth": 309.0398 }
  ]
}
  • timestamp: 时间戳
  • altitude: 高度角
  • azimuth: 方位角