diff options
Diffstat (limited to 'applications/luci-app-ledtrig-rssi')
-rw-r--r-- | applications/luci-app-ledtrig-rssi/Makefile | 16 | ||||
-rw-r--r-- | applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js | 38 |
2 files changed, 54 insertions, 0 deletions
diff --git a/applications/luci-app-ledtrig-rssi/Makefile b/applications/luci-app-ledtrig-rssi/Makefile new file mode 100644 index 000000000..b3be2065c --- /dev/null +++ b/applications/luci-app-ledtrig-rssi/Makefile @@ -0,0 +1,16 @@ +# +# Copyright (C) 2020 TDT AG <development@tdt.de> +# +# This is free software, licensed under the Apache License Version 2.0. +# See https://www.apache.org/licenses/LICENSE-2.0 for more information. +# + +include $(TOPDIR)/rules.mk + +LUCI_TITLE:= LuCI Support for ledtrigger rssi +LUCI_DEPENDS:=+rssileds +LUCI_PKGARCH:=all + +include ../../luci.mk + +# call BuildPackage - OpenWrt buildroot signature diff --git a/applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js b/applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js new file mode 100644 index 000000000..611adc8b1 --- /dev/null +++ b/applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js @@ -0,0 +1,38 @@ +'use strict'; +'require form'; +'require tools.widgets as widgets'; + +return L.Class.extend({ + trigger: _('rssi (service)'), + kernel: false, + addFormOptions(s){ + var o; + + o = s.option(widgets.DeviceSelect, '_rssi_iface', _('Device')); + o.rmempty = true; + o.ucioption = 'iface'; + o.modalonly = true; + o.noaliases = true; + o.depends('trigger', 'rssi'); + + o = s.option(form.Value, 'minq', _('Minimal quality')); + o.rmempty = true; + o.modalonly = true; + o.depends('trigger', 'rssi'); + + o = s.option(form.Value, 'maxq', _('Maximal quality')); + o.rmempty = true; + o.modalonly = true; + o.depends('trigger', 'rssi'); + + o = s.option(form.Value, 'offset', _('Value offset')); + o.rmempty = true; + o.modalonly = true; + o.depends('trigger', 'rssi'); + + o = s.option(form.Value, 'factor', _('Multiplication factor')); + o.rmempty = true; + o.modalonly = true; + o.depends('trigger', 'rssi'); + } +}); |