apps / winecellar / backend / app / services / surveillance_hook_service.py¶
Path: apps/winecellar/backend/app/services/surveillance_hook_service.py
Lane: apps
Executable: no/unknown
Purpose¶
(No module docstring. Add one — it becomes your API contract.)
Entry points¶
- No
__main__guard detected
Key symbols¶
Classes¶
- (none detected)
Functions¶
_ensure_parent(path)_find_repo_root()_motion_runtime_log_file()_motion_runtime_pid_file()_motion_runtime_python()_motion_runtime_script()_motion_state_file()_parse_allowed_ips(raw)_pid_is_running(pid)_runtime_already_running()_start_motion_runtime()_utc_iso_from_epoch(ts_epoch)_utc_now_iso()_write_motion_state()append_motion_log(entry)build_log_entry()is_remote_addr_allowed(remote_addr)record_motion_event()surveillance_hook_allow_empty_body()surveillance_hook_allowed_ips()surveillance_hook_enabled()surveillance_hook_log_file()
Configuration & environment¶
- (no env vars detected by regex)
Dependencies (imports)¶
__future__app.core.configdatetimejsonospathlibsubprocesstimetyping
Operational notes (fill in)¶
- Headless/interactive:
- Systemd unit (if any):
- Schedules/triggers:
- Debug artifacts:
- Failure modes: