Pages:
Author

Topic: [ANN] PHPMiner for CGMiner v3.7.2 / SGMiner 4.1.0+ with multi rig support - page 3. (Read 8363 times)

full member
Activity: 200
Merit: 100
Hi i just test your php script and look very good but can you change the rig add script for allow cgminer api only for miner rig like knc avalon ant miner etc.So we can monitor this asic too.  Atm when trying add it say bad rpc info or something missing in this. ( Sorry my english ) And thanks for your time and script !!
member
Activity: 111
Merit: 10
which pool url do you want to add?
Does it starts with http or stratum+tcp?
newbie
Activity: 12
Merit: 0
I am having a problem adding pools to a group I created, I can create the group fine, as soon as I try add a pool I get a please wait and it just stays there ?
member
Activity: 111
Merit: 10
newbie
Activity: 12
Merit: 0
@prdatur

Over at litecointalk Bee has release a new version of BMAT 1.3 and along with this sgminer 4.0, yip you read it right sgminer. I am not sure what all the changes are but basically it looks like it's GPU and scrypt exclusive and he's removed all the rest of teh blot ware. I'd be intrested to know if you'll follow this code release or is 3.7.2 where you'll stop ?

Shot!!
full member
Activity: 126
Merit: 100
This looks interesting. I will try it  Smiley
member
Activity: 111
Merit: 10
Quote
If I understand it correctly the RPC clinet has only been written linux and this wont work on Windows

No the rpc client can also handle windows rig's.

It first checks on which os it runs and depending on that it calls different actions for example when rebooting rig / restarting cgminer.

Quote
Can't get it to work on windows i get this:

"RPC Error: Could not connect to PHPMiner RPC, please check IP and port settings for PHPMiner RPC"

I'm on Windows, please help.

Did you started the RPC Client? This is a service daemon which needs to be running.
In the readme it is explained how to start it under windows.
newbie
Activity: 12
Merit: 0
If I understand it correctly the RPC clinet has only been written linux and this wont work on Windows
newbie
Activity: 51
Merit: 0
Can't get it to work on windows i get this:

"RPC Error: Could not connect to PHPMiner RPC, please check IP and port settings for PHPMiner RPC"

I'm on Windows, please help.
full member
Activity: 182
Merit: 100
This looks nice. I installed ANUBIS like 30 min ago, but im definitely going to try PHPMiner Cheesy
member
Activity: 111
Merit: 10
People who downloaded 1.0.9 till now, please re-download it.

