Code Monkey home page Code Monkey logo

Comments (8)

UpstreamData avatar UpstreamData commented on August 27, 2024

I'm slightly confused about this. Can you try the miner.web attribute and send some restuls of commands from there? Should be an instance of AntminerModernWebAPI, here in the code -

class AntminerModernWebAPI(BaseWebAPI):

from pyasic.

Devinmara avatar Devinmara commented on August 27, 2024

It doesn't appear to get picked up by my initial scan_network_for_miners(ip-ip2)

The miner is using this API:
https://app.swaggerhub.com/apis/ePIC-Blockchain/umc_api/0.30.6

from pyasic.

UpstreamData avatar UpstreamData commented on August 27, 2024

Ah ok. You have an ePIC board. Ill see what I can do.

from pyasic.

Devinmara avatar Devinmara commented on August 27, 2024

Any possibility you'd have some hints/recommendations on where to start it? I wouldn't mind taking a crack at it!

from pyasic.

UpstreamData avatar UpstreamData commented on August 27, 2024

Sure. It would be much easier for you since you actually have one.

You will have to do a few things -

  1. Create a new backend type (pyasic/miners/backends/epic.py or similar), with a new backend class.
  2. Find a way of identifying the miner as that "backend" via the functionality and enum defined in the miner_factory (pyasic/miners/miner_factory.py)
  3. Create subclasses of miner types (physical types) and the new backend you created in the corresponding files.
  4. Add those subtypes to the MINER_CLASSES dict in pyasic/miners/miner_factory.py

Let me know if you have any questions, if you have telegram you can DM me there, username is b_rowan

from pyasic.

UpstreamData avatar UpstreamData commented on August 27, 2024

Additionally, the backend type must inherit from BaseMiner, and implement the abstract methods shown in the docs here.

You will also likely want to implement a new web type in pyasic/web, which will handle all the commands from the schema as needed, you can look at any of the other web API types for this.

from pyasic.

jpcomps avatar jpcomps commented on August 27, 2024

This can hopefully be closed now. @Devinmara know its been awhile, but curious if the latest version works for you

from pyasic.

UpstreamData avatar UpstreamData commented on August 27, 2024

Going to close this now, I think its extremely safe to assume it works.

from pyasic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.