op-packages/dcc2-wiwiz/files/usr/lib/lua/luci/model/cbi/rtty.lua
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

33 lines
1022 B
Lua

m = Map("rtty", translate("Wiwiz"), translate("Remote Control (DCC2)") .." ver 1.2.6 <a href='http://www.wiwiz.com/pinpinwifi/wiwiz-ipk.htm' target='_blank'>".. translate("Readme") .."</a>")
rtty = m:section(TypedSection, "rtty", "")
enabled = rtty:option(Flag, "enabled", translate("Enable"));
enabled.optional = false
enabled.rmempty = false
id = rtty:option(Value, "id", "设备ID", translate("mac address will be Device ID if empty"));
id.optional = true
id.rmempty = false
id.addremove = false
token = rtty:option(Value, "token", translate("Token"));
token.optional = false
token.rmempty = false
description = rtty:option(Value, "description", translate("Description"));
description.optional = true
description.rmempty = false
description.addremove = false
host = rtty:option(Value, "host", translate("Server Address"));
host.optional = false
host.rmempty = false
port = rtty:option(Value, "port", translate("Server Port"));
port.optional = false
port.rmempty = false
port.default = "5912"
return m