Skip to content

Stop at a time of day (counterpart to Start at) #177

Closed

Description

@TMHSDigital

Summary

Runs can start at a wall-clock time but only stop after a duration, so "from 09:00 to 17:30" needs arithmetic that breaks if the start is delayed.

Where

  • autoclicker/core/schedule.py:12-25
  • autoclicker/cli.py:104-106
  • autoclicker/core/settings_manager.py:213-218

Details

#121 added start_at and --start-at HH:MM. The only end condition is auto_stop_minutes.

Impact

Users of the scheduling how-to have to compute durations by hand.

Suggested fix

Add stop_at and --stop-at HH:MM. At start, convert it to a deadline with next_start and feed it to the existing monotonic auto-stop path; whichever limit comes first wins. Show it in the Timing summary.

Acceptance criteria

  • Setting, UI field and CLI flag added
  • Works across midnight

Related: #121

Getting started

  • Relevant files: autoclicker/core/schedule.py, autoclicker/cli.py, docs/guides/run-on-a-schedule.html
  • How to run tests: make check (Git Bash) or tasks.bat lint, tasks.bat typecheck, tasks.bat test (cmd). Single test: python -m pytest tests/test_x.py::TestClass::test_name --no-cov
  • Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md

Filed by repo-audit/full-audit at 9968dc8. Severity: low. Effort: S. audit-key: enhancement|autoclicker/core/schedule.py|stop at time

Activity

  1. added
    enhancement
    priority: low
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions