Logic Machine Forum
allert manager ack user - 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: allert manager ack user (/showthread.php?tid=3119)



allert manager ack user - Frank68 - 22.01.2021

Hello

I would like to know if it is possible to write the user who reset the alarm in the LM log.

Thanks

BR


RE: allert manager ack user - Erwin van der Zwart - 22.01.2021

Not implemented


RE: allert manager ack user - admin - 22.01.2021

For this to work a completely separate app must be developed as this functionality is not available for built-in alerts.


RE: allert manager ack user - Frank68 - 22.01.2021

OK, since in the event of an alarm, an event is triggered when it returns to 0 can I retrieve the logged in user name and write it to the log from a script?


RE: allert manager ack user - admin - 22.01.2021

In recent firmwares there's an event.meta field which contains the sending user name if an event was triggered by the user.
Code:
user = event.meta
log(user)



RE: allert manager ack user - Erwin van der Zwart - 22.01.2021

Acknowledge an alarm in the alarm manager is not reseting the alarm state that triggered the event, it just mutes the audio and adds a timestamp in the memory to make it listen again to alarms with newer timestamps so you won't have any object action on the server when a user press the acknowledge button..

The only thing the client does in the background is updating a dataset in the storage that is specific for that client IP ..


RE: allert manager ack user - Frank68 - 22.01.2021

(22.01.2021, 08:57)Erwin van der Zwart Wrote: Acknowledge an alarm in the alarm manager is not reseting the alarm state that triggered the event, it just mutes the audio and adds a timestamp in the memory to make it listen again to alarms with newer timestamps so you won't have any object action on the server when a user press the acknowledge button..

The only thing the client does in the background is updating a dataset in the storage that is specific for that client IP ..

If I wanted to be able to log which user has recognized the alarm, what can I do?
I should write a log in the LM
user logged in and alarm silenced and timestamp.
Is there any way to do this?

Thanks


RE: allert manager ack user - Erwin van der Zwart - 23.01.2021

Not without an modification in the alert manager..