Skip to content Skip to footer
0 items - $0.00 0

Show HN: Daylight – track sunrise / sunset times in your terminal by jbreckmckye

Show HN: Daylight – track sunrise / sunset times in your terminal by jbreckmckye

Show HN: Daylight – track sunrise / sunset times in your terminal by jbreckmckye

9 Comments

  • Post Author
    japaget
    Posted March 12, 2025 at 5:00 am

    Windows build works fine (Windows 10 Professional x64 22H2).

  • Post Author
    rrr_oh_man
    Posted March 12, 2025 at 7:07 am

    Great looking app!!

    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.

  • Post Author
    thenthenthen
    Posted March 12, 2025 at 9:50 am

    Cool! Can we use the sky hue as Terminal background or overal “theme”?

  • Post Author
    oftenwrong
    Posted March 12, 2025 at 10:23 am

    I was curious how the times were obtained. It uses https://github.com/nathan-osman/go-sunrise , which links to this calculation method: https://en.wikipedia.org/wiki/Sunrise_equation#Complete_calc…

  • Post Author
    ndegruchy
    Posted March 12, 2025 at 12:45 pm

    Of course, you can get this information in Emacs, too. You'll need to get your lat and long, first:

        (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.

  • Post Author
    jrootabega
    Posted March 12, 2025 at 2:01 pm

    Is the noon color scheme supposed to look like Finn from Adventure Time?

  • Post Author
    voidUpdate
    Posted March 12, 2025 at 3:27 pm

    Does this pull the times from an online service or are they calculated locally? I tried to read the code to work it out but I don't program in Go so I got a little lost

  • Post Author
    kseistrup
    Posted March 12, 2025 at 8:02 pm

    This is nice, I like it!

    Is there a way to make it use 24h time, rather than AM/PM?

  • Post Author
    JimmyDeep
    Posted March 18, 2025 at 1:03 am

    I live in a place where it often rains, and I really love sunny weather. It makes me feel a bit down when I see that it's already dark by the time I get off work. I was wondering, since the Earth's revolution is taken into account, the time you get should be different every day, right?

Leave a comment

In the Shadows of Innovation”

© 2025 HackTech.info. All Rights Reserved.

Sign Up to Our Newsletter

Be the first to know the latest updates

Whoops, you're not connected to Mailchimp. You need to enter a valid Mailchimp API key.