mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Sync to latest oled --fix
This commit is contained in:
parent
b82119b759
commit
1a08b09d18
27 changed files with 3536 additions and 2942 deletions
5
luci-app-ouad/luasrc/controller/oled.lua
Executable file → Normal file
5
luci-app-ouad/luasrc/controller/oled.lua
Executable file → Normal file
|
|
@ -4,6 +4,11 @@ function index()
|
|||
if not nixio.fs.access("/etc/config/oled") then
|
||||
return
|
||||
end
|
||||
local uci = require "luci.model.uci".cursor()
|
||||
local showmenu = uci:get_first("oled", "oled", "showmenu", "0")
|
||||
if showmenu == "0" then
|
||||
return
|
||||
end
|
||||
entry({"admin", "services", "oled"}, alias("admin", "services", "oled", "setting"),_("OLED"), 90).dependent = true
|
||||
entry({"admin", "services", "oled", "status"}, call("act_status"))
|
||||
entry({"admin", "services", "oled", "setting"}, cbi("oled/setting"),_("Setting"),30).leaf = true
|
||||
|
|
|
|||
3
luci-app-ouad/luasrc/model/cbi/oled/setting.lua
Executable file → Normal file
3
luci-app-ouad/luasrc/model/cbi/oled/setting.lua
Executable file → Normal file
|
|
@ -40,6 +40,9 @@ o = s:taboption("info", Flag, "date", translate("Date"), translate('Format YYYY-
|
|||
o.default=0
|
||||
o = s:taboption("info", Flag, "lanip", translate("IP"), translate("LAN IP address"))
|
||||
o.default=0
|
||||
o = s:taboption("info", Value, "ipifname", translate("which eth to monitor"))
|
||||
o:depends("lanip",'1')
|
||||
o.default='br-lan'
|
||||
o = s:taboption("info", Flag, "cputemp", translate("CPU temperature"))
|
||||
o.default=0
|
||||
o = s:taboption("info", Flag, "cpufreq", translate("CPU frequency"))
|
||||
|
|
|
|||
0
luci-app-ouad/luasrc/view/oled/status.htm
Executable file → Normal file
0
luci-app-ouad/luasrc/view/oled/status.htm
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue