#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
Check the Wiki for the system requirements and their installation
-
Clone this repository.
-
Install the dependencies with
$> bundle install
-
Add the
client_secret.json
file that you got from Google. Check the instructions in the wiki -
Edit
config/config.rb
and set up your preferred configurationRaspiAlarm.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