diff --git a/widgets/README.md b/widgets/README.md new file mode 100644 index 0000000..07c29f9 --- /dev/null +++ b/widgets/README.md @@ -0,0 +1,38 @@ +# Argonaut 3 — Cockpit DIY Widgets + +## How to install a widget + +1. Open Cockpit in your browser +2. Enter edit mode (pencil icon, top right) +3. Click **Add Widget** at the bottom of the screen +4. Scroll right to find the `` DIY widget — drag it onto the view +5. Click the **gear icon** on the widget to open the editor +6. Click **Import** and select the `.html` file for the widget you want +7. The widget will load immediately + +## Widget index + +| File | Widget | Notes | +|---|---|---| +| w0_data_lake_inspector.html | Data Lake Inspector | Diagnostic — shows all data lake variables. Not production. | +| w1_system_health_indicator.html | System Health Indicator | Traffic light GREEN/AMBER/RED. Reads rov_failsafe from data lake. | +| w2_mission_status.html | Mission Status | Progress bar + state. Reads rov_mission_state and rov_mission_progress. | +| w3_abort_button.html | Abort Button | Confirm dialog → POST /abort to FastAPI. Edit FASTAPI_HOST before use. | +| w4_mission_setup_button.html | Mission Setup Button | Opens setup page in new tab. Edit SETUP_URL before use. | +| w5_battery_return_budget.html | Return Budget | Headroom warning. Reads SYS_STATUS/battery_remaining (native) + rov_return_budget. | + +## Config values to edit before field use + +In `w3_abort_button.html`: + +``` +const FASTAPI_HOST = 'http://blueos.local:8081'; +``` + +In `w4_mission_setup_button.html`: + +``` +const SETUP_URL = 'http://blueos.local:8081/setup'; +``` + +Both values are correct for real hardware. For dev VM, use the VM's Tailscale IP instead of `blueos.local`. diff --git a/widgets/w0_data_lake_inspector.html b/widgets/w0_data_lake_inspector.html new file mode 100644 index 0000000..5ac7b14 --- /dev/null +++ b/widgets/w0_data_lake_inspector.html @@ -0,0 +1,344 @@ + + + + + + + + + + +
+ + + + + + + + + + + +
VariableTypeValue
+ +
+ + + + diff --git a/widgets/w1_system_health_indicator.html b/widgets/w1_system_health_indicator.html new file mode 100644 index 0000000..82c8b90 --- /dev/null +++ b/widgets/w1_system_health_indicator.html @@ -0,0 +1,288 @@ + + + + + + + +
+ +
+
+ Green +
+ +
+
+ Amber +
+ +
+
+ Red +
+ +
+ + +
Connecting…
+ + + + + + + diff --git a/widgets/w2_mission_status.html b/widgets/w2_mission_status.html new file mode 100644 index 0000000..6f5d11f --- /dev/null +++ b/widgets/w2_mission_status.html @@ -0,0 +1,230 @@ + + + + + + +
+ +
+
+
+ +
—%
+ +
Waypoint: —
+ + + + + + diff --git a/widgets/w3_abort_button.html b/widgets/w3_abort_button.html new file mode 100644 index 0000000..f6af9be --- /dev/null +++ b/widgets/w3_abort_button.html @@ -0,0 +1,303 @@ + + + + + + + + + + +
Standby
+ + +
+
+

Abort mission?
Vehicle will hold position
and await instruction.

+
+ + +
+
+
+
+ + + + diff --git a/widgets/w4_mission_setup_button.html b/widgets/w4_mission_setup_button.html new file mode 100644 index 0000000..ace1fcd --- /dev/null +++ b/widgets/w4_mission_setup_button.html @@ -0,0 +1,176 @@ + + + + + + + +
+ + + + diff --git a/widgets/w5_battery_return_budget.html b/widgets/w5_battery_return_budget.html new file mode 100644 index 0000000..08da13a --- /dev/null +++ b/widgets/w5_battery_return_budget.html @@ -0,0 +1,270 @@ + + + + + + + +
+
+
+
+
--%
+
+ + +
+ Return budget: --% required +
+ + +
Headroom: --
+ + + + + + +