Skip to content

feat: make the refresh interval configurable - #34

Open
TyceHerrman wants to merge 1 commit into
Colonial-Dev:masterfrom
TyceHerrman:feat/28-configurable-refresh
Open

feat: make the refresh interval configurable#34
TyceHerrman wants to merge 1 commit into
Colonial-Dev:masterfrom
TyceHerrman:feat/28-configurable-refresh

Conversation

@TyceHerrman

Copy link
Copy Markdown

Summary

Allow users to reduce Satpaper's bandwidth usage by configuring how long it waits between checks for new imagery.

The new --sleep-duration/SATPAPER_SLEEP_DURATION setting is expressed in seconds, defaults to 60, and rejects zero.

Changes

  • add a positive u64 sleep-duration CLI and environment setting
  • convert the configured seconds to a Duration once when the update loop starts
  • document the setting in the options reference
  • add the setting to the systemd, launchd, and Docker Compose examples
  • cover the default, CLI override, and zero-value rejection

Testing

  • cargo test --release -- --skip generate_wallpaper — 3 passed
  • cargo clippy --all-targets --all-features -- -D warnings
  • git diff --check

Closes #28

@TyceHerrman
TyceHerrman marked this pull request as ready for review July 17, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make SLEEP_DURATION a configurable parameter

1 participant