Look, this is a real simple Python project.
I parked my car in the lot today and wondered whether the place I parked would be sunny or not by the time I came out. I can't stand the heat, so I figured if the sun hit a certain angle, the building would be tall enough to give me a solid hour of shade by the time I walked out. But I didn't know what angle the sun would be at.
So I built this thing.
Right now it only takes your current time and outputs the angle of the sun in a MatLib visualization. The next version will support testing for a specific time.
I told you this was real simple.
Also it only works with our sun, so...caveat emptor Martians.
- Just give it your latitude and longitude and you get a terrible drawing of the sun's relative angle.
- Python 3.8+
- matplotlib
- timezonefinder
- pytz
- numpy
- Clone the repository:
git clone https://github.com/KristopherLeads/sunangle
cd sunangle
- Create a virtual environment:
python3 -m venv venv
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python3 sunangle.py
sunangle/
├── ReadMe.md
├── sunangle.py
├── requirements.txt
├── .gitignore
└── LICENSE