Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 844 Bytes

File metadata and controls

46 lines (31 loc) · 844 Bytes

Sun Graph

Generate a graph showing sunrise and sunset times for the next year.

Install

uv sync

Run

$ uv run main.py --help
Usage: main.py [OPTIONS] LOCATION_NAME

  Generate sun graphs for LOCATION_NAME.

Options:
  --recalculate  Recalculate sunrise and sunset times.
  --help         Show this message and exit.
$ uv run main.py ibiza

Generates:

Configuration

Additional locations can be added to locations.yaml by duplicating and changing the existing entry.

Additional events, such as solstices and equinoxes, can be added to config.yaml under events.

Lint

uvx ruff format
uvx ruff check --fix
uvx mypy .