Building a smart internet-of-things alarm clock.