Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I use my Macbook Air to wake me up in the morning using an Internet radio station of my choice? The solution should wake up the laptop from sleep and be reliable. Here's what I know:

  • Macs can be reliably woken up from suspend, by software, at a specified time.
  • There are a number of programs including the free Alarm Clock 2 as well commercial Awaken and Aurora. These have the feature of specifying an iTunes playlist, which can include radio stremas.

However, the feature of waking up to internet radio, if implemented, doesn't seem to be well tested. In my tests, Alarm Clock 2 didn't recognize the internet stream at all, while Aurora didn't manage to play the stream after waking up in the morning, the latter failure presumably being a result of the WiFi connection taking a few seconds to establish.

Waking up to internet radio seems to be an eminently useful option. Any solutions?

share|improve this question
I had the same results with Alarm Clock (it played the default alarm sound instead) and Aurora (beachball'd Playback tab). – user495470 Jul 29 '11 at 11:30

At least Aurora allows you to run an AppleScript, which could be used to play a radio stream:

set volume 1 -- 0 to 7
say "wake up"
tell application "iTunes"
    set sound volume to 40 -- 0 to 100
    -- delay 15
    play track 1 of playlist "Radios"
end tell

lsalarm — Gist

I spent the last five hours writing this shell script. It uses uses pmset schedule to wake up the computer and launchctl to start an AppleScript like the one above. (I have no shell scripting skills, so it sucks at the moment. If anyone wants to fork the gist or republish a modified version then go ahead.)

share|improve this answer
Goode idea. Coming from Unix, I didn't think of AppleScript. – loevborg Jul 29 '11 at 13:22

Try putting the internet radio station in the playlist after a few (perhaps 20 or so) 1 second "blank" tracks. You can often find these on CDs with a hidden track after a minute or so of silence. This should give your WiFi a chance to connect.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .