<%# Copyright 2019-2020 Michael BD7MQB This is free software, licensed under the GNU GENERAL PUBLIC LICENSE, Version 2.0 -%> <% for i, lh in ipairs(lastheard) do if not localtx and i > 20 then break end repeat if localtx and lh.source ~= "RF" then break end local loss_color, ber_color if lh.loss < 1 then loss_color = nil elseif lh.loss == 1 then loss_color = "#1d1" elseif lh.loss > 1 and lh.loss <=3 then loss_color = "#fa0" else loss_color = "#f33" end if lh.ber == 0 then ber_color = nil elseif lh.ber >= 0 and lh.ber <= 1.9 then ber_color = "#1d1" elseif lh.ber >= 2.0 and lh.ber <= 4.9 then ber_color = "#fa0" else ber_color = "#f33" end %> <% if lh.source == "RF" then %> <% else %> <% end %> <% if not lh.duration then %> <% elseif lh.duration == "SMS" then %> <% else %> <% if not loss_color then %> <% else %> <% end %> <% if not ber_color then %> <% else %> <% end %> <% end %> <% until true %> <% end %>
<%:Time%> <%:Mode%> M <%:Callsign%> <%:Target%> <%:Src%> <%:Dur%> <%:Loss%> <%:BER%>
<%=lh.timestamp%> <%=lh.mode%> <%=string.sub(lh.mode, 1, 1)%> <%=lh.callsign%> <%=lh.target%>RF<%=lh.source%>TXSMS<%=lh.duration%><%=lh.loss%>%<%=lh.loss%>%<%=lh.ber%>%<%=lh.ber%>%