logoalt Hacker News

Sun Clock

233 pointsby Gecko4072yesterday at 4:37 PM77 commentsview on HN

Comments

mourneryesterday at 8:03 PM

Author of suncalc (the JS library behind the sun calculations) here — happy to see such a nice application of it! Heads up if the author's reading this — I recently released a major overhaul of the library that makes it a lot more precise: https://github.com/mourner/suncalc

show 2 replies
TimTheTinkeryesterday at 9:57 PM

It looks like the "golden hour" may be hardcoded as the hour before sunset. May I suggest updating it to be based on the sun's position in the sky?

In high-northern and low-southern latitudes, the sun can stay close to the horizon for long stretches of the day depending on the season. For example, in Iceland in parts of the spring and fall, the golden hour lasts for most of the day - amazing for photography and just enjoying the scenery.

show 1 reply
miniBilltoday at 8:54 AM

Makes me want to build this physically with a color e-ink display + a standardish 24h clock mechanism

zamadatixyesterday at 6:24 PM

I love it. It'd be nice if I could click points on a map and see the difference to my local one as well. Or in the calendar view if it'd show a copy of the clock (i.e. coloring not current hand positions) for the time I'm hovered over.

show 1 reply
feryesterday at 7:13 PM

Neat. One of my favourite sites, which also shows daylight, is WeatherSpark[0], obviously focused on weather and it allows you to compare locations based on yearly rainfall, cloud cover, muggy conditions, all sorts of stuff. Always check it when going on vacation or relocating.

[0] https://weatherspark.com/

momentmakeryesterday at 6:37 PM

Also made something like this called Sun Path which tracks where the sun is through centuries and how the path deviates ever so slowly.

Plus there are all the equinoxes and solstices.

https://pilgrimapp.org/sunpath/

show 1 reply
jasonincanadayesterday at 6:24 PM

It must be clock-making time... I built a 24-hour clock a few days ago but in base-12 and with 72 seconds per minute (to reuse the outer 24-hour dial, with 3 subdivisions to make it closer to the normal second)

https://jasonincanada.github.io/24-hour-base-12-clock.html#w...

show 1 reply
altairprimetoday at 7:25 AM

There is also an IRL variation of one-handed clocks that someone launched back in 2011: https://thepresent.is/collections/the-shop/products/the-pres...

The absence of a simple, single-handed watch face like Day or Sun Clock is my biggest objection to Apple Watch refusing to allow publicly-created third-party face designs.

show 1 reply
seanalltogetheryesterday at 6:49 PM

I've been wanting to build this exact clock for awhile now. My feature request would be to include a timeline at the bottom of the page that I can scroll back and forth through days of the year to see everything shift.

show 1 reply
staplungtoday at 12:21 AM

Clocks like this are fun. I coded one but couldn’t decide how to handle the corner cases where the sun rises but does not set (and vice versa). You also have to decide if you’re showing the time that the sun rose today or if it should be tomorrow once you’ve already passed that time. Either way, at a certain point you’ll see the UI shift. At moderate latitudes it makes little difference but the effect can be quite extreme depending on the latitude and time of year.

show 2 replies
edelindtoday at 6:08 AM

This needs a way to manually set the location. Browser location is so off sometimes. Without that is useless for me.

show 1 reply
dveeden2today at 6:21 AM

Would be nice if we could have this on a Garmin watch...

Closest one I was able to find so far: https://apps.garmin.com/apps/dfb89b31-1535-4b41-b02b-17e3d38...

charliewallacetoday at 7:05 AM

For an alternate version that packs sunrise and sunset into an easier-to-read 12-hour clock face, check out my https://dayspiral.com

charliewallacetoday at 7:04 AM

For an alternate version that packs sunrise and sunset into an easier-to-read 12-hour clockface, check out my https://dayspiral.com

yoyomotoday at 9:50 AM

would love this integrated into my iphone alarm clock

