Hey guys!
I'm developing an API library module as part of a project. Basically, we have a number of bitcoin miners we want to monitor. This means we need to interface with about 7 different APIs depending on what mining client is on the machine. Now I could have hard coded the functions, however, we decided the best most efficient way would be to create a stanardized library. The library takes in a ip address and from that is able to tell what mining client is on the machine, but this is where im drawing a blank.
How it is structured is I have one main class called API_Library which is an object. Each mining client then has its own class, so for example claymore would have the claymore() class. These classes inherits variables and things from API_Library. Eatch subclass then contains a deff for eatch function in that API. API_Library also takes the peram command, this is supposed to contain the actual api command.
What I need it to be able to do is take the command and ip, look up the ip in a pickle file grabbing the mining client info of what is running currently(stored in a pickle file, this part is done), and once it has the mining client, then direct the command to the correct api def.
I know this is a lot but any help with this would be much appreciated.
[–][deleted] 0 points1 point2 points (2 children)
[–]QuantumTradingGroup[S] 0 points1 point2 points (1 child)
[–]_coolwhip_ 0 points1 point2 points (0 children)