%# 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 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 options = utl.ubus(path[4] or params or sn , "get_configuration") if options and options.backlight21d then options = options.backlight21d end local gmod = require "luci.model.display_variables" -%> <%+header%>