8fc5414ac1c9282b354819f302a5fafa41076ff2
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / iwinfo.lua
1 -- Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 local m, s, o
5
6 m = Map("luci_statistics",
7         translate("Wireless iwinfo Plugin Configuration"),
8         translate("The iwinfo plugin collects statistics about wireless signal strength, noise and quality."))
9
10 s = m:section(NamedSection, "collectd_iwinfo", "luci_statistics")
11
12 o = s:option(Flag, "enable", translate("Enable this plugin"))
13 o.default = 0
14
15 o = s:option(Value, "Interfaces", translate("Monitor interfaces"),
16         translate("Leave unselected to automatically determine interfaces to monitor."))
17 o.template = "cbi/network_ifacelist"
18 o.widget   = "checkbox"
19 o.nocreate = true
20 o:depends("enable", 1)
21
22 o = s:option(Flag, "IgnoreSelected", translate("Monitor all except specified"))
23 o.default = 0
24 o:depends("enable", 1)
25
26 return m