If you are on Windows you can use scheduled tasks:
https://docs.microsoft.com/en-us/windows/win32/taskschd/schtasks
Look for these options
/ET /DU /K
https://docs.microsoft.com/en-us/windows/win32/taskschd/schtasks
Look for these options
/ET /DU /K
There already are such options for time of day: -resumeat and -pauseat. For example, if your electricity is cheapest from 22:00 to 6:00 (10pm to 6am), you need to set -resumeat 22:00 -pauseat 6:00 and the miner will only mine between 22:00 and 6:00. Even better - the miner will prevent the rig from sleeping when mining, and will allow it to sleep when the mining is paused. It will also wake it up when the mining is about to resume. So, if your rig can properly sleep and resume from sleep, you can set it up to sleep after for example 10 minutes of inactivity (or even less), and it will sleep when not mining, conserving even more electricity, then wake up when it is time to resume mining.
Note that the sleep/wake up only works under Windows but pausing and resuming with -resumeat and -pauseat also work under Linux.
Note that the sleep/wake up only works under Windows but pausing and resuming with -resumeat and -pauseat also work under Linux.
Those work for time based activity but it doesn't say anything about the day. For my plan electricity is very high during the afternoon and early evening of weekdays during the summertime and very low on other times of the day, weekends, holidays, and all other seasons at any time.
If I wanted it paused during certain hours during the summer weekdays but running continuously on weekends, holidays, and the other 8 months could I schedule that?