<%# hmi.htm -%> <% ---------------------- -- Poste seleccionado ---------------------- local path = luci.dispatcher.context.requestpath local fs = require "nixio.fs" local cl = path[1] local utl = require "luci.util" local mUtl = require "luci.moreUtils" local countries = require "luci.model.countries" local sn = mUtl.get_serialnumber() if params and params.pdr then params = params.pdr end local master = mUtl.identify_pseudo_maestre(path[4] or sn) local method if master == true then method = "geolocationd" else method = (path[4] or sn).. "/geolocationd" end local options = utl.ubus(method , "info") local gmod = require "luci.model.geolocationd_variables" -%> <%+header%>

<%=translate("Geolocation")%> - <%=path[4] or params or sn%>

<%:Configure charging coordinates%>
<%:Here you can configure the latitude and longitude of the charging point.%>
<%if options ~= nil then %> <% for k , v in pairs(gmod.textValues) do %> <%for z , t in pairs (v) do %>
<%end%> <%end%>
" onclick="check_coordinates()"/>

<%else%>
<%:Geolocation is not working currently%>
<%end%>
<%+footer%>