BOINC calculation on custom event? API?

Message boards : Questions and problems : BOINC calculation on custom event? API?
Message board moderation

To post messages, you must log in.

AuthorMessage
User314159

Send message
Joined: 11 Jan 23
Posts: 1
Message 110906 - Posted: 11 Jan 2023, 18:13:37 UTC

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?
ID: 110906 · Report as offensive
Ian&Steve C.

Send message
Joined: 24 Dec 19
Posts: 228
United States
Message 110907 - Posted: 11 Jan 2023, 19:46:35 UTC - in response to Message 110906.  

use the boinccmd tool.

https://boinc.berkeley.edu/wiki/Boinccmd_tool

you should be able to script basically anything you want.
ID: 110907 · Report as offensive
Profile Joseph Stateson
Volunteer tester
Avatar

Send message
Joined: 27 Jun 08
Posts: 641
United States
Message 110918 - Posted: 14 Jan 2023, 15:43:46 UTC - in response to Message 110906.  

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?


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.
ID: 110918 · Report as offensive
Profile Joseph Stateson
Volunteer tester
Avatar

Send message
Joined: 27 Jun 08
Posts: 641
United States
Message 110919 - Posted: 14 Jan 2023, 17:40:51 UTC - in response to Message 110918.  


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.


For what it's worth I finally got it to work using powershell as shown here
ID: 110919 · Report as offensive

Message boards : Questions and problems : BOINC calculation on custom event? API?

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.