Comments (8)
That would be awesome. I know some people that may have access to that many miners who are testing pyasic, and may be able to test them at scale soon, but I will fix issues as I find them. Feel free to reach out if you have any questions on the async side of things.
from antminer-monitor.
Hey. Thnx. Will definitely take a look at your code
from antminer-monitor.
Hey, just looking at the project and you only have support for older, possibly outdated types of miners. I am working on a similar project in python, and figured you would possibly want to implement some of the same miner versions that I have supported, such as X19/X17 models, Canaan 841 and 1066, and Whatsminer M30 and M20 series. Most of these have fairly standard API's across the board. In addition to this, I would be happy to provide outputs from every known command for a bunch of miner models if you would like to implement them into your project.
Link to my miner handler is here: https://github.com/UpstreamData/minerInterface
API implementations are under .API, and implementations for per-miner models are under .miners and sorted by miner type (antminer, whatsminer, avalonminer).
Hopefully this helps you :)
Hi there, I took a long break from this project cause I didn't have, and still don't have, access to any of my miners so I couldn't test some of the features I wanted to add.
I saw that your project is still active.
I have some working examples for the Dragonmints.
Do all of the other brands use cgminer/bbminer for their apis ?
Can you perhaps send me links to their docs, if available, and sample outputs from their apis ?
from antminer-monitor.
There have been many many updates to the project since I posted this, it is now published to PyPI under pyasic
, and actually has some documentation.
I have a list of supported miners here - https://pyasic.readthedocs.io/en/latest/miners/supported_types/, and these miners use 4 different API backends, CGMiner, BMMiner, BOSMiner, and BTMiner (what Whatsminer/MicroBT calls their api).
I have links to the base documentation for all the types of APIs supported in the documentation here - https://pyasic.readthedocs.io/en/latest/API/api/ if you're interested in them, except BTMiner, which is on whatsminers official website as Whatsminer.com under the support tab. I would recommend against trying to implement their privileged API without looking at some code, as it's not super straightforward and all the implementations I've seen for it use deprecated cryptography methods. If you want to set the up you may want to have a look at pyasic/API/BTMiner.py.
I am happy to provide API outputs if you want them, but if you want just the implementations to get things, check out the functions for data gathering in the files in pyasic/miners/_backends/*.py. That being said the sad part is the API is not the end all be all, as most miners nowadays use some form of web commands.
Let me know if you have any questions or any specific API outputs you want and I can try to send them.
from antminer-monitor.
I realize I probably should have linked to the files I'm talking about, so here's the backend implementations folder - https://github.com/UpstreamData/pyasic/tree/master/pyasic/miners/_backends
And here's the BTMiner implementation - https://github.com/UpstreamData/pyasic/blob/master/pyasic/API/btminer.py
from antminer-monitor.
Thnx for the quick reply, I appreciate it.
I am aware of the web commands, the Dragonmint uses a web api too.
I will browse your code and see if I can get the logic.
Have you tested your API with many miners to see how it behaves ?
I have used it with couple thousands of miners and it worked flawlessly 🤷♂️
from antminer-monitor.
I haven't been able to test at quite that scale, but I would be concerned about the select.select loop on windows since it tends to crash if you put too many asynchronous operations into it, so it's very possible that I don't have enough semaphores in the code. Let me know if you find any crashes and I can try to fix them, I'm happily open to contributions and comments as well if you have them.
from antminer-monitor.
I was thinking also to refactor the code and transform it to async but I am not sure it would work as expected.
If I find another person with so many miners I will let you know so we can test your software as well
from antminer-monitor.
Related Issues (20)
- add miner device error HOT 5
- max worker must be greater than 0 HOT 5
- Support for Antminer S11 HOT 8
- argument 1 must be type, not classobj (S9i) HOT 5
- Docker HOT 6
- Miner discovery subnet? HOT 5
- Support for Antminer s17+ HOT 4
- Antminer S9i HOT 4
- add support for BW21 HOT 4
- new page mobile HOT 3
- Support for ANTMINER D7? HOT 3
- EDB-50267 (security) HOT 3
- change IP sorting HOT 3
- Not work at Python 2.7.17 on Ubuntu 18.04.1 HOT 3
- python manage.py create-db not work HOT 6
- AttributeError AttributeError: module 'time' has no attribute 'clock' HOT 1
- Request to add graphs
- Update Flask or requirements.txt HOT 31
- Error creating DB (manage.py create-db) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antminer-monitor.