MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _systemctl_check

Function _systemctl_check

webapp_modern.py:1995–2003  ·  view source on GitHub ↗
(command: list[str])

Source from the content-addressed store, hash-verified

1993 f"\U0001F441️ {who} detected — a monitored space is now occupied.",
1994 title="RuSense — Presence", priority=1)
1995 # Log the sighting whether or not the phone alert fired, so it
1996 # stays reviewable (geofence walk-by is not logged).
1997 _rusense_open_sighting(now, conf, people, cls.get('motion_level'), vitals)
1998 elif p_fell:
1999 # Defer the close; finalized below if no re-entry within the window.
2000 _rusense_notify_state['pending_close_ts'] = (
2001 now if _rusense_notify_state.get('open_sighting') is not None else None)
2002
2003 # Finalize a deferred close once the grace window elapses with no re-entry.
2004 pending = _rusense_notify_state.get('pending_close_ts')
2005 if pending is not None and (now - pending) > _RUSENSE_SIGHTING_MERGE_S:
2006 if alerts_now:

Callers 1

_build_pwnagotchi_statusFunction · 0.85

Calls 3

warningMethod · 0.80
debugMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected