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

Function _rusense_get

webapp_modern.py:824–834  ·  view source on GitHub ↗

GET JSON from the local sensing-server; None on any failure.

(path)

Source from the content-addressed store, hash-verified

822 logger.info(f"[rusense] deleted recording via fallback: {rid}")
823 return jsonify({'success': True, 'deleted': rid})
824 except OSError as exc:
825 return jsonify({'success': False, 'error': str(exc)}), 500
826
827 excluded = {'content-encoding', 'content-length', 'transfer-encoding', 'connection'}
828 headers = [(k, v) for k, v in resp.headers.items() if k.lower() not in excluded]
829 return Response(resp.content, status=resp.status_code, headers=headers)
830
831
832# ── RuSense sensing alerts (camera-free surveillance notifications) ──────────
833# A lightweight background poller that watches the sensing-server's live output
834# and fires Pushover alerts on meaningful transitions: room occupied/empty,
835# motion onset, people-count threshold crossed, and CSI node offline. Running
836# server-side means alerts fire even when nobody has the RuSense tab open.
837# Edge detection lives here; enable/per-kind/cooldown gating lives in

Callers 4

_rusense_model_activeFunction · 0.85
_rusense_check_onceFunction · 0.85
rusense_diagnosticsFunction · 0.85
rusense_calibrate_sampleFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected