-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
different time on scan_network_for_miners() and get_miner() #29
Comments
It also attempts a connection beforehand to check if the miner is located at that address, so it opens then immediately closes connections on port 4028, meaning that it will always be slower than |
I can't be sure what your goal is, but a good rule of thumb is that If you're writing a program that needs to check beforehand where each miner is in the network, but still needs to be super fast, you can do 2 things:
|
is it bad idea if i decrease this timeout (1 not 3 seconds)? |
Nope, decreasing this timeout is fine, that's why its there. Come to think of it I have to come up with a better way to handle that, but for now, you can update those settings at the start of your program by doing: from pyasic.settings import PyasicSettings
PyasicSettings().ping_timeout = 1
PyasicSettings().network_ping_retries = 1 These default values were there for robustness in the scan, so its possible depending on your miners that the scan could now miss the miners, but for sure tweak and find what works best. I find Whatsminer models are extremely responsive to network requests, so if you have them they will likely not need a large timeout at all. |
Thanks for help.
What i get : |
Sadly, Antminer models don't provide any wattage measurements, so I have no way of figuring out what the wattage is, and I don't have an algorithm to guess what it might be approximately. Your best bet would be to install BraiinsOS on your miner if it supported, and they have an algorithm that provides a guess at that information. The other option is you could use some sort of smart plug or PDU that would tell you the wattage directly at the wall, and communicate with that, which will give a much more accurate measurement. Just curious, does wattage show up on the web interface of the miner? If they added it for whatever reason in the newest version or something I could definitely add it, I just have yet to see any way to read that info. |
Hi , i check antminer's GUI and don't find any solution for take miners wattage ((( |
Hi, i tested speed of functions scan_network_for_miners() and get_miner(). Why scan_network_for_miners() took 4-5 seconds on action (it didn't matter if i put IP or IP_RANGE) and get_miner() took less then 0.5 seconds on same action?
The text was updated successfully, but these errors were encountered: