Draw standard page frame: border, title, divider, footer.
(self, draw, title, hint="K1:Home K2:Flip K3:Next K4:Rst")
| 791 | return "WiFi: Disconnected" |
| 792 | |
| 793 | except Exception as e: |
| 794 | logger.error(f"Error getting WiFi status text: {e}") |
| 795 | return "WiFi: Unknown" |
| 796 | |
| 797 | def is_manual_mode(self): |
| 798 | """Check if the ragnarorch is in manual mode.""" |
| 799 | return self.shared_data.manual_mode |
| 800 | |
| 801 | def is_interface_connected(self, interface): |
| 802 | """Check if any device is connected to the specified interface.""" |
| 803 | try: |
| 804 | result = subprocess.Popen(['ip', 'neigh', 'show', 'dev', interface], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) |
| 805 | output, error = result.communicate() |
| 806 | if result.returncode != 0: |
| 807 | logger.error(f"Error executing 'ip neigh show dev {interface}': {error}") |
| 808 | return False |
no test coverage detected