Smart alarm clock

root authored on 7 May 2019
audio_img Initial commit 4 years ago
audio_recordings Initial commit 4 years ago
tmp Initial commit 4 years ago
README.md Initial commit 4 years ago
alarm.php Initial commit 4 years ago
alarm_start.sh Initial commit 4 years ago
alarm_stop.sh Initial commit 4 years ago
config.php Initial commit 4 years 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