Comments (5)
Hey @Awote,
MinerData
already includes a MAC address, and with all supported models if it's possible to gather it it should be put into there.
Example:
async def get_miner_mac(ip: str) -> str:
miner = await pyasic.get_miner(ip)
data = await miner.get_data()
return data.mac
Not sure what model of miner you are using, some don't actually provide the MAC address externally via any method I could find, but if you know you miner type and can provide more information I can try.
Also, there are some pretty big re-works in progress on the dev branch that will hopefully be merged soon, I can easily check there if your miner supports getting the MAC address there as the AnyMiner.get_data()
function was split off into its constituent parts.
from pyasic.
thanks for help. i take mac
I have a question, will pyasic be able to detect the miner if the miner is connected via a switch -> router and pyasic directly to the router? I know the IP address of the miner.
from pyasic.
Yep, as long as the miner and the computer you are using pyasic on are connected to the same network, this will work perfectly fine. Just run the above script with
asyncio.run(get_miner_mac(IP_ADDR_OF_MINER))
from pyasic.
For reference, if you need any more data from your miner, you can use the above script, but instead of return data.mac
you can get any piece of data that is shown here by using the same format of data.attribute
.
from pyasic.
Closing this for now, seems like it might have been resolved.
@Awote if you have any more questions feel free to re-open this or to create a new discussion in the "Discussions" tab.
from pyasic.
Related Issues (20)
- OSError: [WinError 121] When i use await miner.get_config() HOT 1
- Bos miner.web.grpc.get_pool_groups() return OSError: [WinError 121] HOT 6
- Braiins S17 Pro stopped working after 0.46.0 HOT 3
- V9 integration HOT 37
- Luxor HOT 1
- expose highest chip temperature HOT 1
- IceRiver KS2 HOT 5
- Vnish miners don't return configs and pool info HOT 11
- Re-work `MinerConfig` for usability
- Support of Antminer S19k Pro NoPic HOT 4
- problem with pyasic 0.43.0 HOT 2
- implement MinerConfig scheme for ePIC UMC HOT 5
- Add S19 Pro Hydro support HOT 6
- add custom commands "cmd":"download_logs" HOT 2
- Could you add stop_mining in BMMiner?
- Could you add stop_mining in BMMiner? HOT 5
- Unable to get_data for ePIC board on S19k Pro HOT 5
- return to minerData api_type HOT 1
- miner.api.pools return None on Bos miners
- miner.api.pools don't return miner's pools info 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 pyasic.