Skip to content

KristopherLeads/sunangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SunAngle

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.

Screenshot 2025-06-28 at 4 48 15 pm

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.

Features

  • Just give it your latitude and longitude and you get a terrible drawing of the sun's relative angle.

Quick Start

Prerequisites

  • Python 3.8+
  • matplotlib
  • timezonefinder
  • pytz
  • numpy

Installation

  1. Clone the repository:
git clone https://github.com/KristopherLeads/sunangle
cd sunangle
  1. Create a virtual environment:
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
python3 sunangle.py

Project Structure

sunangle/
├── ReadMe.md
├── sunangle.py
├── requirements.txt
├── .gitignore
└── LICENSE

About

A simple tool to detect the sun's angle relative to your coordinates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages