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

Method update_mac_blacklist

shared.py:876–889  ·  view source on GitHub ↗

Update the MAC blacklist without immediate save.

(self)

Source from the content-addressed store, hash-verified

874 # signature points outside the room (hallway walk-bys, through-wall
875 # neighbours). Needs >= 3 nodes mapped with X/Y in the Settings tab;
876 # with fewer mapped it is a no-op and alerts behave as before.
877 # Permitted alert schedule (surveillance): restrict presence/motion/
878 # people phone alerts to selected weekdays + a daily time window —
879 # e.g. an office watched only on weekends, or a space only at night.
880 # OFF by default (alerts fire 24/7). Sightings are still logged
881 # outside the window; only the phone push is held. Days follow JS
882 # getDay(): 0=Sun .. 6=Sat. start==end means the whole day; start>end
883 # wraps past midnight (e.g. 22->6). Node-offline + inactivity alerts
884 # are NOT gated by this (maintenance / health, not surveillance).
885 "rusense_alert_schedule_enabled": False,
886 "rusense_alert_days": [0, 1, 2, 3, 4, 5, 6],
887 "rusense_alert_start": 0, # window start hour (local)
888 "rusense_alert_end": 0, # window end hour (local)
889 "rusense_geofence_enabled": True,
890 "rusense_node_positions": {}, # {node_id: {"x":.., "y":.., "z":..}}
891 "rusense_node_names": {}, # {node_id: "friendly name"} (used in alerts)
892 "rusense_geofence_window": 30, # RSSI samples/node (~30s @ 1Hz poll)

Callers 1

__init__Method · 0.95

Calls 4

get_raspberry_macMethod · 0.95
appendMethod · 0.80
infoMethod · 0.80
warningMethod · 0.80

Tested by

no test coverage detected