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

Method initialize_epd_display

shared.py:1001–1121  ·  view source on GitHub ↗

Initialize the e-paper display.

(self)

Source from the content-addressed store, hash-verified

999 "__title_pwnagotchi__": "Pwnagotchi Integration",
1000 "pwnagotchi_installed": False,
1001 "pwnagotchi_mode": "ragnar",
1002 "pwnagotchi_manual_mode": False,
1003 "pwnagotchi_last_switch": "",
1004 "pwnagotchi_last_status": "Not installed",
1005
1006 "__title_wardriving__": "Wardriving",
1007 "wardriving_enabled": False,
1008 "wardriving_display": False,
1009 "wardriving_scan_interval": 2,
1010 "wardriving_gps_port": "auto",
1011 "wardriving_gps_baudrate": 9600,
1012 "wardriving_gps_assist": True,
1013 "wardriving_piglet_sync": True,
1014 "wardriving_gps_set_clock": True,
1015 "wardriving_interfaces": [],
1016 "wardriving_auto_export": True,
1017 "wardriving_wigle_include_zigbee": False,
1018 "wardriving_companion_roles": {},
1019 "wardriving_device_name": "",
1020 "wardriving_speed_unit": "kmh",
1021 "wardriving_on_boot": False,
1022 "piglet_core_mode": False,
1023 "piglet_core_max_nodes": 4,
1024
1025 "__title_kiosk__": "On-screen Display (Kiosk)",
1026 "kiosk_enabled": False,
1027 "kiosk_url": "http://localhost:8000",
1028 "kiosk_rotation": 0,
1029 "kiosk_hide_cursor": True,
1030 # Handheld / small-screen decks (e.g. Hackberry Pi CM5): force the
1031 # on-screen ✕ + Ctrl+Alt+Q escape hatch on (Chromium --kiosk otherwise
1032 # traps you on a keyboard with no easy Ctrl), and scale the dense
1033 # dashboard up for the square 720x720 panel. Env RAGNAR_KIOSK_EXIT /
1034 # RAGNAR_KIOSK_SCALE still override these at launch.
1035 "kiosk_handheld": False,
1036 "kiosk_scale": 1.0,
1037
1038 "__title_sdr__": "SDR / RF Waterfall",
1039 # Synthetic RF Waterfall demo. Hidden by default: the route
1040 # /demo/rf-waterfall serves a self-contained synthetic spectrum
1041 # (sub-GHz ISM + Wi-Fi bands) ONLY while this is on, so the waterfall
1042 # display can be shown with no SDR attached. 404s when off, so it
1043 # stays out of sight until deliberately switched on. Env
1044 # RAGNAR_SDR_DEMO=1 also enables it without persisting to config.
1045 "sdr_demo": False,
1046
1047 # ADS-B -> Wardrift (Aircraft Watch). The radar logs the unique
1048 # aircraft seen each UTC day; these control auto-uploading that day's
1049 # sightings to Wardrift via the signed-in account. Off by default.
1050 "adsb_wardrift_auto": False,
1051 "adsb_wardrift_interval_min": 30, # minutes between auto-uploads while receiving
1052 "wardriving_autostart_adsb": False, # start the ADS-B radar when a wardrive begins
1053 }
1054
1055 def apply_display_profile(self, epd_type=None, set_orientation_if_missing=False, persist=False):
1056 """Align reference dimensions (and optional orientation) with the chosen EPD profile."""
1057 epd_key = epd_type or self.config.get('epd_type') or DEFAULT_EPD_TYPE
1058 profile = DISPLAY_PROFILES.get(epd_key)

Callers 1

setup_environmentMethod · 0.95

Calls 11

apply_display_profileMethod · 0.95
save_configMethod · 0.95
EPDHelperClass · 0.90
normalize_rotationFunction · 0.85
infoMethod · 0.80
warningMethod · 0.80
auto_detectMethod · 0.80
init_full_updateMethod · 0.80
errorMethod · 0.80
getMethod · 0.45
getbufferMethod · 0.45

Tested by

no test coverage detected