Alarm Class
AlarmJS, an alaram clock for Node.js and the command line.
Constructor
Alarm
(
Object
public
-
config
Parameters:
-
configObjectA config object
-
[file=asset/alarm.mp3]String optionalA path to a MP3 file to be player
-
hourNumberThe hour when the alarm will go on
-
[minutes=0]Number optionalThe minutes where the alarm will go on
-
[seconds=0]Number optionalThe seconds where the alarm will go on
-
Returns:
Object:
An event emitter
Example:
var alarm = require('alarmjs');
var a = new alarm({
file : 'musics/AC_DC/TNT.mp3',
hour : 8,
minutes : 34,
seconds : 30
});
