View Single Post
Old 07-06-2012, 09:29 AM   #49
JollyRoger
Groupie
JollyRoger is on a distinguished road
 
Posts: 150
Karma: 68
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by cscat View Post
This is a very very very plain alarm clock for KT. It just adds an entry to crontab. That's it. Until someone has time to do something like geekmaster mentioned in this post, we can use this. I simply don't have time right now.
[Credits go to eureka for this post.

Alright, you can do it in two ways:
A: Use Kindle's builtin media player (benefit: reusing what's already in Kindle! drawback: rings just 10 times which you can change in alarm.sh file)
B. Use mplayer (benefit: rings until you tell it to stop via GUI Launcher. drawback: installing a piece of software you might never use!)

No matter which way you want your alarm clock, go ahead and extract alarmMP3.zip in /mnt/us/

For A:
1. Append the following line to your /etc/crontab/root
Code:
00    05        1-31    1-12        0-6     /mnt/us/opt/alarm.sh
2. Extract alarmScript.zip in /mnt/us/
3. Reboot or even better...
Spoiler:
issue killall crond in SSH


For B:
1. Get MPlayer and put in the directory /mnt/us/opt/
2. Append the following line to your /etc/crontab/root
Code:
00    05        1-31    1-12        0-6     /mnt/us/opt/mplayer/mplayer -loop 0 -volume 200 /mnt/us/music/alarm.mp3
3. Extract alarmclock.zip into /mnt/us/
4. Reboot or even better...
Spoiler:
issue killall crond and then restart framework in SSH


Spoiler:
This is syntax of crontab entries (from http://www.adminschoice.com/crontab-quick-reference):
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
This is gobbledegook for me.
I have Kindle KB, will this work for my kindle and can someone tell me how to do it please?
JollyRoger is offline   Reply With Quote