<%# hmi.htm -%> <% ---------------------- -- Poste seleccionado ---------------------- local chp = require "luci.model.charging_points" local path = luci.dispatcher.context.requestpath local user, serialnumber, hw_model = chp.whoami(path) local fs = require "nixio.fs" local sn = path[3] -%> <%+header%>

<%:HMI%> - <%=sn%>

<% if install then %>
<% if #stdout > 0 then %>
<%=pcdata(stdout)%>
<% end %> <% if #stderr > 0 then %>
<%=pcdata(stderr)%>
<% end %>
<% end %> <% if update == "none" then %>
<%:Error, file not supported!%>
<% else %> <% if upload then %>
<%:File successfully uploaded%>
<% if update == "opk" then %>
<%:Update the operating system of your device%>
<%:Force update%>
<% end %>
<% elseif not overview then %>
<%:Unknown Error, file not uploaded!%>
<% end %> <% end %>
<%:Upload a compatible image here.%>
<%+footer%>