%# 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%>