Skip to content

yttersian/sunlight-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sunlight

This simple sunlight tool calculates the days since last solstice, the equivalent day (in sunlight hours) from the period leading up to it, and the next solstice or equinox event.

Dependencies

  • Python 3.x
  • ephem

Usage

The script includes inline metadata, so if you are using uv, you can can simply add the following function (or alias) to your shell config:

function sunlight {
    uv run --quiet /path/to/sunlight-tool/sunlight.py
}

Example output

66 days since solstice (equivalent of 16 October 2023)
Next equinox in 22 days (20 March 2024)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages