diff --git a/frontend/src/views/Dashboard.vue b/frontend/src/views/Dashboard.vue index 59c9c1c..7fabeee 100644 --- a/frontend/src/views/Dashboard.vue +++ b/frontend/src/views/Dashboard.vue @@ -3,6 +3,7 @@ import { onMounted, ref } from 'vue' import { Cpu, Inbox, MessageSquareText } from 'lucide-vue-next' import { api } from '../api' import type { Device, MessagePage } from '../api' +import { formatTime } from '../format' import { showError } from '../store' const messageCount = ref(null) @@ -60,17 +61,32 @@ onMounted(async () => { Received Device - Payload + Payload + attributes - {{ new Date(m.received_at).toLocaleString() }} + {{ formatTime(m.received_at) }} {{ m.device }} -
{{ JSON.stringify(m.payload) }}
+
+ payload +
{{ JSON.stringify(m.payload, null, 2) }}
+

+ attributes resolved as of the message's device time (apply offsets to + payload values yourself): +

+
{{ JSON.stringify(m.attributes, null, 2) }}
+