Gecko4072yesterday at 8:36 PM

This is the author's account: https://news.ycombinator.com/user?id=perilunar

show 1 reply
franzetoday at 6:35 AM

Nice UI ideas in that one.

Here my one from a few years ago. With whole year overview slider https://daylight.franzai.com/

donohoeyesterday at 10:18 PM

Unrelated but a little related (semi-shameless plug?)- I made a small weather web-app that also plotted daylight hours as a secondary feature.

Its really weather over the next 12 hours on the primary ring, and day/night transition on the inner.

https://donohoe.dev/weather/

show 1 reply
dvhyesterday at 5:44 PM

Let me choose location manually.

show 4 replies
rhemayesterday at 5:53 PM

https://editor.p5js.org/rhemalinder/full/im3tyPBDW - I made this one for myself and it's pretty similar.

I have this hard-coded to south dakota, but it looks like this and I made it a while ago. Same idea, except I turn it such that "solar noon" is at the top.

Think 12 noon is really "high noon" or solar noon? Nope, not unless you are in the center of a timezone!

show 2 replies
tizio13yesterday at 8:19 PM

This is great. Reminds me of the Solar Dial watch face on my Apple Watch.

bpevyesterday at 8:34 PM

Been using https://sundial.page recently for weather

show 1 reply
tygonyesterday at 10:57 PM

Very nifty little app. It is such a standard thing nowadays, but the dynamic UI rescaling (to a point anyway) makes it nice to stick on the side and watch as the sun goes down. Kudos to the dev.

dilapyesterday at 6:07 PM

This is neat! Would love the ability to make "true noon" be at the top of the clock, instead of 12.

Willinghamtoday at 1:31 AM

Very well done, I made a similar tool a few months back. https://ethanwillingham.com/daylight-globe.html

svennidalyesterday at 8:09 PM

Nice. I made my solar clock here: svennidal.is/solarclock

I'm currently in Iceland and I've been using my clock as my main clock since the Icelandic clock is set to be almost one and half hour to early. I've never really shared it so that is why it's just hardcoded to my location haha.

karmakazeyesterday at 6:12 PM

I would prefer if it showed a regular 12 hours clock face and show the upcoming sunrise or sunset, or two faces one for each.

Arshwaraichyesterday at 7:06 PM

Neat! I made something similar to better visualize timezones based off the day/night cycle:

https://apps.apple.com/in/app/sun-timezone/id6760567372

sheeptyesterday at 6:47 PM

It'd be neat if you could pan a slider through the year to see the sunrise sunset times change

SoulMantoday at 3:02 AM

It would be great to have other visible planets like Jupiter and Venus in the dial

vesinisayesterday at 7:39 PM

Love it!

One weird thing: the author of this clock/calendar portrays the year rotating clockwise (click on the calendar icon in top left to see the "annual" calendar): January in 12 to 1 o'clock, February in 1 to 2 o'clock, etc. and December in 11 to 12 o'clock.

In a poll of some close friends recently, we found out that most of us (>80% including myself) had always mentalized the year rotating counter-clockwise (starting from January at 12 to 11 o'clock, Februay at 10 to 11 o'clock etc. and finally December in 1 to 12 o'clock.)

Bizarely none of us could explain why we had such weird anti-clockwise mental image of the annual cycle, but all who viusalized the year running counter-clockwise said they had done so for as long as they could remember.

show 6 replies
mannanjyesterday at 5:51 PM

Nice. I've been making a version of this that I submitted to ycombinator, testing the thesis "If we schedule our life around the sun including afternoon naps" we perform better.

Check it out and give me feedback. It has a long ways to go.

https://sunsignal.app

nipunaeka89yesterday at 6:40 PM

nice one

Razenganyesterday at 5:47 PM

Man fuck Apple for not allowing custom Apple Watch faces >:(

Always the crippled operating system limiting the potential of their amazing hardware

show 2 replies