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

Method setup_environment

shared.py:917–938  ·  view source on GitHub ↗

Setup the environment with the necessary directories and files.

(self, clear_console=False)

Source from the content-addressed store, hash-verified

915 "wardriving_interfaces": [],
916 "wardriving_auto_export": True,
917 "wardriving_wigle_include_zigbee": False,
918 "wardriving_companion_roles": {},
919 "wardriving_device_name": "",
920 "wardriving_speed_unit": "kmh",
921 "wardriving_on_boot": False,
922 "piglet_core_mode": False,
923 "piglet_core_max_nodes": 4,
924
925 "__title_kiosk__": "On-screen Display (Kiosk)",
926 "kiosk_enabled": False,
927 "kiosk_url": "http://localhost:8000",
928 "kiosk_rotation": 0,
929 "kiosk_hide_cursor": True
930 }
931
932 def apply_display_profile(self, epd_type=None, set_orientation_if_missing=False, persist=False):
933 """Align reference dimensions (and optional orientation) with the chosen EPD profile."""
934 epd_key = epd_type or self.config.get('epd_type') or DEFAULT_EPD_TYPE
935 profile = DISPLAY_PROFILES.get(epd_key)
936 if not profile:
937 logger.warning(f"Unknown EPD profile '{epd_key}' – skipping display calibration")
938 return False
939
940 changed = False
941 if self.config.get('ref_width') != profile['ref_width']:

Callers 1

__init__Method · 0.95

Calls 9

create_directoriesMethod · 0.95
save_configMethod · 0.95
generate_actions_jsonMethod · 0.95
delete_webconsolelogMethod · 0.95
initialize_csvMethod · 0.95
warningMethod · 0.80

Tested by

no test coverage detected