feat: Add web simulator and enhance device status management with activate and decommission actions.

This commit is contained in:
2025-12-23 00:13:17 -05:00
parent 2f1c906853
commit a0403eef57
6 changed files with 388 additions and 20 deletions

View File

@@ -143,12 +143,13 @@ if __name__ == "__main__":
print(" 4. Switch to PROD Mode")
print(" 5. Swap Active Slot (A/B)")
print(" 6. Start Automated Loop")
print(" 7. Request Re-enlistment")
print(" 0. Exit Orchestrator")
print("-" * 45)
while True:
print_menu()
choice = input("Select operation [0-6] >> ").strip()
choice = input("Select operation [0-7] >> ").strip()
if choice == "1":
hu.register()
@@ -177,6 +178,9 @@ if __name__ == "__main__":
break
except KeyboardInterrupt:
print("\n[!] Loop interrupted by user.")
elif choice == "7":
hu.status = "PENDING"
hu.register()
elif choice == "0":
print("[*] Powering down head unit...")
break