anselal / antminer-monitor

Cryptocurrency ASIC mining hardware monitor using a simple web interface
GNU General Public License v3.0
229 stars 146 forks source link

Option to switch pool #46

Open sergioclemente opened 6 years ago

sergioclemente commented 6 years ago

It would be nice for it to allow switching pools. This is specially useful when profitability switched from one coin to another. Have to be careful how to expose this to not make the user interface too complex.

gnanet commented 6 years ago

It is only my opinion, and @anselal maybe wont agree with it, but a feature like switching pools would rather fit a new project which could be called "antminer-controller" , don't you think?

sergioclemente commented 6 years ago

I think the scope of the project started just like "Monitoring of Antminers" but its expanding already, two data points: He is working on adding support for Avalon 741 and restart button.

The name of the project is becoming invalid, but I don't think it matters much. maybe cgminer-controller in the future.

How to expose the pool switching to the user without cluttering the UI I think is the problem. But this could be probably be figured it out once he thinks it belongs it here.

gnanet commented 6 years ago

I started following this project, because i am developing a similar project in PHP, that does monitor antminers like this project, but also to control those miners, for example to allow the mass pool switching, or similar things. I found only one project that seems to relate to my goals, and that was minera, but since they focus on the local usb miner part, and networked miners have less priority it was not suitable for our needs.

For an easy overview about the state of the miners, and parallel to the cgminer-example https://github.com/ckolivas/cgminer/blob/master/miner.php based status overview, i suggested this project to my bosses, because it is lightweight, and quick as it can be.

We also implemented a direct link to the webUI of the miners, and a restart button. But only to allow easy response to issues that the monitoring project is reporting.

Further control features, like changing fan percentage setting, or adding removing pool settings, switching pools, access to all the configuration elements which are available on the miners webUI, etc were planned as a separate, or sub-project, exactly for the reasons of not cluttering the UI, and keeping the monitoring of miners simple and hassle-free.

sergioclemente commented 6 years ago

Mind sharing your's project page? I looked in your profile @gnanet and didn't find. Or is that the link from the @ckolivas you mentioned?

gnanet commented 6 years ago

I am not a big programmer, and the current state of the project is far not what i would say "ready to show" also it contains hardwired parts that are unique to our setting of mining farm. sorry

anselal commented 6 years ago

@sergioclemente If you mean an option to auto-switch pools according to the more profitable coin I am not willing to merge such code with this project. The idea to set a pool on the miner from within the app is tempting. I already did a quick research about this and I can tell you that there are 2 options. 1) Change the pool settings by directly editing the pool config file via ssh. This is the easiest way to go but we will have to add support for username and password since some users could have changed the default ones (I know I have for both the WebUI and SSH login). 2) Change the pool settings via the cgminer api but this would require to give the api more permissions. I think with the default ones you can't edit the pool settings.

To be honest I prefer the first option as the username/password module is also required by the restart/safe-shutdown feature. The settings are in JSON format so they we can easily manipulate them ;)

PS: I already implemented the restart and safe-shutdown function but haven't merged it yet.

voljumet commented 6 years ago

Would be nice to have sort of the same dropdown menu as when you choose miner, but to choose from different pools that the user can add, and maybe choose all, or one at the time

carlcbilodeau commented 6 years ago

The MinerTool supplied on Bitmain firmware page at the bottom (Antminer Toolkit) shows another way of changing the pools for all the Antminer. This is what I use to change all my pools.

anselal commented 6 years ago

@carlcbilodeau What do you mean with:

shows another way

we are talking code here...

gnanet commented 6 years ago

I think thats what @carlcbilodeau is talking about https://shop.bitmain.com/support.htm?pid=00720170302102826819kGXDSLgM069C

but both are Windows apps

anselal commented 6 years ago

@gnanet I am aware of the software for a long time. The thing is that we want the source code here and not the compiled app. I am sure that they change the pool settings via ssh.

I covered our options in a previous comment though

carlcbilodeau commented 6 years ago

@gnanet I totally agree, we need the code here.

anselal commented 6 years ago

I already have the code...

anselal commented 6 years ago

Just wait for the implementation...

carlcbilodeau commented 6 years ago

@anselal One thing I liked on the Bitmain Antminer Toolkit is the semi-automatic registration of machines. Let say you have 20 new S9. You connect them from 10.0.0.140 to 1.0.0.160. In the first screen, you enter the starting an ending ip address and by a click of a button they are all registered. When we have many machines we are forced to have them in order. If we could have it on our antminer-monitor it would be very nice.

anselal commented 6 years ago

@carlcbilodeau please open a new issue for new feature requests if they don't already exist. If by registered you mean to auto add them in the software i will have to inform you that it will be available in the next releases

carlcbilodeau commented 6 years ago

@anselal Fantastic. Yes auto add from a starting address to and ending address. So goooood.