capturegraph.scheduling.forecast.solar
#
solar_position(location, time)
#
Calculate solar position for a single datetime and location.
Uses the astral library for accurate calculations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
location
|
Location
|
Location with latitude, longitude, and altitude. |
required |
time
|
datetime
|
Date and time (naive assumes UTC, or timezone-aware). |
required |
Returns:
| Type | Description |
|---|---|
SolarPosition
|
SolarPosition with altitude and azimuth. |