View Single Post
  #427  
Old 17.04.2018, 08:57
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,553
Default

Quote:
Originally Posted by FlyAway View Post
... it was just for the history of the modem turned on at night. Mega.co, 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:

Code:
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