Remote Debug Log Viewer

Stream live debug logs from terminal over MQTT

<%= if @remote_connected, do: "Connected", else: "Disconnected" %>
<%= if @remote_connected do %> <% else %> <% end %>
<%= if @selected_terminal do %>
Serial Number: <%= @selected_terminal.serial_number %>
Product Key: pFppbioOCKlo5c8E
<% end %>
<%= if @remote_connected do %>

Logging Mode

<%= if @remote_logging do %>
Logging in <%= @remote_mode || "REALTIME" %> mode
<% else %> <% end %>
<% end %>

Debug Logs

<%= @remote_log_count %> / 1000 lines
<%= if @remote_logging do %>
Live streaming...
<% end %>
<%= if @remote_log_count > 0 do %>
<%= for log <- Enum.reverse(@remote_logs) do %>
<%= case DateTime.from_iso8601(log.timestamp) do {:ok, dt, _} -> dt |> DateTime.to_time() |> Time.to_string() |> String.slice(0, 8) _ -> log.timestamp |> String.slice(0, 8) end %>
<%= log.message %>
<% end %>
<% else %>

No logs available

<%= if @remote_connected do %> Start logging to view debug messages from the terminal <% else %> Connect to the terminal to start viewing logs <% end %>

<% end %>