Delay SMS notification from Event Handler
-
Hi all,
I have configured the event handler to send email and SMS notification when the generator has low fuel.
It appears there was a low fuel event at 21/02 00:46 in which the email notification was sent.
However the text message may have only been sent out ~48 hours later, on the morning of 23/02.How do I fix this delay issue? Or is this an issue from the SMS provider?
Thanks,
Ryan -
Hi @ryanlo I'd suggest testing the logic yourself with a virtual datapoint as the trigger. Set the virtual point from the data point details page and wait to see if anything comes through in a timely manner. If it doesn't, check your event handler to see how long it expects the value to breach the limits defined before firing the event handler. Try and log as much as you can, then watch to confirm in the logs (even via the console is fine: sudo tail -f /opt/mango-data/logs/ma.log or whatever the datasource log file is called).
Should you see the change firing the event then you know it's the cell provider. However if you set the value and nothing happens, best to find out if there's something else like a script in between generating your delay... Let me know what you findFox
-
@ryanlo the other thing you could do, if you think its the SMS relay then add another reliable email address to the handler so it send the message to multiple addresses. If the SMS address is delayed but the other one (gmail or something) gets it almost immediately you will know its the relay and not Mango.
-