diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/process_put.lua | 4 | ||||
-rw-r--r-- | config/templates/polycom-template.lua | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/config/process_put.lua b/config/process_put.lua index 0194e46..83eaeb4 100644 --- a/config/process_put.lua +++ b/config/process_put.lua @@ -57,6 +57,10 @@ function process_polycom() elseif string.find(n, "24HourClock") then params.value.device.value.militarytimeenable.value = (v == "1") + -- this attribute enables local clock + elseif string.find(n, "localClockEnabled") then + params.value.device.value.clockenable.value = (v == "1") + else -- search attribute name for reg_name like "reg.1." -- and for rest like "fwdStatus" diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua index 6a874ff..e3a4313 100644 --- a/config/templates/polycom-template.lua +++ b/config/templates/polycom-template.lua @@ -21,6 +21,7 @@ timezone urldialingenable militarytimeenable + clockenable displaylang } regX (where X is a number 1-34) = { @@ -97,6 +98,8 @@ end -- apply settings in 'device' parameter above xml_attr({ 'device.net.etherModePC.set' }, '1') +xml_attr({ 'up.localClockEnabled' }, values.device.clockenable) + -- Enable 24-hour Clock Mode if values.device.militarytimeenable then xml_attr({'lcl.datetime.time.24HourClock'}, true) |