by jbreckmckye on 3/9/25, 12:21 PM with 19 comments
Now I've written a terminal app for this (Mac/Linux)
Features: a colorful summary of daylight times for your location; projected change over the coming days; handles NO_COLOR and a ---short flag if you dislike the output format.
The location is IP-based but you can override this if you're on a VPN. Just create a terminal alias with the --loc flag. The app supports areas in the arctic / antarctic circle too.
Check our the repository for a preview and instructions on how you can install it with Homebrew.
(There is a Windows build but it's not yet tested)
by oftenwrong on 3/12/25, 10:23 AM
by ndegruchy on 3/12/25, 12:45 PM
(setq calendar-latitude 12.3456
calendar-longitude -98.7654)
Then, you can `M-x sunrise-sunset` and see the times (and total daylight hours) in the echo area.by rrr_oh_man on 3/12/25, 7:07 AM
I immediately checked how you do location lookups:
> IP lookup is powered by https://ipinfo.io. They provide a good service so please don't spam requests.
There was a thread about them recently — the scale of their operation was very surprising.
by japaget on 3/12/25, 5:00 AM
by JimmyDeep on 3/18/25, 1:03 AM
by voidUpdate on 3/12/25, 3:27 PM
by thenthenthen on 3/12/25, 9:50 AM
by jrootabega on 3/12/25, 2:01 PM
by kseistrup on 3/12/25, 8:02 PM
Is there a way to make it use 24h time, rather than AM/PM?