Smart alarm clock
audio_img | 5 years ago | ||
audio_recordings | 5 years ago | ||
tmp | 5 years ago | ||
README.md | 5 years ago | ||
alarm.php | 5 years ago | ||
alarm_start.sh | 5 years ago | ||
alarm_stop.sh | 5 years ago | ||
config.php | 5 years ago |
Wake up with custom messages and notifications
festival, php5, php5-imap, alarm of your choice (I use alarm-clock-applet)
$> apt-get install festival php5 php-imap alarm-clock-applet $> php5enmod imap
git clone the repo, update submodules and make executable:
cd /opt git pull http://swin.es/g/git/NaN/SmartAlarm.git cd SmartAlarm git pull && git submodule init && git submodule update && git submodule status chmod +x ./alarm.php
Modify config.php to contain your API keys, settings etc.
Add custom command to your alarm program (alarm-clock-applet) to launch SmartAlarm stop script. eg.
konsole -e "/opt/SmartAlarm/alarm_stop.sh"
Add command to launch alarm before sleeping (I use gpodder) so under "podcast"->"preferences" set "audio player" to:
/opt/SmartAlarm/alarm_start.sh %U