Command line tool based on Suncalc to be used from command line.
I created the tool for usage in a personal Domoticz home automation project.
Install as a global CLI tool
$ npm install -g suncalc-cli
suncalc-cli azimuth [-l <latitude>,<longtitude>] [-d "<date>"] [-a]
Returns the azimuth or altitude.
The location option is required. The date option is optional, defaults to the current datetime. Use -a to get the altitude of the sun.
Apache-2.0 © Tim Klingeleers