Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.
/ alarmclock Public archive

Simple google calendar based alarm clock written in node.js and intended to run on a Raspberry Pi

Notifications You must be signed in to change notification settings

Luzifer/alarmclock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The idea

Alarmclock is a node daemon intended to get events from a special "wake up calendar". All of the events in this calendar will trigger a player to start playing a random video from youtube. Those videos should directly begin with music and not with a long prelude.

The idea behind this project was born from a post on lifehacker showing a similar setup but without youtube integration and the standup meeting music project using a browser to play youtube videos at a specific time. As a Raspberry Pi has some caveats against flash (there is simply no flash) and I didn't managed to get it playing music from youtube using a browser I built in a workaround using youtube-dl and ffmpeg.

Setup

  • At first get a Raspberry Pi and some speakers connected to it using 3.5" audio jack
  • Install Raspbian "wheezy" on it
  • git clone this repository in the home directory of the pi user
  • Set up external depencies
    • Create a calendar in your Google account
    • Make this calendar global readable
    • Add some events for your alarms in the calendar
  • Configure the script by cloning settings.json.dist to settings.json and editing it
    • The calendar_id is provided by the 'calendar settings' page of google calendar
    • To get the api_key you have to create a project at Google APIs console and enable calendar-api-access for it
  • Execute the raspbian-setup.sh script to install depencies and create cron jobs, init-scripts, etc.

About

Simple google calendar based alarm clock written in node.js and intended to run on a Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published