Skip to main content

Add your description here

Project description

Catch Sunset

A CLI tool to track sunset, sunrise, moonrise, and moonset events with optional alarm notifications via ntfy.sh.

Installation

uv sync

Usage

# Show today's events
catch-sunset today

# Show today's events with alarm notifications for sunrise and sunset
catch-sunset today -s -S

# Show tomorrow's events with custom ntfy topic
catch-sunset tomorrow -s -S --ntfy-topic mysunset

# Show events with custom cloud cover threshold (only notify if ≤30% clouds)
catch-sunset today -s -S --cloud-threshold 30

# Show events for a date range
catch-sunset range --start-date 2025-01-15 --end-date 2025-01-20

Features

  • Auto-detects location via IP geolocation
  • Manual location specification via --lat and --lon
  • Configurable alert buffer time
  • Optional alarm notifications via ntfy.sh
  • Shows moon phase and moonrise/moonset during full moon periods
  • Granular cloud cover display with 5-level emoji system (☀️ 🌤️ ⛅ 🌥️ ☁️)
  • Configurable cloud cover threshold for notifications (default: 50%)
  • Smart notification system: only alerts when sky conditions are favorable

Cloud Cover Notifications

By default, notifications are sent only when cloud cover is 50% or less. This threshold can be customized:

Via CLI flag:

# Only notify if very clear (≤25% clouds)
catch-sunset today -s -S --cloud-threshold 25

# Notify even with more clouds (≤75% clouds)
catch-sunset today -s -S --cloud-threshold 75

Via config file (~/.config/influxdb/totalconfig.conf):

[ntfy sunset]
server = https://ntfy.sh
topic = mytopic
cloud_cover_threshold = 50

Cloud Cover Icons

The tool displays granular cloud cover information:

  • ☀️ 0-10%: Sunny, perfect conditions
  • 🌤️ 11-35%: Mostly sunny
  • 36-65%: Partly cloudy
  • 🌥️ 66-90%: Mostly cloudy
  • ☁️ 91-100%: Overcast

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

catch_sunset-0.1.6.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

catch_sunset-0.1.6-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file catch_sunset-0.1.6.tar.gz.

File metadata

  • Download URL: catch_sunset-0.1.6.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for catch_sunset-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e89c47926cd1eb246815fd5362febd27d2690b8cb3f017bbd662ee672b88165d
MD5 64eedebb2c0ee773fc2cad34545db135
BLAKE2b-256 a601ca3af5977171d483b52da52b40638c075ae3f3eee16a78b435653f3da2f5

See more details on using hashes here.

File details

Details for the file catch_sunset-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for catch_sunset-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3124e4e11dc98758a22adaf488a458b159e5af1c7271066594a6bfb0f50a750a
MD5 c9bdf363af664be3806759d5590ff40c
BLAKE2b-256 7a4a2a37753344c0701b545831a65c73885d7456c4b443cf2ca148edc333ea18

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page