mirror of
https://github.com/Rushilwiz/MMM-MinimalCOVID19.git
synced 2025-04-08 13:40:17 -04:00
15 lines
353 B
JavaScript
15 lines
353 B
JavaScript
var NodeHelper = require("node_helper")
|
|
|
|
module.exports = NodeHelper.create({
|
|
start: function() {
|
|
this.countDown = 10000000
|
|
},
|
|
socketNotificationReceived: function(notification, payload) {
|
|
switch(notification) {
|
|
case "DO_YOUR_JOB":
|
|
this.sendSocketNotification("I_DID", (this.countDown - payload))
|
|
break
|
|
}
|
|
},
|
|
})
|