Setup the environment with the necessary directories and files.
(self, clear_console=False)
| 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']: |
no test coverage detected