Closed Sam-SHanshin closed 1 month ago
OSError 121 is refused connection, you have to update your miner to the latest version, since older versions don't have gRPC support.
I would also recommend updating pyasic to the latest version, as that will fix some other bugs.
Also, on recent versions, it will become miner.web
instead of miner.web.grpc
, but I would recommend using get_config
instead if you just intend to get config information.
What are BOSerWebAPI and BOSMinerRPCAPI? I mean that why do you need to create two classes for Bos?
I see that use get_config
is good practic, but i need to get pools status (Are they Alive or Dead?)
get_config
give me pools parameters but not statuses
Regarding your first question; The reason for 2 BOS+ classes is that they dropped support for S9 (and technically X17) prior to implementing gRPC, so in order to maintain compatibility in a simple way with S9s, I split the classes out into something for S9 and something for newer models. This is slightly buggy with X17 models, because they are updatable to new versions but have tuner issues, so it's troublesome to decide between implementations there.
Regarding active pool status, yes, that's the correct way to do that then. I've considered trying to add that to miner data, but it seems complicated to structure that in a useful way, and it's not something I would want to put into miner config...
I see that use
get_config
is good practic, but i need to get pools status (Are they Alive or Dead?)get_config
give me pools parameters but not statuses
Getting this added into miner data, some miners already have it, and more are getting it soon.
This should be fixed in latest, give it a test and let me know if you still have issues.
Describe the bug When i try get miner's pools status by miner.api.pools() i got empty dict then i try to use
miner.web.grpc.get_pool_groups()
i gotOSError: [WinError 121]
Screenshots Traceback (most recent call last):
Desktop (please complete the following information):
Miner Information (If applicable):
Additional context i use pyasic 0.46.0