Post
Topic
Board Mining (Altcoins)
Re: [Awesome Miner] - Powerful Windows GUI to manage and monitor up to 10000 miners
by
Finnsk3
on 14/07/2018, 09:35:20 UTC
First, you have a very nice looking website there! Kudos!

Second, I'm not a programmer, so more of a copy paster and just trial & error experiment. But I do use Excel VBA to make api calls to initiate actions (rules) on miners

The call section looks like this:

Code:
URLConcat = "http://mypc:17790/api/miners/" & Cells(2, 1).Value & "?action=rule&rule_id=9"

Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")
objHTTP.Open "POST", URLConcat, False
objHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objHTTP.send ("")

Don't know how it could help by much, but to answer your question, yes, I have been able to perform actions via the API without issues.

Cheers

You are a life saver, adding Content-Type to the request header sorted it out.
For those using curl or PHP:
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));

Here is my completed code, now my wife can use her PC with out having to worry about stopping the miner. (She has 2x 10080tis in her rig)
https://pastebin.com/30c9LKdj