Skip to content

elmendalerenda/raspi-alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Raspi Alarm

An alarm clock system for the raspberry pi

Features:

  • Schedule events from a Google Calendar into cron events
  • Play a song from a playlist when the alarm goes off

Installation and usage

Check the Wiki for the system requirements and their installation

  1. Clone this repository.

  2. Install the dependencies with

    $> bundle install
  3. Add the client_secret.json file that you got from Google. Check the instructions in the wiki

  4. Edit config/config.rb and set up your preferred configuration

     RaspiAlarm.configure do |config|
       config.google_client_secret_json_path = './client_secret.json'
       config.google_credentials_path = File.join('./', '.credentials', "raspi-alarm.yaml")
       config.playlist_name = 'Wake me up'
       config.calendar_check_period_in_minutes = 10
     end

5. Run the following command to finish the configuration

```bash
   $> rake setup
   ```

6. Test that everything works: Schedule any event in you calendar and a song will be played.


## Run the tests

For unit tests:
```bash
$> rake test

For all the tests including the integration tests:

$> rake all_tests

Build Status

About

An alarm clock system for the raspberry pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages