What is this?
Sunsetter is a simple python web app running on Heroku that can calculate, given a point of view and a point of interest (selected on a google map) on which day of the year the sun will rise or set in this direction. More info on my blog.
It's currently setup to self deploy and run on Google Cloud Run with Github Actions CI/CD.
Note: the app is configured to predict when the sun's lower limb touches the horizon, not the civil sunset when the sun completely disappears behind the horizon, as this makes for a better picture. This setting can be modified app-wide in
How to run it on my machine?
If you want to download it and run it on your own machine you can just run
docker-compose up to run it on http://localhost:8000 with a redis instance. You'll need a Google Maps API key enabled for localhost though.