View Single Post
Old 17.04.2018, 09:57
mgpai mgpai is offline
Script Master
Join Date: Sep 2013
Posts: 412

Originally Posted by FlyAway View Post
... it was just for the history of the modem turned on at night., I do not know why, sometimes download certain files at low speed and if it happens at night, with your script, the router would continue to be rekindled ...
You can use this code to control the time at which the script will run. Insert it after Line 10:

var h = new Date().getHours();
if (h < 6 || h > 20) return;

In this example the script will run only between 6 AM and 9 PM.
Reply With Quote