sudo ln -s /home/ubuntu/alarm/playlist.m3u /var/lib/mpd/playlists/playlist.m3u
sudo chown mpd:audio /var/lib/mpd/playlists/playlist.m3u
sudo chmod 644 /home/ubuntu/alarm/playlist.m3u
mpc clear
mpc load playlist
mpc play
- 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
sudo apt-get install alsa-utils
sudo apt-get install libasound2-dev
See https://www.npmjs.com/package/speaker.
sudo apt-get install mpd mpc
Then see /etc/mpd.conf
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