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

Method get_raspberry_mac

shared.py:893–913  ·  view source on GitHub ↗

Get the MAC address of the primary network interface (usually wlan0 or eth0).

(self)

Source from the content-addressed store, hash-verified

891 # OFF by default (alerts fire 24/7). Sightings are still logged
892 # outside the window; only the phone push is held. Days follow JS
893 # getDay(): 0=Sun .. 6=Sat. start==end means the whole day; start>end
894 # wraps past midnight (e.g. 22->6). Node-offline + inactivity alerts
895 # are NOT gated by this (maintenance / health, not surveillance).
896 "rusense_alert_schedule_enabled": False,
897 "rusense_alert_days": [0, 1, 2, 3, 4, 5, 6],
898 "rusense_alert_start": 0, # window start hour (local)
899 "rusense_alert_end": 0, # window end hour (local)
900 "rusense_geofence_enabled": True,
901 "rusense_node_positions": {}, # {node_id: {"x":.., "y":.., "z":..}}
902 "rusense_node_names": {}, # {node_id: "friendly name"} (used in alerts)
903 "rusense_geofence_window": 30, # RSSI samples/node (~30s @ 1Hz poll)
904 # Show the RuSense tab in the top navigation. Stored server-side so
905 # the choice is shared across every browser/device, like the rest of
906 # the settings here (the toggle lives in Config -> WiFi Sensing).
907 "rusense_tab_visible": False,
908 # Visual/scene settings for the 3D Observatory (rendering, wireframe,
909 # scene, room size, node map). Mirrored here from the browser so they
910 # persist for everyone; shape: {"version": <str>, "settings": {...}}.
911 "rusense_observatory_settings": {},
912
913 "__title_pwnagotchi__": "Pwnagotchi Integration",
914 "pwnagotchi_installed": False,
915 "pwnagotchi_mode": "ragnar",
916 "pwnagotchi_manual_mode": False,

Callers 1

update_mac_blacklistMethod · 0.95

Calls 3

warningMethod · 0.80
errorMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected