Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: VL on April 14, 2009, 02:28:45 PM

Title: Alarm clock feature [available as plugin ;-)]
Post by: VL on April 14, 2009, 02:28:45 PM
Hello all rockbox users and developers!

Here is what i'd like to see in rockbox:

Ability to stop playback in given time and play pre-defined music file, i.e. alarm clock.
Why? I use to sleep in transport and listen to some relax music, partitioning off
external noise. Thus i don't hear station announcements. My current solution is to
use mobile phone with a timer. But it would be so nice to wake up from sudden music
stop and sound in the ears: WAAAAAAAAAAKEEUP,MTF!!

Generally, i find it usefull to have an alaram clock application as a standard one in rockbox.
Stop-watch feature will be nice too.

So, question are:
 is it possible in rockbox to write such an application(plugin) ? i.e. does it allows some sort
of process in background that can wake up and control playback?

If you know  that such plugin exists, please link me to it. I'd write it my own, but i'm afraid i
don't have enough time to develop for rockbox... So if anybody will do it, i'll be happy ;-)



Title: Re: Alarm clock feature
Post by: pixelma on April 14, 2009, 03:44:19 PM
Some players which can be woken up from the RTC already have an alarm wake-up (e.g. some Ipod models) - and for some others there's a patch for it in the tracker (e.g. the Iriver H300). To help answering your question it would be interesting which player you are talking about exactly...
Title: Re: Alarm clock feature
Post by: Febs on April 14, 2009, 04:29:00 PM
I think what he is looking for is not something that wakes up the player, but something that plays a designated file after a certain amount of time.  I can see how this would be useful.  I know that my train ride is 28 minutes long.  I could program a specific file to play after 26 minutes to alert me that we're approaching my stop.
Title: Re: Alarm clock feature
Post by: Hillshum on April 14, 2009, 04:58:56 PM
Or if one could leave player on all night(while charging or something) and connected to speakers, something could start a certain song
Title: Re: Alarm clock feature
Post by: froggyman on April 14, 2009, 05:01:14 PM
couldnt the autoplayed file be either a playlist (.m3u) or a song?
Title: Re: Alarm clock feature
Post by: PaulJam on April 14, 2009, 05:43:26 PM
Have a look at this task that implements a similar functionality:
http://www.rockbox.org/tracker/task/8865

Stop-watch feature will be nice too.
There is already a stopwatch plugin in rockbox.
Title: Re: Alarm clock feature
Post by: VL on April 15, 2009, 01:28:15 PM
Quote
Have a look at this task that implements a similar functionality:
http://www.rockbox.org/tracker/task/8865

Great. That's what i was looking for.

I have iriver H340, will this plugin work for me?

A question about plugins: since this is a patch, am i correctly understand
that i have to prepare rockbox environment and build it myself?
Title: Re: Alarm clock feature
Post by: PaulJam on April 15, 2009, 03:24:34 PM
Yes, you'll have to compile it yourself. Instructions how to do that can be found here:
http://www.rockbox.org/twiki/bin/view/Main/DocsIndex#For_Developers

The plugin did work on my H300 when i tried it, but the task wasn't updated in a long time and there were some changes in the plugin api meanwhile, so it is likely that it won't work anymore without some modification.
If you intend to fix it you should have a look at the changes done in r19776:
http://svn.rockbox.org/viewvc.cgi?view=rev&revision=19776
Title: Re: Alarm clock feature
Post by: VL on June 19, 2009, 07:13:32 PM
Updated the plugin to work with latest rockbox, see http://www.rockbox.org/tracker/task/8865

Is it possible to include this plugin into rockbox by default?
What else should be done?
Title: Re: Alarm clock feature [available as plugin ;-)]
Post by: PaulJam on June 19, 2009, 07:46:41 PM
Well, it looks like the plugin still (mis)uses the sleep timer which seems to be not wanted.
So i guess this wont be included until this is fixed.