empwake

Yes it's finally here! EmpWake is an alarm clock for your Empeg. You set a time and when that time comes, your Empeg will play a song or playlist of your choice. Here's what it looks like on your Empeg. (It's the line at the top.)

Right now it's kind of limited because you can't save state with user apps yet. So if you set a time and you unplug your Empeg, you'll have to set it again. It does, however, let you set the default alarm time in your config.ini. For the same reason, the FID that gets played for your alarm can't be saved between reboots, although that's moot right now because I haven't implemented the UI for selecting the FID yet.

Installation:
You need to extract the archive, put the binary somewhere on your Empeg, and run it before you run your player. It should only be run once, i.e. I haven't tested what happens if you run it more than once in your init or something.

If you want to change the FID, time, and "on/off status" defaults, add the following to your config.ini:

[empwake]
active=true
time=12:34:56
fid=9100

active = whether you want the alarm to be enabled automatically on startup
time = Time the alarm gets set to (can be changed in the UI, but won't be saved.)
fid = the FID number that gets played. You've got to find the FID number for your playlists yourself. Use Hijack's web server to help you out.

Limitations:
The config.ini syntax parsing *stinks* right now so if you make any mistakes or put any garbage characters in the [empwake] section it will probably get confused. I'm doing very little checking of input at this early stage.

Anyway, after running the binary, an "EmpWake" menu option will appear in your Hijack menu. Selecting it brings up the main menu. You can turn the alarm on/off,set the alarm time (which also allows you to see the current time) or select "OK" to get back to your player. Knob rotations move the cursor and change values, knob presses select.

Here's the time setting screen:

It's really quite simple at this point. I hope it's useful for someone. Let me know what you think. BTW, This is a] binary only release right now. Too much crappy source to clean up and more features I want to implement before I call it a final release. The source will come, though.

empwake v1.0 - 46 kb gzip

History:
1.0 - Full release with source, no other changes from 0.983 0.983 - Semi-experimental relative alarm setting. When you go to set the time, you can select the "Set" label and click on it. If there's an equals sign (=) next to "Set", that means the time is absolute (like normal.) If there's a plus sign (+) next to it, the time you enter will be relative (like a countdown timer.) So you can enter "8:00:00" to have the alarm go off in 8 hours. 0.982 - Early startup crash during loadConfig() is fixed! I think! 0.981 - Yet more printf()'s. We seem to be dying in loading config.ini somewhere... 0.98 - Instrumented with lots of printf()'s to hopefully shed light on some startup problems - Corrected some UI errors in time setting (thanks Bruno) - If alarm is active, setting a new time automatically restarts alarm (this used to work but was broken in 0.97) - If fid isn't specified in config file, current song playing is used instead of playing entire player Or, in other words, the player will just hit "play" instead of selecting a fid - config.ini entries can now be commented out with ; character 0.97 - New UI for setting time. A rectangle highlights the active field (hour, minute, or second.) To accept changes, rotate the knob until the entire time is in the rectangle. To cancel, rotate the knob until the rectangle disappears then click the knob. If you've got better ideas for the UI tell me, but I kinda like this - Debug printf()'s to find where config.ini is choking - Bug fixes 0.96 - Now works when your Empeg is in standby mode 0.95 - First public alpha release


Back