From 2a097b0a8c47bc75548f768eacdfcb6368a6d2a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sun, 31 Mar 2024 00:37:03 +0100 Subject: [PATCH] display OTA_STATUS msg nicely --- src/c3nav/mesh/templates/mesh/mesh_messages.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/c3nav/mesh/templates/mesh/mesh_messages.html b/src/c3nav/mesh/templates/mesh/mesh_messages.html index 2ad3ae53..321ac7df 100644 --- a/src/c3nav/mesh/templates/mesh/mesh_messages.html +++ b/src/c3nav/mesh/templates/mesh/mesh_messages.html @@ -113,6 +113,14 @@ {% endfor %} + {% elif msg.message_type == "OTA_STATUS" %} + OTA Status: {{ msg.parsed.content.status }}, + Update ID: {{ msg.parsed.content.update_id }}, + Recv Bytes: {{ msg.parsed.content.received_bytes }}, + Next Chunk: {{ msg.parsed.content.next_expected_chunk }},
+ Auto Apply: {{ msg.parsed.content.auto_apply }}, + Auto Reboot: {{ msg.parsed.content.auto_reboot }}, + {% elif msg.message_type == "LOCATE_RANGE_RESULTS" %}