-
Notifications
You must be signed in to change notification settings - Fork 14
Installation on Pi MusicBox
Dāvis Mošenkovs edited this page May 4, 2015
·
1 revision
Warning! Mopidy-AlarmClock is not supported by authors of Pi MusicBox.
Setting up alarm clock is divided into several steps. Steps should be made in sequence they are mentioned. To set up alarm clock SSH must be enabled.
To set up NTP client (and configure Monit to monitor it) invoke the following commands (one by one):
apt-get -y install ntp
echo -e "check process ntpd with pidfile /var/run/ntpd.pid\n start program = \"/etc/init.d/ntp start\"\n stop program = \"/etc/init.d/ntp stop\"\n restart program = \"/etc/init.d/ntp restart\"\n if failed host 127.0.0.1 port 123 type udp for 2 cycles then restart" > /etc/monit/monitrc.d/ntp
ln -s /etc/monit/monitrc.d/ntp /etc/monit/conf.d/ntp
Invoke command dpkg-reconfigure tzdata
and select proper time zone (otherwise alarm will start in wrong hour).
- Install Mopidy-AlarmClock by running command
pip install Mopidy-AlarmClock
- Reboot (by using web interface or running command
shutdown -r now
) - Open /alarmclock URL on Pi MusicBox (e.g. http://musicbox.local/alarmclock/) to use Alarm Clock