From a2a2df6855e94dc9bb6a69dce9c6e8b914be3a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 29 Mar 2024 17:28:52 +0100 Subject: [PATCH] more .parsed.content. --- .../mesh/templates/mesh/mesh_messages.html | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/c3nav/mesh/templates/mesh/mesh_messages.html b/src/c3nav/mesh/templates/mesh/mesh_messages.html index 633cadcc..c5dc3332 100644 --- a/src/c3nav/mesh/templates/mesh/mesh_messages.html +++ b/src/c3nav/mesh/templates/mesh/mesh_messages.html @@ -56,19 +56,19 @@ {% if msg.message_type == "CONFIG_HARDWARE" %} - Chip: {{ msg.parsed.chip.pretty_name }} rev{{ msg.parsed.revision_major }}.{{ msg.parsed.revision_minor }} + Chip: {{ msg.parsed.content.chip.pretty_name }} rev{{ msg.parsed.content.revision_major }}.{{ msg.parsed.content.revision_minor }} {% elif msg.message_type == "CONFIG_BOARD" %} - Board: {{ msg.parsed.board_config.board.pretty_name }} + Board: {{ msg.parsed.content.board_config.board.pretty_name }} - {% if msg.parsed.led %} + {% if msg.parsed.content.led %}
- Status LED: {{ msg.parsed.led }} + Status LED: {{ msg.parsed.content.led }} {% endif %} - {% if msg.parsed.uwb %} + {% if msg.parsed.content.uwb %}
- UWB: {{ msg.parsed.led }} + UWB: {{ msg.parsed.content.led }} {% endif %} {% elif msg.message_type == "CONFIG_FIRMWARE" %} @@ -79,24 +79,24 @@ SHA256: {{ msg.parsed.content.app_desc.app_elf_sha256 }} {% elif msg.message_type == "CONFIG_UPLINK" %} - Enabled: {{ msg.parsed.enabled }}, - SSID: {{ msg.parsed.ssid }}, - Channel: {{ msg.parsed.channel }}
- Host: {{ msg.parsed.host }}, - Port: {{ msg.parsed.port }}, - UDP: {{ msg.parsed.udp }}, - SSL: {{ msg.parsed.ssl }} + Enabled: {{ msg.parsed.content.enabled }}, + SSID: {{ msg.parsed.content.ssid }}, + Channel: {{ msg.parsed.content.channel }}
+ Host: {{ msg.parsed.content.host }}, + Port: {{ msg.parsed.content.port }}, + UDP: {{ msg.parsed.content.udp }}, + SSL: {{ msg.parsed.content.ssl }} {% elif msg.message_type == "CONFIG_LED" %} LED config: {{ msg.parsed.led_config }} {% elif msg.message_type == "CONFIG_POSITION" %} - X={{ msg.parsed.x_pos }}, Y={{ msg.parsed.y_pos }}, Z={{ msg.parsed.z_pos }} + X={{ msg.parsed.content.x_pos }}, Y={{ msg.parsed.content.y_pos }}, Z={{ msg.parsed.content.z_pos }} {% elif msg.message_type == "MESH_ADD_DESTINATIONS" or msg.message_type == "MESH_REMOVE_DESTINATIONS" %} adresses:
@@ -108,7 +108,7 @@ RSSI distance - {% for entry in msg.parsed.ranges %} + {% for entry in msg.parsed.content.ranges %} {% mesh_node entry.peer %} {{ entry.rssi }} @@ -124,7 +124,7 @@ {% elif msg.message_type == "LOCATE_RAW_FTM_RESULTS" %} -

peer: {% mesh_node msg.parsed.peer %}

+

peer: {% mesh_node msg.parsed.content.peer %}

@@ -135,7 +135,7 @@ - {% for entry in msg.parsed.results %} + {% for entry in msg.parsed.content.results %}
tokent3 t4
{{ entry.dlog_token }} {{ entry.rssi }}