Auto change status and idle message based on calendar event

Hello,

We’re heavily using Talk for direct messaging between our nurses, pharmacists, doctors and others, but manually switching the status to dnd or online everyday seems complicated and people get messages outside their working hours.

I’m planning to make a python script based on the caldav api and the ocs/status api to make sure everyone get the notifications and messages only when wanted (ie. They are set to “online” only when a “working” event exist at a given time in their respective calendar), and is resting with the dnd status any other time which prevent any notifications to spawn on their devices.

Would anyone have a better idea about solving this problem?

Thanks!

1 Like