Comments (18)
Or if it already existe in pyasic could you write a guide how can i do this ?
from pyasic.
There is currently no way to do this via pyasic, it could very well be added, for now I assume you want to use it on X19 models?
Personal opinion on static IP addressing for miners? I don't see a point, I find it would be much simpler (and could mess up less on the networking side) to just leave the IP set to DHCP and track locations of miners by MAC address, that way it is also consistent across networks (EG pulling a miner from site for repair then having issues identifying it or not having it show up at all on the repair network).
If you really feel that static IPs are a necessity, I will add it, but I strongly advise against it from personal experience. Let me know.
from pyasic.
Not sure if Pyasic is the proper place to add static IPs? That's more something that should be handled by one's router. Specifically, always have the miner take in a DHCP, but if you want a static, have the router issue a static IP linked to the miners MAC. That way, if you move the miner, or otherwise change your network configuration, you don't lose quick access to the miner.
This is how we handle it in our mine.
Of course, if it's a settable element, maybe pyasic should be able to set it (even if it's not the best idea)?
Which is basically just another way to say what was said above :)
from pyasic.
I think there are cases for both @crc32, in my case with a relatively closed off router in a mass of mines, I would much rather set them on the miner side. That being said, it is always preferable to set that stuff on the network side locally, not publicly on the miner for a multitude of reasons, as long as its possible.
That being said, I agree, pyasic should support it strictly on principle, therefore, added in v0.27.5.
from pyasic.
As of now, this is only supported for X19 models, if you need it for more miners please re-open, but I will look into the setting for other types of miners for now.
The function is accessible at X19SubclassMiner.set_static_ip(ip: str, dns: str, gateway: str, subnet_mask: str = "255.255.255.0", hostname: str = None)
and can be unset with X19SubclassMiner.set_dhcp(hostname: str = None)
.
from pyasic.
Added for whatsminers in v0.27.6.
from pyasic.
It is good reason use MAC for miner's unification value but sometimes i didn't get MAC value for miner, that why i start this issue
{
"ip": "10.1.50.50", "datetime": "1675537482", "mac": "00:00:00:00:00:00", "model": "S19j Pro",
"make": "AntMiner", "api_ver": "3.7", "fw_ver": "4.11.1", "hostname": "Unknown", "hashrate": 136.73, "nominal_hashrate": 136.0,
"hashboards": [{"slot": 0, "hashrate": 46.62, "temp": 47, "chip_temp": 32, "chips": 126, "expected_chips": 126, "missing": false}, {"slot": 1, "hashrate": 44.88, "temp": 47, "chip_temp": 32, "chips": 126, "expected_chips": 126, "missing": false}, {"slot": 2, "hashrate": 45.22, "temp": 46, "chip_temp": 31, "chips": 126, "expected_chips": 126, "missing": false}],
"ideal_hashboards": 3, "left_board_hashrate": 46.62, "center_board_hashrate": 44.88,
"right_board_hashrate": 45.22, "temperature_avg": 47, "env_temp": -1.0, "left_board_temp": 47, "left_board_chip_temp": 32, "center_board_temp": 47, "center_board_chip_temp": 32, "right_board_temp": 46, "right_board_chip_temp": 31, "wattage": -1, "wattage_limit": -1, "fan_1": 0, "fan_2": 0, "fan_3": 0, "fan_4": 0,
"fan_psu": -1, "left_chips": 126, "center_chips": 126, "right_chips": 126, "total_chips": 378, "ideal_chips": 378, "percent_ideal": 100, "nominal": true, "pool_split": "0", "errors": [], "fault_light": false, "efficiency": 0},
from pyasic.
I'll try to create a fix for that this morning, there are 2 places you can get the MAC address on X19 models, I'll implement the second as I only found out about it recently.
from pyasic.
thanks for help !
from pyasic.
If it 's important i'll test pyasic
on AntMiner S9 and it also didn't give MAC
address
from pyasic.
Are your miners by any chance running VNish firmware?
from pyasic.
if it is important they will be but not tomorrow
from pyasic.
Added VNish MAC address support in v0.28.0. Still have to run some tests on stock.
from pyasic.
Added backup MAC address check for X19 stock in v0.28.1.
from pyasic.
if it is important they will be but not tomorrow
FYI only miners I've seen with the versioning scheme you sent above were running VNish, so not sure if that's just a recent update thing or what.
from pyasic.
Stock S9 MAC fixed in v0.28.2.
from pyasic.
Стандартный MAC-адрес S9 исправлен в версию 0.28.2.
thanks, i 'll test this on my miner tomorrow!
from pyasic.
thank now i take my s9 miner's MAC!
from pyasic.
Related Issues (20)
- Dashboard for visualizing data HOT 7
- Can't increase the power target BraiinsOS 24.02 Plus HOT 3
- BOS Antminer S19 XP Miner is not returning data instead throwing error . HOT 12
- Does not support Braiins OS+ Prior to version 23.03 HOT 5
- MinerData's as_json() method raises error 'Object of type TunerAlgo is not JSON serializable' HOT 3
- `config` - Only source code is shown under the Miner Config page, ideally it would have some descriptions of how to use, along with docstrings from the methods. It would also be ideal to add documentation on the sub-items. HOT 1
- I can't set power target on Braiins OS+ Miner HOT 8
- Network scan of some subnets time out on Ubuntu 22.04.2 HOT 22
- Can't seem to set pool configuration using send_config HOT 7
- Add firmware vendor to MinerData HOT 7
- Add control board model to MinerData HOT 1
- I want to know what pool a miner is currently active on HOT 1
- I want to know the expected fans of a miner. HOT 2
- Add in functionality to limit the number of ips being pinged when scanning. HOT 3
- Doesnt get Miner Modell BraiinsOS 24.04 Plus HOT 4
- Intermittent Failure to read all fans on Braiins OS+ HOT 3
- wmt.pyasic.org source code or any other solution to unlock whatsminer asic privileged API HOT 1
- Unable to modify power limits from inside home assistant on S19K pro miner HOT 5
- Problems getting data from stock antminer firmware on 0.57.x HOT 1
- `RuntimeWarning: coroutine 'sleep' was never awaited` while calling `get_data` HOT 2
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.