- Status Closed
- Percent Complete
- Task Type Patches
- Category Plugins
- Assigned To No-one
- Operating System All players
- Severity Low
- Priority Very Low
- Reported Version
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#6044 - New Alarm Plugin
This plugin provide alarm functionality for any player with a RTC. It cannot wake the player up from sleep, so the player must be on the whole time, and when the alarm ticks over, it starts playing music. This is useful if you connect it to external speakers and a power supply and leave it on overnight to get woken in the morning. It can ramp the volume up over a given time to wake you up more gently, and (will soon have) an adjustable snooze setting. Has only been tested on an iriver H300 at the moment, but the code should be relatively portable.
To use it, start playing the song or playlist that you want to wake up to, then start the plugin which will pause the song.
Loosely based on Ivo Burkart’s alarm.c http://www.rockbox.org/tracker/2021
2010-06-05 17:20
Reason for closing: Out of Date
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
Rockbox now has an alarm
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
The .patch file is empty…
Strange; attaching it again (well, updated a notch)
Is this available as a ‘.rock’ file?
this seems to conflict with other patches when compiling (ipod 5g, today’s cvs). it works when it is the only patch. possible patches are julius’s full screen logo, album art, bmp viewer/resize, scroll margins, button press for usb charge/disk, ipod brightness, mp4 metaparser, ipod piezo driver, pong patch, and ‘the’ folder sorting. dont have time to isolate by each one.
CC alarm.c
alarm.c:26: error: redefinition of typedef ‘time_t’ /home/Jon/rockbox/firmware/include/time.h:24: error: previous declaration of ‘ti
me_t’ was here
make[2]: *** [/home/Jon/rockbox/5gbuild/apps/plugins/alarm.o] Error 1
If it works when it’s the only patch, there is no problem with the patch. Conflicting patches is a fact of life, and each individual author should definitely not be concerned about it.
It seems the conflict is in the definition of the time_t type. At the time of writing the patch, there was no time_t defined, so I defined it. If any other package defines it, and it conflicts, you could remove the definition in the patch and see if it works (it should as long as time_t is defined as a long int). Of you could put in a #ifndef in there too…
Hi,
I download the patch file and applied it. I didn’t get the c file. I got a hunk error in sources and I fix that. But when compiling I get the following error:
alarm.c:26: error: redefinition of typedef ‘time_t’ /home/daniel/rockbox/firmware/include/time.h:24: error: previous declaration of
‘time_t’ was here
alarm.c:65: error: conflicting types for ‘format_time’ /home/daniel/rockbox/apps/misc.h:59: error: previous declaration of ‘format_time
’ was here
alarm.c:65: error: conflicting types for ‘format_time’ /home/daniel/rockbox/apps/misc.h:59: error: previous declaration of ‘format_time
’ was here
alarm.c: In function `save_settings’:
alarm.c:118: error: too many arguments to function
alarm.c: In function `alarm_options_menu’:
alarm.c:303: error: elements of array `items’ have incomplete type
alarm.c:304: warning: excess elements in struct initializer
alarm.c:304: warning: (near initialization for `items[0]’)
alarm.c:304: warning: excess elements in struct initializer
alarm.c:304: warning: (near initialization for `items[0]’)
alarm.c:305: warning: excess elements in struct initializer
alarm.c:305: warning: (near initialization for `items[1]’)
alarm.c:305: warning: excess elements in struct initializer
alarm.c:305: warning: (near initialization for `items[1]’)
alarm.c:306: warning: excess elements in struct initializer
alarm.c:306: warning: (near initialization for `items[2]’)
alarm.c:306: warning: excess elements in struct initializer
alarm.c:306: warning: (near initialization for `items[2]’)
alarm.c:307: warning: excess elements in struct initializer
alarm.c:307: warning: (near initialization for `items[3]’)
alarm.c:307: warning: excess elements in struct initializer
alarm.c:307: warning: (near initialization for `items[3]’)
alarm.c:308: warning: excess elements in struct initializer
alarm.c:308: warning: (near initialization for `items[4]’)
alarm.c:308: warning: excess elements in struct initializer
alarm.c:308: warning: (near initialization for `items[4]’)
alarm.c:303: error: storage size of ‘items’ isn’t known
alarm.c:310: error: structure has no member named `menu_init’ alarm.c:311: error: structure has no member named `menu_run’ alarm.c:312: error: structure has no member named `menu_exit’ alarm.c:303: warning: unused variable `items’ alarm.c: In function `plugin_start’:
alarm.c:363: warning: passing arg 2 of pointer to function makes pointer from in
teger without a cast
Also what should I do with the c file?
Could you please tell me how I can get this to work?
Thanks.
There is now an alarm built into rockbox. It can even wake up the player.
Fs#7814
Allows it to work on the h300. So I am not sure this patche is needed any more.
Also I think this is a bit out of date.