News for hackers. Stuff that matters.
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by derbOac on Tuesday January 30, 2024 @04:31AM (#39188050)
Nice.

I always like to see civil twilight as well because it gives a sense of when it's actually light or dark but I can see how for something like this simplicity might be better.

Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by whycome on Tuesday January 30, 2024 @10:06AM (#39190905)
Looks great.

can side-by-side be an option too? (at least on desktop)

.schedule { flex-direction: row; }

scrolling seems unnecessary.

Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by nurlennart on Tuesday January 30, 2024 @10:54AM (#39191556)
that's brilliant. I don't know why I never thought of that. Just implemented it. Was basically just wasting horizontal space on desktops. thank you!
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by whycome on Tuesday January 30, 2024 @11:06AM (#39191759)
Great! Get rid of the footer padding? It forces scroll on Macbook pro (1440x900) (Or stick it to the bottom?)
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by nurlennart on Tuesday January 30, 2024 @11:25AM (#39192001)
Should not scroll anymore, cleaned up a little
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by whycome on Tuesday January 30, 2024 @03:46PM (#39195557)
Still scrolling (due to taht 150px padding) but still clean and to the point with the additional info you added. The design is really great. Is something like this appropriate for a long-term display? How often does it refresh? It's the perfect thing to add as a single card for various display signage (eg in a transit system, or ad screen).
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by nurlennart on Wednesday January 31, 2024 @01:38AM (#39200726)
I'll remove the padding, I think. This is appropriate for long-term displaying, the sun data is fetched once at loading the site and stored in a cookie for 6 hours. Weather data is fetched live at every request. Using a tab refresh plugin, this could be automatically fetched every hour or so.
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by HenrikB on Tuesday January 30, 2024 @10:51AM (#39191506)
WISH: Don't pad the hours with zero when using the 12-hour time format, e.g. '7:15:03 AM' instead of '07:15:03 AM'. The padding with zero is used in the 24-hour format, e.g. '07:15:03'.
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by nurlennart on Tuesday January 30, 2024 @10:54AM (#39191574)
that's true, I will fix that. thank you!
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by NarcisMirandes on Tuesday January 30, 2024 @11:44AM (#39192255)
I like it. Simple and clear.

You could add a button to suggest extra features. It could be a way to consider a premium version that could give you money.

Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by pests on Tuesday January 30, 2024 @05:41PM (#39196949)
Nice, love it.

There is an minimalistic Apple Watch face that I love which is such a simple graph of the suns position and it tells you times like these. You can move forward and back in time with the wheel.

Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by SushiHippie on Tuesday January 30, 2024 @07:13PM (#39197929)
I think it would be better to redirect to open street maps or google maps for the location link at the bottom.

I clicked on that link on mobile and it just says:

> Download HERE WeGo for a better mobile experience

> For the best experience on small screens, get the app on your device.

Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by nurlennart on Wednesday January 31, 2024 @01:41AM (#39200744)
ah, thanks for the heads up. Just switched it to OpenStreetMap, that one works fine on mobile.
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by imvetri on Wednesday January 31, 2024 @02:06AM (#39200896)
Beautiful.
Re:Show HN: Sunrisewhen – pretty sunrise and sunset times fo... by nurlennart on Wednesday January 31, 2024 @06:12AM (#39202424)
btw: you can append ?units=imperial to the url if you want imperial units for the weather