You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
450 B
Lua
16 lines
450 B
Lua
1 year ago
|
|
||
|
module("luci.controller.frigate", package.seeall)
|
||
|
|
||
|
function index()
|
||
|
entry({"admin", "apps"}, firstchild(), _("Apps") , 45).dependent = false
|
||
|
if not nixio.fs.access("/etc/config/frigate") then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
local page = entry({"admin", "apps", "frigate"}, cbi("frigate"), _("frigate"))
|
||
|
page.order = 10
|
||
|
page.dependent = true
|
||
|
page.acl_depends = { "luci-app-frigate" }
|
||
|
entry({"admin","apps","frigate","status"},call("act_status")).leaf=true
|
||
|
end
|