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 statephase
: Sun phaseazimuth
: Sun azimuthelevation
: Sun elevation above the horizonsunrise
: Sunrise timesunset
: Sunset timesunriseEnd
: Sunrise end timesunsetStart
: Sunset start timedawn
: Dawn timedusk
: Dusk timenauticalDawn
: Nautical dawn timenauticalDusk
: Nautical dusk timenightEnd
: Night end timenight
: Night timegoldenHourEnd
: Golden hour end timegoldenHour
: Golden hour timesolarNoon
: Solar noon timenadir
: Nadir (minimum sun elevation above the horizon)
Settings:
lat
: Latitude (geographic latitude)lon
: Longitude (geographic longitude)
States:
aboveHorizon
: The sun is above the horizonbelowHorizon
: The sun is below the horizon
Last modified February 5, 2024: Merge pull request #270 from e154/master (7108cb6)