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.
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 must first install
venv in the same folder and activate it:
virtualenv venv --distribute source venv/bin/activate
This should change your prompt to include a
(venv) prefix. Then install the pre-requirements with this command:
pip install -r requirements.txt
Finally you need to add one environment variable to plug to local memcached without auth. Add the following to a
.env file in the root folder:
And variables for API Keys:
You can then run locally with