6 ms·
Show HN: Sunrisewhen – pretty sunrise and sunset times for your area
- derbOac 3y agoNice. 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.
- whycome 3y agoLooks great. can side-by-side be an option too? (at least on desktop) .schedule { flex-direction: row; } scrolling seems unnecessary.
- nurlennart 3y agothat'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!
- whycome 3y agoGreat! Get rid of the footer padding? It forces scroll on Macbook pro (1440x900) (Or stick it to the bottom?)
- nurlennart 3y agoShould not scroll anymore, cleaned up a little
- whycome 3y agoStill 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).
- nurlennart 3y agoI'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.
- HenrikB 3y agoWISH: 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'.
- nurlennart 3y agothat's true, I will fix that. thank you!
- NarcisMirandes 3y agoI 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.
- pests 3y agoNice, 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.
- SushiHippie 3y agoI 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.
- nurlennart 3y agoah, thanks for the heads up. Just switched it to OpenStreetMap, that one works fine on mobile.
- _f9cu 3y agoBeautiful.
- nurlennart 3y agobtw: you can append ?units=imperial to the url if you want imperial units for the weather