The application provides a web management tool enabling alarm scheduling for a school. It is designed for a raspberry PI machine.
The following command 'git clone' creates a directory with the name "seralarm" and copy all files from the github into the directory.
git clone git://github.com/domch/seralarm
npm installIf you encountter any problem with installing lame or speaker (which have to be compiled for the target system), you can simply install them with following shell commands.
sudo apt-get install libasound2-dev
sudo npm install --unsafe-perm -g speaker
sudo npm install --unsafe-perm -g lameThe application runs on the port 8000. There are two servers up and running: Express (for static assets) and Socket.io. A friendly advice: Use PM2 for process monitoring!
node server.jsThe sound file is located under the project root '/sound/sound.mp3'. It can be replaced with any '.mp3' file.