Table of contents
We add an alarm skill by using our own timer node It looks the same as our timer implementation with a node. The only difference is, the word ‘Timer’ was replaced by the word ‘alarm’, and there is a change in the function ‘Switch-Case-timer’. Instead to passes the time straight to the timer node we calculate the time difference between now and when the alarm should ring. This difference is passed to the node. It will ring when the time is up.