|
|
|
@ -7,7 +7,7 @@ local nodered_model = require "luci.model.nodered"
|
|
|
|
|
local m, s, o
|
|
|
|
|
|
|
|
|
|
m = taskd.docker_map("nodered", "nodered", "/usr/libexec/apps/nodered/nodered.sh",
|
|
|
|
|
translate("nodered"),
|
|
|
|
|
translate("Nodered"),
|
|
|
|
|
translate("Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.")
|
|
|
|
|
.. translate("Official website:") .. ' <a href=\"https://www.nodered.org/\" target=\"_blank\">https://www.nodered.org/</a>')
|
|
|
|
|
|
|
|
|
@ -35,8 +35,8 @@ local home = nodered_model.home()
|
|
|
|
|
o = s:option(Value, "config_path", translate("Config path").."<b>*</b>")
|
|
|
|
|
o.rmempty = false
|
|
|
|
|
o.datatype = "string"
|
|
|
|
|
o:value("/opt/docker2/compose/Config/nodered", "/opt/docker2/compose/Config/nodered")
|
|
|
|
|
o.default = "/opt/docker2/compose/Config/nodered"
|
|
|
|
|
o:value("/opt/docker2/compose/nodered", "/opt/docker2/compose/nodered")
|
|
|
|
|
o.default = "/opt/docker2/compose/nodered"
|
|
|
|
|
|
|
|
|
|
local paths, default_path = nodered_model.find_paths(blocks, home, "Configs")
|
|
|
|
|
for _, val in pairs(paths) do
|
|
|
|
|