Logic Machine Forum
User Access Control: cloud sync - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11)
+--- Thread: User Access Control: cloud sync (/showthread.php?tid=5944)



User Access Control: cloud sync - Domoticatorino - 25.03.2025

Hi everybody,
everytime customer updates his "user control access" for new guests, he must open "LM Cloud APP" to sync the cloud to enable the new guests.

Is there a way to sync the cloud in auto mode when "user control access" is saved?

Thanks.

BR


RE: User Access Control: cloud sync - admin - 28.03.2025

Resident script with 0 sleep time. It will execute full cloud sync when user access is changed and partial cloud sync is performed.
Code:
lb = require('localbus')
client = lb.new()
client:sethandler('reload', function(which)
  if which == 'cloud-sync-users' then
    lb.send({
      action = 'reload',
      which = 'cloud-sync'
    })
  end
end)

while true do
  client:step()
end