fixed small bug with getting pool usernames

This commit is contained in:
UpstreamData
2021-11-18 12:05:45 -07:00
parent b714dfe4a4
commit eb8e91c7d7
3 changed files with 14 additions and 3 deletions

10
main.py
View File

@@ -1,6 +1,8 @@
from network import MinerNetwork
from miners.bosminer import BOSminer
import asyncio
from API.bosminer import BOSMinerAPI
from API.cgminer import CGMinerAPI
async def good_boards():
@@ -39,6 +41,12 @@ async def test_command():
data = await asyncio.gather(tasks)
print(data)
async def get_commands_from_miner_api():
miner = BOSMinerAPI("192.168.1.1")
print(miner.get_commands())
miner = CGMinerAPI("192.168.1.1")
print(miner.get_commands())
if __name__ == '__main__':
asyncio.new_event_loop().run_until_complete(test_command())
asyncio.new_event_loop().run_until_complete(get_commands_from_miner_api())