Send a webhook when phone goes offline and when comes back online (after it being offline)

Copy from email:

“I think if you are listening and checking for heartbeat (which you probably do in order to send the offline email), then you can set status of the phone in the DB to 0 when phone goes offline “WENT_OFFLINE”.

Then when next heartbeat happens you can check if the phone previous status was 0 and if it is, trigger the “BACK_ONLINE” event and set the status to 1 in order for the next heartbeat to not trigger this event.

To be honest, WENT_OFFLINE event would be really enough for me in this moment, but it will be really useful to know when the phone comes back online again as well :)”

Looking forward to this. Thank you for your consideration. Cheers

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board

💡 Feature Request

ETA
Feb 24, 2024
Date

9 months ago

Author

Chris Petrevsky

Subscribe to post

Get notified by email when there are changes.