This commit is contained in:
Martin Donnelly 2017-01-07 22:44:16 +00:00
parent 2f92339a00
commit 564347a448

View File

@ -87,7 +87,8 @@ const mqttClient = function(events) {
let n;
const now = new Date;
const mod = 900000 - (now.getTime() % 900000);
//const mod = 900000 - (now.getTime() % 900000);
const mod = 120000 - (now.getTime() % 120000);
const day = now.getDay();
const daytimeLimits = {low: 27900000, high: 63000000};
const nowMS = (now.getHours() * 3600000) + (now.getMinutes() * 60000);