or change:
$system_conf['version'] = array(1, 0, Cool;

to:
$system_conf['version'] = array(1, 0, 9);

within includes/common.php at line 60.

Sorry forgot to change the version info Smiley
newbie
Activity: 12
Merit: 0
Feature Request:

Can you please add to the main page a total hash rate across all miners, much like BAMT do.

something like this
http://ozrigs.com/shop/wp-content/uploads/2013/06/bamt.png
member
Activity: 111
Merit: 10
New version available: 1.0.9

Changes:
  - Fixed reboot command for windows
  - Enhanced Dead/Sick GPU settings.

After updates always update the phpminer rpcclient and restart the service.
member
Activity: 96
Merit: 10
Yup, that's exactly what i'm looking for.
member
Activity: 111
Merit: 10
 - Added restart option when Dead/Sick GPU's are detected without defunc processes.

Most of times restarting Cgminer is not enough to solve that kind problem. Computer reboot is only way to solve it. Now it's try to restart cgminer process?
"Restart CGMiner on Dead/Sick GPU's:"
cron.php:                        if ($device_data['Status'] == 'Dead' || $device_data['Status'] == 'Sick') {

i don't remember if thats case-sensitive or not but it's "DEAD" and "SICK" if i remember correctly.

I would say better solution would be add IF:
"Enabled": "Y", this value is Y
"Status": "Alive", this value is not "Alive" it would work always.

or maybe:  if (strtolower($device_data['Status']) == 'dead' || strtolower($device_data['Status']) == 'sick') {

It should work because i checked the response within the API and there it is written "Dead" or "Sick" but the tolower is a bit more secure, will use this in future.

Enabled Y is a additional which i will implement, but just Status not Alive would be too much, because cgminer, I think, can just disable a gpu for a specific time but not "disable" it. So this would be a false positive.

With cgminer restart / machine reboot I think i will provide the config with a select box "Do nothing, Restart CGminer, Reboot machine" so anybody can decide how this situation of dead GPU's should be handled.

Would that be ok for you?
member
Activity: 96
Merit: 10
 - Added restart option when Dead/Sick GPU's are detected without defunc processes.

Most of times restarting Cgminer is not enough to solve that kind problem. Computer reboot is only way to solve it. Now it's try to restart cgminer process?
"Restart CGMiner on Dead/Sick GPU's:"
cron.php:                        if ($device_data['Status'] == 'Dead' || $device_data['Status'] == 'Sick') {

i don't remember if thats case-sensitive or not but it's "DEAD" and "SICK" if i remember correctly.

I would say better solution would be add IF:
"Enabled": "Y", this value is Y
"Status": "Alive", this value is not "Alive" it would work always.

or maybe:  if (strtolower($device_data['Status']) == 'dead' || strtolower($device_data['Status']) == 'sick') {
member
Activity: 111
Merit: 10
New version available: 1.0.8

Changes:
  - Added restart option when Dead/Sick GPU's are detected without defunc processes.
  - Add Socket timeout setting.

After updates always update the phpminer rpcclient and restart the service.
member
Activity: 111
Merit: 10
I have picked up an error during my install, probably related more to my apache configuration

Code:
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/.htaccess: AddDefaultCharset not allowed here
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/views/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration,
[Mon Jan 13 09:00:13 2014] [alert] [client 10.0.0.10] /var/www/phpminer/templates/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration,

If I remove the AddDefaultCharset from /var/www/phpminer/.htaccess
and delete the other 2 .htaccess files the page seems to load fine, though I am not sure what else I have broken

The page works without the those htaccess entries but just to provide you the information what is missing. In your Virtual host for phpminer you have to post the "AllowOverride" directive. The RewriteEngine error is because you didn't enabled it (linux command to enable it is: a2enmod rewrite)

Quote
Can you tell me which files you changed for the api, as far as I can tell it's only the api.c file ?

I only changed the api.c

member
Activity: 96
Merit: 10
Feature request: Reboot computer if cgminer API reports gpu status as DEAD/SICK should be Alive.

{"command":"devs","parameter":""}

Code:
{
    "STATUS": [{
        "STATUS": "S",
        "When": 1389613832,
        "Code": 9,
        "Msg": "4 GPU(s) - ",
        "Description": "cgminer 3.7.2"
    }],
    "DEVS": [{
        "GPU": 0,
        "Enabled": "Y",
        "Status": "Alive",
        "Temperature": 85.00,
        "Fan Speed": 3150,
        "Fan Percent": 97,
        "GPU Clock": 1050,
        "Memory Clock": 1400,
        "GPU Voltage": 1.206,
        "GPU Activity": 99,
        "Powertune": 20,
        "MHS av": 0.43,
        "MHS 5s": 0.43,
        "Accepted": 75,
        "Rejected": 3,
        "Hardware Errors": 0,
        "Utility": 0.74,
        "Intensity": "18",
        "Last Share Pool": 0,
        "Last Share Time": 1389613767,
        "Current Pool": 0,
        "Total MH": 2619.8671,
        "Diff1 Work": 41640,
        "Difficulty Accepted": 38400.00000000,
        "Difficulty Rejected": 1536.00000000,
        "Last Share Difficulty": 512.00000000,
        "Last Valid Work": 1389613767,
        "Device Hardware%": 0.0000,
        "Device Rejected%": 3.6888,
        "Device Elapsed": 6110
    }, {
        "GPU": 1,
        "Enabled": "Y",
        "Status": "Alive",
        "Temperature": 78.00,
        "Fan Speed": 2964,
        "Fan Percent": 65,
        "GPU Clock": 1025,
        "Memory Clock": 1250,
        "GPU Voltage": 1.100,
        "GPU Activity": 99,
        "Powertune": 20,
        "MHS av": 0.61,
        "MHS 5s": 0.61,
        "Accepted": 104,
        "Rejected": 4,
        "Hardware Errors": 0,
        "Utility": 1.02,
        "Intensity": "20",
        "Last Share Pool": 0,
        "Last Share Time": 1389613759,
        "Current Pool": 0,
        "Total MH": 3725.5905,
        "Diff1 Work": 55778,
        "Difficulty Accepted": 53248.00000000,
        "Difficulty Rejected": 2048.00000000,
        "Last Share Difficulty": 512.00000000,
        "Last Valid Work": 1389613759,
        "Device Hardware%": 0.0000,
        "Device Rejected%": 3.6717,
        "Device Elapsed": 6110
    }, {
        "GPU": 2,
        "Enabled": "Y",
        "Status": "Alive",
        "Temperature": 72.00,
        "Fan Speed": 2804,
        "Fan Percent": 78,
        "GPU Clock": 1000,
        "Memory Clock": 1500,
        "GPU Voltage": 1.200,
        "GPU Activity": 99,
        "Powertune": 20,
        "MHS av": 0.71,
        "MHS 5s": 0.71,
        "Accepted": 131,
        "Rejected": 0,
        "Hardware Errors": 0,
        "Utility": 1.29,
        "Intensity": "13",
        "Last Share Pool": 0,
        "Last Share Time": 1389613773,
        "Current Pool": 0,
        "Total MH": 4311.0728,
        "Diff1 Work": 64123,
        "Difficulty Accepted": 67072.00000000,
        "Difficulty Rejected": 0.00000000,
        "Last Share Difficulty": 512.00000000,
        "Last Valid Work": 1389613773,
        "Device Hardware%": 0.0000,
        "Device Rejected%": 0.0000,
        "Device Elapsed": 6110
    }, {
        "GPU": 3,
        "Enabled": "Y",
        "Status": "Alive",
        "Temperature": 86.50,
        "Fan Speed": 2263,
        "Fan Percent": 48,
        "GPU Clock": 800,
        "Memory Clock": 1250,
        "GPU Voltage": 1.175,
        "GPU Activity": 99,
        "Powertune": 20,
        "MHS av": 0.43,
        "MHS 5s": 0.43,
        "Accepted": 71,
        "Rejected": 1,
        "Hardware Errors": 0,
        "Utility": 0.70,
        "Intensity": "18",
        "Last Share Pool": 0,
        "Last Share Time": 1389613748,
        "Current Pool": 0,
        "Total MH": 2616.4593,
        "Diff1 Work": 41650,
        "Difficulty Accepted": 36352.00000000,
        "Difficulty Rejected": 512.00000000,
        "Last Share Difficulty": 512.00000000,
        "Last Valid Work": 1389613748,
        "Device Hardware%": 0.0000,
        "Device Rejected%": 1.2293,
        "Device Elapsed": 6110
    }],
    "id": 1
}

Most of times my GPU Status changes to DEAD or SICK and Cgminer process won't defunc.
newbie
Activity: 12
Merit: 0
Can you tell me which files you changed for the api, as far as I can tell it's only the api.c file ?
Pages:
Jump to: