Home
NaN / SmartAlarm
smart alarm clock
root authored on 26 Apr
audio_img Added justwave 7 months ago
audio_recordings Adding directories 7 months ago
justwave Added justwave 7 months ago
tmp Adding directories 7 months ago
.gitignore fixing .gitignore 7 months ago
.gitmodules fixing justwave 7 months ago
README.md updated readme and added config.php 7 months ago
alarm.php Added justwave 7 months ago
alarm_start.sh Added justwave 7 months ago
alarm_stop.sh Added audio_img creation to alarm_stop 7 months ago
config.php testing_failed 7 months ago
README.md

SmartAlarm

Wake up with custom messages and notifications

Requirements

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

Installation and Usage

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

Features

  • Custom messages
  • Gmail number of emails and unread count
  • Weather (temp, wind speed, cloud coverage, overview)
  • Date and week no.
  • Quote of the day
  • Record microphone overnight