Develop a script in VBS, 32 bits, with probable access via XMLHTTP to obtain information from BITMAN ANTMINER S9 Series equipment and others.
The Script must be built in PURE TEXT, VB language and be a CSCRIPT script to be executed in command prompt.
It will be integrated into an existing system by another team, so variable declarations should be easy and every return sent to an Array.
Below are examples for the methods:
Put: [login to view URL] ip="ip" admin="user" password="passwd"
- Order return values in Array
rashrate0 'if 3 hasrate, if 4 rashare add rasrate3 and more.
fan0 'if 3 fan, if 4 fans add fan3 and more.
Post for change config
Configs of the change:
Put: [login to view URL] ip="ip" admin="user" password="passwd" "type=configuration" pool0="" worker0="" (all pools and works...) reboot="yes" stop="yes" start="yes"
OBS: you can put all the commands or just what you want to change. Missing or null-valued instruction should not be considered.
Development time 3 days.