Link Search Menu Expand Document Moon Sun
Table of contents
  1. AlarmNodes


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.

Timer with node small-timer