Skip to content

workers / wine_inventory / src / pince_shelf / integration / motion_runtime.py

Path: workers/wine_inventory/src/pince_shelf/integration/motion_runtime.py
Lane: workers
Executable: yes

Purpose

Component: motion_runtime

Lane: workers

Path: workers/wine_inventory/src/pince_shelf/integration/motion_runtime.py

Role: Motion orchestrator (debounce-until-quiet)

Entry points

  • __main__ guard detected

Key symbols

Classes

  • (none detected)

Functions

  • _cleanup_pid_file(cfg)
  • _load_cfg()
  • _load_motion_state(state_file)
  • _lock_file(cfg)
  • _pid_file(cfg)
  • _probe_visibility(cfg)
  • _run_pipeline()
  • _single_instance_lock(cfg)
  • _sleep_with_log(seconds, reason)
  • _state_file(cfg)
  • _wait_until_quiet_window(cfg)
  • main()

Configuration & environment

  • (no env vars detected by regex)

Dependencies (imports)

  • __future__
  • contextlib
  • fcntl
  • json
  • logging
  • pathlib
  • pince_shelf.cli
  • pince_shelf.config.settings
  • pince_shelf.utils.logger
  • pince_shelf.utils.paths
  • pince_shelf.utils.tapo_manager
  • pince_shelf.vision
  • time
  • typing

Operational notes (fill in)

  • Headless/interactive:
  • Systemd unit (if any):
  • Schedules/triggers:
  • Debug artifacts:
  • Failure modes: