Author

Topic: Antminer S1 - Privileged API ?? (Read 1942 times)

full member
Activity: 195
Merit: 100
March 06, 2014, 06:35:27 PM
#5
Good tip salfter, I'm going to give it a whirl.
hero member
Activity: 658
Merit: 500
March 06, 2014, 07:19:23 AM
#4
Thank you!!!!!
sr. member
Activity: 448
Merit: 250
March 05, 2014, 06:45:59 PM
#3
Thank you, salfter!

I'm book-marking this for posterior.

hero member
Activity: 651
Merit: 501
My PGP Key: 92C7689C
March 05, 2014, 12:08:28 PM
#2
I've noticed that i cant make my S1's execute privileged API commands, like switchpool etc.
Can someone explain how i need to enable this on my S1's?

API_ALLOW is setup to my computer, and the API has readonly false, and showinputs true.
Seems something Bitmaintech baked into their firmware issue

It should've been possible to set this up in /etc/config/cgminer, but the relevant options there didn't have any effect.  Instead, I edited /etc/init.d/cgminer.

Look for a line similar to this:

Code:
PARAMS="$AOPTIONS $POOL1 $POOL2 $POOL3 $_pb --api-listen --api-network"

Change it to something more like this:

Code:
PARAMS="$AOPTIONS $POOL1 $POOL2 $POOL3 $_pb --api-listen --api-network --api-allow W:127.0.0.1,W:192.168.100.0/24"

Restart:

Code:
/etc/init.d/cgminer stop && /etc/init.d/cgminer start

I did this to enable CryptoSwitcher (running on a Raspberry Pi in a Bitfury rig) to switch between altcoins on my Antminers.  It worked, but there wasn't enough extra income to make it worthwhile.
hero member
Activity: 658
Merit: 500
March 04, 2014, 07:04:11 AM
#1
Hi guys,

I've noticed that i cant make my S1's execute privileged API commands, like switchpool etc.
Can someone explain how i need to enable this on my S1's?

API_ALLOW is setup to my computer, and the API has readonly false, and showinputs true.
Seems something Bitmaintech baked into their firmware issue

Thank you!
Jump to: