At home I have a nice view of the Fujisan to the south-west. I often take pictures of it in winter when the skies are so clear.
Many times I’ve told myself it would be nice to take a picture with the sun setting right behind the mountain. I’ve searched the internet for an app that would tell me when this happens but all I could find were apps that tell you where the sun sets on a particular day, not the other way around. So I decided to build it…
Sunsetter is a simple python web app running on Heroku. It’s based on the brilliant pysolar library for the hardcore astronomical calculations and binds it all to Google Maps with a dash of Ajax and JavaScript.
The app still needs polish but the data it gives out should be pretty accurate and reliable at normal altitudes (standing on top of a very tall mountain overlooking a wide plain will change the distance of the horizon and screw with the calculations a bit).
If this app was useful to you or you have suggestions, I’d love to hear from you in the comments.
Update (2012-06-03): I’ve open sourced the code on Github.
Leave a Reply