Previous: current-time, Up: STCS Tools [Contents]
sun-positionChristian Brunello ([email protected])
GNU General Public License version 3 or later (see GNU General Public License)
Executable ($bindir/sun-position)
Estimates solar azimuth and elevation for a given latitude/longitude at
the current local time (converted to UTC for the calculation).
Needs libm at build time; skip with --disable-sun-position.
Mandatory options:
Reference latitude in degrees.
Reference longitude in degrees.
$ sun-position --latitude 45.223 --longitude 11.999
{"timestamp": 1791893400, "latitude": 45.223000, "longitude": 11.999000,
"azimuth": 204.360031, "elevation": 46.287419}
azimuth — degrees from north (0^\circ = north, 180^\circ = south).
elevation — degrees above the horizon.
Typical STCS use: site overlay sun-position.xml with
process-transport polling on a cron expression and binding
SUN:azimuth / SUN:elevation.