I'm sorry if this is a repost, but I couldn't find it. Moderators, feel free to delete if it is. Also, I'm not sure if this belongs to Mining support or Hardware. Following the line of the post I mention bellow I posted here, but also feel free to move it to Hardware if you deem it appropriate.
Inspired by this thread
https://bitcointalksearch.org/topic/bitmain-antminer-step-by-step-how-to-setup-balance-mining-tutorial-395721, and specially by n4spd's great addition that allows you to change the pool's quotas from the web interface (
https://bitcointalksearch.org/topic/bitmain-antminer-step-by-step-how-to-setup-balance-mining-tutorial-395721.msg5452008#msg5452008, message #15), I decided to try to see if it was possible to manage more than 3 pools from the web interface.
I'm happy to report that it could be done quite easily. If you were able to do the changes described in that post, no extra skills are required. The following steps are for adding a 4th pool, but they can be repeated for N number of pools. I haven't tested it for more than 5, so I'm not sure how high can it go.
1) First you need to vi (edit) file /etc/init.d/cgminer. Basically, copy anything that is there for pools 1-3 and change it to 4. The following is a list of changes I made, with the action (A=added line, M=modified line) and the line number where I made the change between []. E.g. the first line means add "local _pool4url" on line 22. The line numbers could be slightly different in your system.
[A22] local _pool4url
[A23] local _pool4user
[A24] local _pool4pw
[A47] config_get _pool4url default pool4url
[A48] config_get _pool4user default pool4user
[A49] config_get _pool4pw default pool4pw
The next 4 lines are an extension of n4spd's mod
[A82] if [ "$_pool4url" != "" -a "$_pool4user" != "" -a "$_pool4pw" != "" ]; then
[A83] POOL4="$pool_switch $_pool4url -O $_pool4user:$_pool4pw"
[A84] fi
[M91] PARAMS="$AOPTIONS $POOL1 $POOL2 $POOL3 $POOL4 $_pb $custom_option --api-listen --api-network"
2) Then vi /usr/lib/lua/luci/model/cbi/cgminer, same concept.
[A18] pool4url = conf:option(Value, "pool4url", translate("Pool 4"))
[A19] pool4user = conf:option(Value, "pool4user", translate("Pool4 worker"))
[A20] pool4pw = conf:option(Value, "pool4pw", translate("Pool4 password"))
You don't need to reboot. Now when you go to the Miner Configuration tab you'll see the options to enter information for a 4th pool.
https://i.imgur.com/Vluy4wf.jpgYou'll also see it on the Miner Status :-).
I hope it helps. If you like it, consider contributing a small donation. 40% of every donation will be forwarded to giletto and n4spd (20% each) or the charity of their choice for the inspiration.
FM