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

Function _parse_iso_timestamp

webapp_modern.py:1959–1970  ·  view source on GitHub ↗
(value: Optional[str])

Source from the content-addressed store, hash-verified

1957 p_rose = new_state and not prev_state
1958 p_fell = prev_state and not new_state
1959 # Motion / people keep the confidence-gated debounce — confidence is
1960 # reliable for a MOVING person (~1.0), which is what these fire on.
1961 m_rose, _m_fell = _rusense_debounce('motion', motion_active if confident else None, now, sustain)
1962 o_rose, _o_fell = _rusense_debounce('people', people_over if confident else None, now, sustain)
1963
1964 if (p_rose or m_rose or o_rose) and block_motion:
1965 logger.info(f"[rusense] geofence suppressed alert — {verdict.get('reason')} "
1966 f"(hot={verdict.get('hot_count')}, total={verdict.get('total')})")
1967
1968 vitals = latest.get('vital_signs') if isinstance(latest, dict) else None
1969 # Health trending: every pass feeds the vitals/activity history
1970 # (confident HR/BR + raw presence duty), independent of alerts.
1971 _rusense_vitals_record(now, vitals, present)
1972 # Sighting lifecycle with a grace window (deferred close): a brief
1973 # presence fall does NOT close the episode immediately — it is held

Callers 1

_build_pwnagotchi_statusFunction · 0.85

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected