Sun
 
The “sun” plugin allows you to retrieve information about the current position and time of the sun based on the specified coordinates (latitude and longitude). It provides various parameters related to the position of the sun throughout the day, as well as sunrise, sunset, twilight, and other moments. The plugin’s state can indicate whether the sun is above or below the horizon.
Parameters:
- horizonState: Horizon state
- phase: Sun phase
- azimuth: Sun azimuth
- elevation: Sun elevation above the horizon
- sunrise: Sunrise time
- sunset: Sunset time
- sunriseEnd: Sunrise end time
- sunsetStart: Sunset start time
- dawn: Dawn time
- dusk: Dusk time
- nauticalDawn: Nautical dawn time
- nauticalDusk: Nautical dusk time
- nightEnd: Night end time
- night: Night time
- goldenHourEnd: Golden hour end time
- goldenHour: Golden hour time
- solarNoon: Solar noon time
- nadir: Nadir (minimum sun elevation above the horizon)
Settings:
- lat: Latitude (geographic latitude)
- lon: Longitude (geographic longitude)
States:
- aboveHorizon: The sun is above the horizon
- belowHorizon: The sun is below the horizon
Last modified February 5, 2024: Merge pull request #270 from e154/master (7108cb6)