Message boards : Questions and problems : BOINC calculation on custom event? API?
Message board moderation
Author | Message |
---|---|
Send message Joined: 11 Jan 23 Posts: 1 |
Hello there, is it possible to create a custom event where a script is able to tell BOINC when to start or pause? For example if it's a cold weather... to start BOINC, but if it's not then it pauses it. Like is there some sort of API that BOINC is exposing? |
Send message Joined: 24 Dec 19 Posts: 229 |
use the boinccmd tool. https://boinc.berkeley.edu/wiki/Boinccmd_tool you should be able to script basically anything you want. |
Send message Joined: 27 Jun 08 Posts: 641 |
Hello there, As Ian&Steve C mentioned, you can use the BOINC command tool in any script. However, if you are only concerned about overheating the CPU or GPU then If running Windows, there is another option: you might consider using eFMer's tthrottle It slows down "pauses" the CPU or GPU when it detects too high a temperature. It does not control fans like MSI's Afterburner but is a good app to use as a failsafe. Your script can also be run under eFMer's boinctasks app. For example, you can set a boinctask rule to run your script when the temperature exceeds a certain value. Boinctasks can supply arguments to identify the project that is running hot and your script can handle the problem. There are also options in Boinctasks to do any of the following Allow new work No more work Resume network Resume project Run program Snooze Snooze GPU Suspend network Suspend project Suspend task based on any of the following conditions Elapsed Time CPU % Progress % Time Left Progress / min % Use Temperature Status Wall-dock Time Connection Deadline Elapsed Time CPU % Progress % Time Left Progress / min % Use Temperature Status Wall-dock Time Connection Deadline Time Left Project For example, you would select "temperature" and a value and then "Run Program" and enter the path to your script. At one time I had been sending a text message to myself if there was a problem but google made it difficult to script mail by requiring an app password for gmail. |
Send message Joined: 27 Jun 08 Posts: 641 |
For what it's worth I finally got it to work using powershell as shown here |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.