1 local map, section = ...
2 local utl = require "luci.util"
4 local form, ferr = loadfile(utl.libpath() .. "/model/cbi/freifunk/widgets/heightwidth.lua")
6 setfenv(form, getfenv(1))(m, wdg)
9 local url = wdg:option(Value, "url", translate("URL"))
10 url.default = "http://global.freifunk.net/rss/all/rss.xml"
12 local max = wdg:option(Value, "max", translate("Maximal entries to show"))
15 max.datatype = "integer"
17 local cache = wdg:option(Value, "cache", translate("Cache Time"), translate("Cache downloaded feed for that many seconds."))
19 cache.default = "3600"
20 cache.datatype = "integer"