I'm writing python script to check whether pc is running on UPS or not and based on that, control GPUs mining(to extend time running on battery).
I've found a small bug in Remote Management API documentation:
{"id":0,"jsonrpc":"2.0","method":"control_gpu", "params":[0, 1]}
Should be:
{"id":0,"jsonrpc":"2.0","method":"control_gpu", "params":["0", "1"]}