George Cushen has written a rather good tutorial on creating an alarm clock using a Spotify playlist. It works on the Raspberry Pi (though any Linux-based computer running something like Ubuntu will also suffice) and involves installing several different packages and then linking an alarm scheduler to a Spotify plugin. Ingenious stuff and well worth checking out if your tastes are musical. Read more here.