Live data from Hacker News

Sun Clock

sunclock.net

51–60 of 96 posts

Re: Sun Clock

#51
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.

Re: Sun Clock

#52
post #31

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 (sta…

I visualize the year clockwise, but with summer at the top, and the new year at the 6 o'clock position. I'm not sure why, but I think it just makes more sense to me to think of spring as rising, and "fall" as descending. I guess that convention would work better in the southern hemisphere.

Right. If viewed with the north pole up, Earth indeed rotates counterclockwise around the Sun. Not sure if it would be any different for someone living on the southern hemisphere though, as all the maps used globally have the North up and the South down.

Re: Sun Clock

#53
post #46

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/

At last, someone thought of giving the ambient temperature in kelvin

Re: Sun Clock

#54
post #48
post #38

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

Why are some days blue and others are gray? Doesn't seem to correlate to cloudiness or precipitation

idk. Not the dev, but for me it's seemed pretty correlated to cloudiness.

Re: Sun Clock

#56
post #32

Earlier quoted context omitted.

That’s actually pretty close to what I ended up building. For the first one, I skipped the map and went with search + saved cities instead. All your saved places sit on the same 24-hour dial, so you can see the difference from your local time at a glance without doing the timezone math. The upside is that it works completely offline and fits nicely on Apple Watch too. Your second suggestion is the part I only got hal…

A watch face would be fun.

Yeah I want this on my Pebble time 2 sq!

Re: Sun Clock

#57
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.

Re: Sun Clock

#58
post #40

Earlier quoted context omitted.

what sorts of background texts/sources of info did you use? edit: i think i have the dover book your readme mentions :)

Initially (about 15 years ago - it was my first ever open source library!) it was based on Astronomy Answers articles that are thankfully still live at https://www.aa.quae.nl/en/reken/zonpositie.html , but v2.0 specifically was rewritten to use the approach described in Jean Meeus' Astronomical Algorithms book.

I did a similar one recently but have not been able to validate it's calculations against any other source. Thanks for posting the link to yours when I get time I'll compare and see if they match up. https://git.mikedilger.com/mikedilger/sunangle
Post reply on HN