Bitcoin Forum
May 30, 2024, 03:30:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Antminer S1 - Privileged API ??  (Read 1916 times)
bitspender (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500



View Profile
March 04, 2014, 12:04:11 PM
 #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!
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
March 05, 2014, 05: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.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
jamesc760
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250



View Profile
March 05, 2014, 11:45:59 PM
 #3

Thank you, salfter!

I'm book-marking this for posterior.

bitspender (OP)
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500



View Profile
March 06, 2014, 12:19:23 PM
 #4

Thank you!!!!!
BuildTheFuture
Full Member
***
Offline Offline

Activity: 195
Merit: 100


View Profile
March 06, 2014, 11:35:27 PM
 #5

Good tip salfter, I'm going to give it a whirl.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!