diff options
author | cheapie <no-email-for-you@example.com> | 2024-05-14 18:01:15 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-05-14 18:01:15 -0500 |
commit | dfcf5f322d05c8ca5e3336209c17516a1d5deba8 (patch) | |
tree | 90ca2a526378a4398c7823487393e24e2a25cd6e /mesecons.lua | |
parent | 90e7f15112f47756983e1d2013b70f78d788b3dc (diff) | |
download | celevator-dfcf5f322d05c8ca5e3336209c17516a1d5deba8.tar celevator-dfcf5f322d05c8ca5e3336209c17516a1d5deba8.tar.gz celevator-dfcf5f322d05c8ca5e3336209c17516a1d5deba8.tar.bz2 celevator-dfcf5f322d05c8ca5e3336209c17516a1d5deba8.tar.xz celevator-dfcf5f322d05c8ca5e3336209c17516a1d5deba8.zip |
Add car call security options to mesecons input modules
Diffstat (limited to 'mesecons.lua')
-rw-r--r-- | mesecons.lua | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/mesecons.lua b/mesecons.lua index bc00185..7064821 100644 --- a/mesecons.lua +++ b/mesecons.lua @@ -348,6 +348,51 @@ local inputoptions = { end, needsfloor = false, }, + { + id = "secdeny", + desc = "Lock Car Calls at Landing:", + func_on = function(controllerpos,floor) + celevator.controller.run(controllerpos,{ + type = "remotemsg", + channel = "security", + msg = { + floor = floor, + mode = "deny", + }, + }) + end, + needsfloor = true, + }, + { + id = "secauth", + desc = "Require Auth for Car Calls at Landing:", + func_on = function(controllerpos,floor) + celevator.controller.run(controllerpos,{ + type = "remotemsg", + channel = "security", + msg = { + floor = floor, + mode = "auth", + }, + }) + end, + needsfloor = true, + }, + { + id = "secallow", + desc = "Unlock Car Calls at Landing:", + func_on = function(controllerpos,floor) + celevator.controller.run(controllerpos,{ + type = "remotemsg", + channel = "security", + msg = { + floor = floor, + mode = nil, + }, + }) + end, + needsfloor = true, + }, } local dinputoptions = { |