pyasic
BOSMinerRPCAPI
Bases: BaseMinerRPCAPI
An abstraction of the BOSMiner API.
Each method corresponds to an API command in BOSMiner.
This class abstracts use of the BOSMiner API, as well as the
methods for sending commands to it. The self.send_command()
function handles sending a command to the miner asynchronously, and
as such is the base for many of the functions in this class, which
rely on it to send the command for them.
Source code in pyasic/rpc/bosminer.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
|
asc(n)
async
Get data for ASC device n.
Expand
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n
|
int
|
The device to get data for. |
required |
Returns:
Type | Description |
---|---|
dict
|
The data for ASC device n. |
Source code in pyasic/rpc/bosminer.py
asccount()
async
Get data on the number of ASC devices and their info.
Expand
Returns:
Type | Description |
---|---|
dict
|
Data on all ASC devices. |
check(command)
async
Check if the command command
exists in BOSMiner.
Expand
Parameters:
Name | Type | Description | Default |
---|---|---|---|
command
|
str
|
The command to check. |
required |
Returns:
Type | Description |
---|---|
dict
|
Information about a command:
|
Source code in pyasic/rpc/bosminer.py
coin()
async
Get information on the current coin.
Expand
Returns:
Type | Description |
---|---|
dict
|
Information about the current coin being mined:
|
Source code in pyasic/rpc/bosminer.py
devdetails()
async
Get data on all devices with their static details.
Expand
Returns:
Type | Description |
---|---|
dict
|
Data on all devices with their static details. |
Source code in pyasic/rpc/bosminer.py
devs()
async
Get data on each PGA/ASC with their details.
Expand
Returns:
Type | Description |
---|---|
dict
|
Data on each PGA/ASC with their details. |
edevs(old=False)
async
Get data on each PGA/ASC with their details, ignoring blacklisted and zombie devices.
Expand
Parameters:
Name | Type | Description | Default |
---|---|---|---|
old
|
bool
|
Include zombie devices that became zombies less than 'old' seconds ago |
False
|
Returns:
Type | Description |
---|---|
dict
|
Data on each PGA/ASC with their details. |
Source code in pyasic/rpc/bosminer.py
estats(old=False)
async
Get stats of each device/pool with more than 1 getwork, ignoring zombie devices.
Expand
Parameters:
Name | Type | Description | Default |
---|---|---|---|
old
|
bool
|
Include zombie devices that became zombies less than 'old' seconds ago. |
False
|
Returns:
Type | Description |
---|---|
dict
|
Stats of each device/pool with more than 1 getwork, ignoring zombie devices. |
Source code in pyasic/rpc/bosminer.py
fans()
async
Get fan data.
Expand
Returns:
Type | Description |
---|---|
dict
|
Data on the fans of the miner. |
lcd()
async
Get a general all-in-one status summary of the miner.
Expand
Returns:
Type | Description |
---|---|
dict
|
An all-in-one status summary of the miner. |
Source code in pyasic/rpc/bosminer.py
pause()
async
Pause mining.
Expand
Returns:
Type | Description |
---|---|
dict
|
Confirmation of pausing mining. |
pools()
async
Get pool information.
Expand
Returns:
Type | Description |
---|---|
dict
|
Miner pool information. |
resume()
async
Resume mining.
Expand
Returns:
Type | Description |
---|---|
dict
|
Confirmation of resuming mining. |
stats()
async
Get stats of each device/pool with more than 1 getwork.
Expand
Returns:
Type | Description |
---|---|
dict
|
Stats of each device/pool with more than 1 getwork. |
Source code in pyasic/rpc/bosminer.py
summary()
async
Get the status summary of the miner.
Expand
Returns:
Type | Description |
---|---|
dict
|
The status summary of the miner. |
tempctrl()
async
Get temperature control data.
Expand
Returns:
Type | Description |
---|---|
dict
|
Data about the temp control settings of the miner. |
temps()
async
Get temperature data.
Expand
Returns:
Type | Description |
---|---|
dict
|
Data on the temps of the miner. |
tunerstatus()
async
Get tuner status data
Expand
Returns:
Type | Description |
---|---|
dict
|
Data on the status of autotuning. |
version()
async
Get miner version info.
Expand
Returns:
Type | Description |
---|---|
dict
|
Miner version information. |