4 ms·
Sun Clock
- dalleh 3mo agonicely designed, thank you. I would love if there is a 12-hour version of it, just to look like a watch, and update sun rise, set, moon, etc. times accordingly.
- dvh 3mo agoLet me choose location manually.
- mannanj 3mo agoyou can use my version sunsignal.app and enter a zip code.
- divbzero 3mo agoYou can set latitude and longitude after opening settings with the gear icon.
- deleted 3mo ago[deleted]
- Retr0id 3mo agoI wish my browser let me do this by default. Rather than "let this site know your location?" it should be "select a location to give to this site". (I'm sure there are extensions and/or developer options that do this, but it's the default I want)
- GJim 3mo agoSeconded. I'm certainly not giving my exact GNSS coordinates to any random scrote who askes for them. Frankly I'm amazed some people do this.
- Razengan 3mo agoMan fuck Apple for not allowing custom Apple Watch faces >:( Always the crippled operating system limiting the potential of their amazing hardware
- el_benhameen 3mo agoThe “Solar Dial” face does pretty much what the site does.
- altairprime 3mo agoIt may do equivalent functionality but it sure doesn't do equivalent aesthetic.
- animal_spirits 3mo agoThis is already my default watch face on Apple Watch
- mannanj 3mo agoNice. 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 https://sunsignal.app
- rhema 3mo agohttps://editor.p5js.org/rhemalinder/full/im3tyPBDW 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!
- divbzero 3mo ago> Nope, not unless you are in the center of a timezone! … and you do not live with daylight saving time.
- reaperducer 3mo agoOr one of those places that ignores its assigned time zone. There are places in the western U.S. where entire towns operate on their own time, and the only place you'll find a "correct" clock is in the Post Office. Not even in City Hall.
- GolfPopper 3mo agoThe objective time of "local noon" also varies due to the Earth's orbit not being a perfect circle, and the Earth's axis being tilted with respect to the plane of its orbit. The variance is described by the equation of time: https://en.wikipedia.org/wiki/Equation_of_time https://en.wikipedia.org/wiki/Equation_of_time
- dilap 3mo agoThis is neat! Would love the ability to make "true noon" be at the top of the clock, instead of 12.
- karmakaze 3mo agoI would prefer if it showed a regular 12 hours clock face and show the upcoming sunrise or sunset, or two faces one for each.
- jasonincanada 3mo agoIt 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#workday=08:00-16:30 https://jasonincanada.github.io/24-hour-base-12-clock.html#w...
- babu_mick 3mo agointeresting
- zamadatix 3mo agoI 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.
- duman 3mo agoThat’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 halfway right. You can move the dial in 15-minute increments and the daylight/twilight colouring changes with it. There’s also a calendar where you can jump to any date and time and see what the solar state is in every saved city, but right now that’s shown in rows rather than by recolouring the clock itself. I like your version better though, hovering/scrubbing a time and having the whole clock recolour for that moment would make a lot more sense. I’m going to add that to the list. I’m the developer, btw: https://apps.apple.com/app/id6797192832 https://apps.apple.com/app/id6797192832
- michael1999 3mo agoA watch face would be fun.
- acidburnNSA 3mo agoYeah I want this on my Pebble time 2 sq!
- BtM909 3mo agoYour link doesn't work :(
- momentmaker 3mo agoAlso 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/ https://pilgrimapp.org/sunpath/
- sheept 3mo agoDragging the globe around isn't working on touch; it feels like it's missing touch-action: none
- momentmaker 3mo agoThanks for the note. I just fixed it.
- nipunaeka89 3mo agonice one
- sheept 3mo agoIt'd be neat if you could pan a slider through the year to see the sunrise sunset times change
- seanalltogether 3mo agoI'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.
- perilunar 3mo agoAuthor here — I'm thinking of adding something like that to the calendar page, or adding a separate 'carpet plot' of times over the year.
- Arshwaraich 3mo agoNeat! I made something similar to better visualize timezones based off the day/night cycle: https://apps.apple.com/in/app/sun-timezone/id6760567372 https://apps.apple.com/in/app/sun-timezone/id6760567372
- fer 3mo agoNeat. 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/ https://weatherspark.com/
- NKosmatos 3mo agoThanks for posting this, I remember seeing it somewhere some time ago but didn't bookamrk the site and couldn't remember the name. It has some very nice plots (and city comparison) for data freaks like myself :-)
- vesinisa 3mo agoLove 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.
- layer8 3mo agoInteresting, I don’t have a circular mental image of the year at all. It’s more like a continuous line — the summers are light and the winters are dark(er) — where the previous year doesn’t coincide with the next year. Same for the week (and the month, but the months have different lengths anyway). Also not for the day, which takes two revolutions of the clock. Does anyone visualize the day as two circles? Probably not.
- cogogo 3mo agoAgree. This is the first time I had thought about it this way and the clock representation seems fine. Oddly the year is the only thing where I think I have a good 3D mental model without really thinking about it. Not sure if this makes sense to others but right now we are about 11/12ths of the way to the autumnal equinox and you can imagine the Earth’s tilted axis almost perpendicular to the arriving sunlight. I think of this as if I were observing from the sun so the axis is pointing up (north) to the left.
- Ostrogoth 3mo agoI picture day cycle in a single 24 hr counterclockwise loop. I’m always interested to learn about other people’s internal mental image frameworks! So fascinating.
- insomniacity 3mo ago
- mourner 3mo agoAuthor 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 https://github.com/mourner/suncalc
- carterschonwald 3mo agowhat sorts of background texts/sources of info did you use? edit: i think i have the dover book your readme mentions :)
- mourner 3mo agoInitially (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 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.
- decoding 3mo agoI 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 https://git.mikedilger.com/mikedilger/sunangle
- perilunar 3mo agoAuthor of Sun Clock here — thanks for the library! I'll check out the new release soon and update.
- lokar 3mo agoIt would be nice if I could just put a postal code in
- 3mo ago
- svennidal 3mo agoNice. 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.
- tizio13 3mo agoThis is great. Reminds me of the Solar Dial watch face on my Apple Watch.
- bpev 3mo agoBeen using https://sundial.page https://sundial.page recently for weather
- Gecko4072 3mo agoThis is the author's account: https://news.ycombinator.com/user?id=perilunar https://news.ycombinator.com/user?id=perilunar
- perilunar 3mo agohi :)
- TimTheTinker 3mo agoIt 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.
- mordechai9000 3mo agoIn northern Alaska it can last most of the day in the winter, and most of the night in the summer.
- donohoe 3mo agoUnrelated 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/ https://donohoe.dev/weather/
- deleted 3mo ago[deleted]
- tygon 3mo agoVery 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.
- mxmilkiib 3mo agohttps://play.google.com/store/apps/details?id=com.tdr.sunriseclock https://play.google.com/store/apps/details?id=com.tdr.sunris...
- staplung 3mo agoClocks 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.
- perilunar 3mo ago> how to handle the corner cases where the sun rises but does not set (and vice versa) In practice it doesn't matter: you get a thin sliver of twilight between solar midnight and sunrise or sunset, and a 'Sunset: Does not occur' message in the text info. In such cases the sunrise/sunset arc (sector?) is pretty broad anyway. > or if it should be tomorrow once you’ve already passed that time Yes. I chose to recalculate the times midnight. > Either way, at a certain point you’ll see the UI shift Yes, but it's usually not dramatic. A few minutes time and fractions of a degree each day. The biggest shift occurs when Daylight Saving time changes — you get a big 15° rotation in the display. Most people are asleep when that happens, but it's cool to watch it jump.
- globular-toast 3mo agoI'd want to make it continuous, but then it wouldn't actually show you proper sunset/sunrise times until the moment they are actually happening, which is probably sacrificing function for form. You could also hide the shift by making the whole thing "tick" rather than having some parts continuous and some quantised.
- Willingham 3mo agoVery well done, I made a similar tool a few months back. https://ethanwillingham.com/daylight-globe.html https://ethanwillingham.com/daylight-globe.html
- SoulMan 3mo agoIt would be great to have other visible planets like Jupiter and Venus in the dial
- edelind 3mo agoThis needs a way to manually set the location. Browser location is so off sometimes. Without that is useless for me.
- perilunar 3mo agoYou can: there's an option in the settings panel (the gear icon on the top right)
- dveeden2 3mo agoWould 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-17e3d3871911 https://apps.garmin.com/apps/dfb89b31-1535-4b41-b02b-17e3d38...
- franze 3mo agoNice UI ideas in that one. Here my one from a few years ago. With whole year overview slider https://daylight.franzai.com/ https://daylight.franzai.com/
- charliewallace 3mo agoFor an alternate version that packs sunrise and sunset into an easier-to-read 12-hour clockface, check out my https://dayspiral.com https://dayspiral.com
- charliewallace 3mo agoFor an alternate version that packs sunrise and sunset into an easier-to-read 12-hour clock face, check out my https://dayspiral.com https://dayspiral.com
- altairprime 3mo agoThere is also an IRL variation of one-handed clocks that someone launched back in 2011: https://thepresent.is/collections/the-shop/products/the-present-day-matte 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.
- geera 3mo ago[dead]
- miniBill 3mo agoMakes me want to build this physically with a color e-ink display + a standardish 24h clock mechanism
- guest__user 3mo agogo for it - make it a GitHub with a link to the shopping cart etc.
- yoyomo 3mo agowould love this integrated into my iphone alarm clock
- monegator 3mo agoSorry, not giving my position. Would be nice if i could set an address, or coordinates (for example i may not care for my particular location)
- globular-toast 3mo agoIt would be even cooler to be able to set a point on a map and watch the clock change as the point is dragged around...
- cerebrum01 3mo agoAnd it's handy for people who wanna know what the sun is going to do elsewhere too!
- anshulsahni 3mo agoit would be nice to have it as widget both in mobile / desktop machine
- didymospl 3mo agoNeat but I still prefer more nerdy tables from https://www.timeanddate.com/sun/ https://www.timeanddate.com/sun/
- weberress 3mo agoamazing !