Set alarm to be actived periodically given by the interval.