Skip to content

Control Folding@Home activity based on Swedish hourly electricity pricing

License

Notifications You must be signed in to change notification settings

ulmefors/folding-power-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

folding-power-control

Control Folding@Home activity based on Swedish hourly electricity pricing.

Install Folding@Home

Folding@Home clients are available for Linux, Mac and Windows. The script is only tested on Ubuntu but will likely work with minor tweaks on other Linux distributions and MacOS.

Linux

Python requirements

Python 3.6+

pip install -r requirements.txt

Configure

YAML values

  1. Set area applicable to your location. Choose one of the supported Swedish regions.
  2. Set price_threshold as the maximum spot price you are willing to pay. Folding@Home will pause if spot price exceeds this value.
  3. Set Folding@Home socket address and port.
  4. Set Folding@Home config_files and slots. Commands will be sent to the union of all slots found in config files and explicitly declared slots.

Automate

$ sudo touch /var/log/cron/fah-power-control.log
$ sudo chmod 777 /var/log/cron/fah-power-control.log
$ crontab -e

# m h dom mon dow command
0 * * * * /path/to/envs/bin/python /path/to/fah-power-control.py >> /var/log/cron/fah-power-control.log 2>&1

About

Control Folding@Home activity based on Swedish hourly electricity pricing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages