diff --git a/lib/mqtt/mqttClient.js b/lib/mqtt/mqttClient.js index baab881..df6a7a3 100644 --- a/lib/mqtt/mqttClient.js +++ b/lib/mqtt/mqttClient.js @@ -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);