-
Notifications
You must be signed in to change notification settings - Fork 11
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
Miner conf #23
Comments
I found Calling Any help regarding the port and miner.conf would be a real help. Thanks |
S9105 is my test machine. It is just a friendly name. The port in miner.conf should be the miner api port. Usually 4028 by default. |
It looks like I have some work to do to automatically configure Innosilicon Zmaster. I will work on that soon. Please try to enable api on the zmaster using the instructions at the bottom of the following page. Note: I do not suggest allowing W:0/0 like the example shows, but try it first to get it to work and then try a setting that is more secure. |
On the ZMaster I can enable that API following that guide, however I can't access the cgminer API. Running Do you know how I open port 4028 on the miner? |
Sending to the cgminer API |
I presume this is an unrestricted API call. I removed the Running
|
To confirm, I used the API directly and I do have privileged access enabled, so the Request: Response:
|
Thank you for your help to diagnose this! There must be a programming error on my side that is doing a division by zero. I will check the code. |
Can you send me the full contents of the output of stats command? |
This is the full response to the stats command - https://gist.github.com/almccann/a44351ec8bafc17ab000a8a70c575d24 |
So to help with debug, with cgminer API configured with privileged access (according to response above),
|
With these amendments
|
You're almost there. The temps need to be parsed correctly. |
These stats are quite a bit different than what i have seen before. If I can pull those out then you can get basic monitoring and run rules on them. |
Is this the sgminer API compared to cgminer? That json is the ZMaster. If you check the type of API - sgminer or cgminer - can them call the different parsers accordingly and handle both machines? |
There is no official standard for the output of each api command. Each miner manufacturer produces different output, especially for the stats command. So yes, this is a difference in format between the different mining software.
Yes, this is exactly what I am going to do. Later I will improve the code and make it easier to notify me when a new miner comes out so I can get it fixed sooner. |
Make a backup of ~/fullcycle/fullcyclepy/backend/config/*
That will stop services, backup config, get new version then restore config and restart services. Then let me know if simplemonitor runs. |
My debugging to get
Sorry probably could just have made a PR.. To help with the |
Actually if line 54 is like this then the Elapsed and Temp is plucked:
Probably brittle but that does get it. |
Any idea on the currenthash - the calc from the API gives a hash of 2862500 whereas the web admin gives around 50000 sol/s? Is the controllertemp and average of the hashboards? Also regarding the rules.conf, I see the controllertemp is this value, what is the boardtemp? Is that coming from Z9 which has a chip and PCB temp but here with this API not applicable? |
It was a little hard for me to interpret the stats output without being able to compare it with anything. In the stats output there was 3 'MHS av' values. Normally that is the hash for each board, so I summed them. How many hashing boards does the Z9 have? Do you have the Antminer Z9 or the innosilicon A9 zmaster? |
I dug into their web code and it uses another API call - I don't know why its accurate for hashrates - a lot of the info is duplicated. Anyway I opened a PR with the changes that got that going for the ZMasters. I will look into the temperatures. Is the rules.conf working to shutdown - would I need to amend anything for ZMasters? I do have Z9s as well but they're at another location and I'm working on getting the ZMasters set up first. |
Thanks for the PR. I will review it. Once you get the hash and temp into my Miner object then it should work fine for the rules.conf. You may have to modify when_runrules.py to suit your situation. |
I'm trying to pick up the miners on my local network (Antminer Z9 and Innosilicon ZMaster).
I updated the
miners.conf
with the IPs of the machine however when I runfcmsimple
the new conf isn't picked up by the system (it shows 1 new machine only plus a S9105 that I haven't configured in the conf.How do I reset the cache?
What is the
clientid
,networkid
andminerid
in the conf? I have these empty.Will the system pick up miners on port 22, 80 or another port? Z9s are only open on 22 and 80 by default, ZMasters are also open by default on 8001.
The text was updated successfully, but these errors were encountered: