I'm trying to work on a script to enable/disable my GPUs at some specific periods of time during the day so your remote management API is what I need but when I send this JSON:
Quote
{
"id": 0,
"jsonrpc": "2.0",
"method": "control_gpu",
"params": [
1,
0
],
"psw": "not_for_you_too_see"
}
Nothing happens, looking at the log what I see is this:"id": 0,
"jsonrpc": "2.0",
"method": "control_gpu",
"params": [
1,
0
],
"psw": "not_for_you_too_see"
}
Quote
22:02:33:223 6da1f700 srv: wrong control_gpu:params format
API.txt says:
Quote
{"id":0,"jsonrpc":"2.0","method":"control_gpu", "params":[0, 1]}
RESPONSE:
none.
COMMENTS:
first number - GPU index, or "-1" for all GPUs. Second number - new GPU state, 0 - disabled, 1 - ETH-only mode, 2 - dual mode.
RESPONSE:
none.
COMMENTS:
first number - GPU index, or "-1" for all GPUs. Second number - new GPU state, 0 - disabled, 1 - ETH-only mode, 2 - dual mode.
I fail to see the error here (My JSON is sent exactly as seen above, including newlines and spaces), the only different thing from API.txt is that I'm also sending a password. Is API.txt updated?
BTW, this is on v11.0 running on a Linux rig.