6 ms·
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 rece
by mourner 1mo ago
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 https://github.com/mourner/suncalc
- carterschonwald 1mo agowhat sorts of background texts/sources of info did you use? edit: i think i have the dover book your readme mentions :)
- mourner 1mo 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 1mo 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 1mo agoAuthor of Sun Clock here — thanks for the library! I'll check out the new release soon and update.
- xd1936 1mo agoI just used Suncalc yesterday to add Sunrise/Sunset and Golden Hour to my PebbleOS NOAA Radar watchface[1]. Thank you for an amazing library; It's the first that I reach for every time I have a project with this need. 1. https://apps.repebble.com/2029ab9c84f946e1b125f8e0 https://apps.repebble.com/2029ab9c84f946e1b125f8e0
- prometheus76 1mo agoI am working on a clock app that keeps time the Roman Empire way (every day has twelve hours that start at sunrise and end at sunset, so the duration of each hour changes slightly each day), so this library would be extremely helpful. Thank you!