iwinfo.lua 831 B

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