Sun Position
SunPositionSun Position: Sun Position calculates the sun altitude and azimuth, plus compass bearing, for any geographic coordinates and time. Provide latitude and longitude to read sun elevation angles and daylight status; paid plans add panel aiming angles and shadow ratios. (Cost: 2 credits)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "SunPosition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | The latitude of the location | |
| lon | Yes | The longitude of the location | |
| date | No | The date to get the sun position data for (MM-DD-YYYY) | |
| time | No | The time of day for the calculation (HH:mm format, 24-hour), read in the timezone of the coordinates. Defaults to 00:00 if not provided | |
| timezone | No | IANA timezone to read the date and time in, such as America/Los_Angeles. Defaults to the timezone of the coordinates |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |