v:option(DummyValue,"lastseen",translate("Last Seen Timestamp"))
-- Basic
s=m:section(TypedSection,"easymesh",translate("Mesh Gateway & Node WiFi Settings"),translate("Choose Mesh Gateway or Mesh Node WiFi Settings: Begin by completing this section on your mesh server and nodes. Ensure each radio's WiFi network name is consistent. For example: easymesh_AC, easymesh_N."))
rssi_val=s:taboption("advanced",Value,"rssi_val",translate("Threshold for a good RSSI"))
rssi_val.default="-60"
--rssi_val.datatype = "range(-1,-120)"
rssi_val:depends("kvr",1)
low_rssi_val=s:taboption("advanced",Value,"low_rssi_val",translate("Threshold for a bad RSSI"))
low_rssi_val.default="-88"
--low_rssi_val.datatype = "range(-1,-120)"
low_rssi_val:depends("kvr",1)
---- Apply MESH settings
@ -204,47 +188,44 @@ o:value("node9", "node9")
o.datatype="string"
o:depends("role","off")
btnAPMode=s:taboption("apmode",Button,"_btn_apmode",translate("Join Mesh Network"),translate("WARNING: THIS WILL CHANGE THIS NODE'S IP ADDRESS, YOU WILL LOOSE ACCESS TO THIS UI"))
-- IP Mode (DHCP or Static)
ipmode=s:taboption("apmode",ListValue,"ipmode",translate("IP Mode"),translate("Choose if the node uses DHCP or a Static IP"))
ipmode:value("dhcp",translate("DHCP"))
ipmode:value("static",translate("Static"))
ipmode.default="dhcp"
ipmode:depends("role","off")
-- Static IP address
o=s:taboption("apmode",Value,"ipaddr",translate("Static IP Address"))
o.default="192.168.70.254"
o.datatype="ip4addr"
o:depends({ipmode="static",role="off"})
-- DNS (Mesh Gateway IP Address)
o=s:taboption("apmode",Value,"gatewayIP",translate("Mesh Gateway IP Address"))
btnAPMode=s:taboption("apmode",Button,"_btn_apmode",translate("Enable Dumb AP Mode"),translate("WARNING: THIS WILL CHANGE THIS NODE'S IP ADDRESS, YOU WILL LOOSE ACCESS TO THIS UI"))
functionbtnAPMode.write()
io.popen("/easymesh/easymesh.sh dumbap &")
luci.sys.call("/easymesh/dumbap.sh")
end
btnAPMode:depends("role","off")
---- ip address
--o = s:option(Value, "ipaddr", translate("Static IP Address"))
--o.default = "192.168.8.2"
--o.datatype = "ip4addr"
--o:depends("ap_mode", 1)
-- o = s:option(Value, "dns", translate("Mesh Gateway IP Address"))
-- o.default = "192.168.8.1"
-- o.datatype = "ip4addr"
-- o:depends("ap_mode", 1)
-- o = s:option(Value, "netmask", translate("IPv4 netmask"))
-- o.default = "255.255.255.0"
-- o.datatype = "ip4addr"
-- o:depends("ap_mode", 1)
-- MESH Node Control: apply mesh settings
ctrl=m:section(TypedSection,"easymesh","Click Save Then Enable or Disable Your Mesh WiFi settings")