sebastiaanluca / alarmclock

NodeJS alarm clock for the Raspberry Pi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alarm Clock

TODO

  • Check if Node setTimeOut() bug was solved and KeepAwake is no longer required
  • Exit process every ~2 days at night so Supervisor can restart it and it's refreshed
  • Read time twice daily from Google calendar

Requirements

Node

Yarn

Amixer

sudo apt-get install alsa-utils

Sound dev packages

sudo apt-get install libasound2-dev

See https://www.npmjs.com/package/speaker.

Music Player Daemon

https://www.musicpd.org/

sudo apt-get install mpd mpc

Then see /etc/mpd.conf

Supervisor

sudo apt-get install supervisor

sudo ln -nfs /home/pi/alarm-clock/supervisord.conf /etc/supervisor/conf.d/alarm.conf

sudo supervisorctl reread && sudo supervisorctl update

References

About

NodeJS alarm clock for the Raspberry Pi.

License:MIT License


Languages

Language:JavaScript 81.8%Language:Python 11.3%Language:Shell 7.0%