Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Installation on Pi MusicBox
Setting up Mopidy-AlarmClock on Pi MusicBox
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.
Setting up NTP client to improve time synchronization from the Internet
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
dpkg-reconfigure tzdata and select proper time zone (otherwise alarm will start in wrong hour).