~gjabell/dawn2dusk

Offline sunrise and sunset calculator
Add attribution
Add LICENSE
Initial implementation

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~gjabell/dawn2dusk
read/write
git@git.sr.ht:~gjabell/dawn2dusk

You can also use your local clone with git send-email.

#dawn2dusk

An offline CLI and library for calculating today's sunrise and sunset times.

Inspired by the functionality in wlsunset and reimplemented in Go.

#Installing

Requires Go.

git clone https://git.sr.ht/~gjabell/dawn2dusk && cd dawn2dusk
go install ./...

#Usage

$ dawn2dusk -h
Usage of dawn2dusk:
  -L float
    	Longitude in degrees; must be between -180° and 180° (default -200)
  -l float
    	Latitude in degrees; must be between 0° and 90° (default -1)
  -t string
    	Timezone used for formatting times (default "Local")

#Example

$ dawn2dusk -l 52.5 -L 13.4  # sunrise and sunset in Berlin
SUNRISE: 07:44
SUNSET: 17:56
Do not follow this link