Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: forzendiablo on December 29, 2013, 11:29:52 PM



Title: How to add .conf and API to BFGminer?
Post by: forzendiablo on December 29, 2013, 11:29:52 PM
in cgmienr its s w enter.
the ni have saved file and i add lines for API.

how to do that in BFGminer since i want to give it directions on what to mine with API


Title: Re: How to add .conf and API to BFGminer?
Post by: forzendiablo on December 30, 2013, 04:09:52 AM
nobody ? ;x


Title: Re: How to add .conf and API to BFGminer?
Post by: milone on December 30, 2013, 04:59:54 AM
I'm not sure what you're asking, but if you're on Windows you can use CGWatcher (http://www.cgwatcher.com) to launch cgminer and it will enable the API automatically. In CGWatcher's Tests tab you can access the API directly, or there are features throughout the program that provide an interface to the API.

https://bitcointalk.org/index.php?topic=185553.0

http://www.cgwatcher.com

If you just want to enable the API to access it with your own software, add the following to your config file:

Code:
"api-listen" : true,
"api-allow" : "W:127.0.0.1"

You may need to add a comma to the end of the second line depending on where in the config file you put it (if there are more settings below it.) You can change the IP to the IP your software is running on, or add more IPs by separating with a comma:

Code:
"api-listen" : true,
"api-allow" : "W:127.0.0.1,W:192.168.1.10"


Title: Re: How to add .conf and API to BFGminer?
Post by: forzendiablo on December 30, 2013, 09:28:38 PM
hey
thing is [unless u can answer that] - i have BFL miner. when i run cgminer it wont work.

i hav to use BFGminer or bitminter app. ive no idea how to make my miner work on latest cgminer.


Title: Re: How to add .conf and API to BFGminer?
Post by: milone on December 31, 2013, 12:55:26 AM
Those settings apply to bfgminer also. Bfgminer is a fork of cgminer, so the config settings and api commands are the same for most things. Over time they grow further apart, but as of now this will enable the API in both miners.