Code Monkey home page Code Monkey logo

Comments (5)

UpstreamData avatar UpstreamData commented on July 24, 2024

It may be easiest to start with trying to go from a config on a miner to the MinerConfig by implementing the from_epic method on each part of the config. It will also need to be added as a type hinting method to the classes in config/base.py.

I think there's going to be a similar issue with this and BOS+ GRPC, as well as slightly less severe with whatsminers, which is that config options are spread across different endpoints, so what I would suggest is that MinerConfig.as_epic() returns a dict with data for different commands to use. For example, as_wm() returns a dict with pools and tuning, which is a dict with mode set to either normal, low, high, or power_tune, with the power_tune dict having the power limit added.

Hopefully this all makes sense. Also, if you're on telegram, you can reach out to me directly there at b_rowan if you have questions or need help with any of that.

from pyasic.

UpstreamData avatar UpstreamData commented on July 24, 2024

Fixing another issue with MinerConfig right now, so I'll add the base implementation as it's just passing anyway.

from pyasic.

jpcomps avatar jpcomps commented on July 24, 2024

Thanks for that, will take a look. I think what you proposed makes a lot of sense. Thanks for adding that. Will probably reach out on telegram as well but will give it a first go.

from pyasic.

b-rowan avatar b-rowan commented on July 24, 2024

#84 merged, part 1 of the support is done.

from pyasic.

UpstreamData avatar UpstreamData commented on July 24, 2024

Finished in #101.

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.