nanopool / nanominer

Nanominer is a versatile tool for mining cryptocurrencies on GPUs and CPUs.
https://nanominer.org
631 stars 350 forks source link

Only run during some hours #281

Open gabrielklein opened 2 years ago

gabrielklein commented 2 years ago

Hi, It would be great to have a parameter to run nanominer only during some hours. A simple way to only run it when the cost of energy is lower.

Example I want to run it during the night and weekend --start "0 21 " << Starts at 9pm every day. --stop "0 8 * 1-5" << Stops every days of the week at 8 am

It's similar to a "crontab" on linux

or a bit more complex --action "0 21 , on" : Switch it on --action "0 8 1-5, off" : Switch it off --action "0 4 , powerLimits=50" : Run it at 50% starting 4am --action "0 8 *, powerLimits=100" : Run it at 100% starting 8am