kano
Legendary
Offline
Activity: 4620
Merit: 1851
Linux since 1997 RedHat 4
|
|
February 21, 2012, 07:18:09 PM |
|
Ah I didn't think of jjiimm_64's coz he's discussing ANUBIS here on page 6 and 7 also
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 21, 2012, 07:34:49 PM |
|
After getting ocminer's blessing, I've put it on github. I really don't know what I'm doing with this, but it's here: https://github.com/pshep/ANUBIS
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 22, 2012, 12:29:21 AM |
|
Just made a couple more minor changes.
|
|
|
|
vapourminer
Legendary
Offline
Activity: 4522
Merit: 4128
what is this "brake pedal" you speak of?
|
|
February 22, 2012, 02:12:58 AM |
|
grabbed the -bc20688 git.
copied the files over the old anubus 1.03 files in apache (win7), uncommented extension=php_pdo.dll, extension=php_pdo_mysql.dll in php.ini and edited the db name/password and set db_mysql to 1, the other to 0 (other stuff was OK) in config.inc.php.
fired it up...
and got a blank web page lol.
Im new to this web server stuff, so I must of missed something. Ill try again tomorrow with the latest git and double check everything again.
screenshots look great BTW.
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 22, 2012, 02:29:08 AM |
|
Might be more PDO stuff to fiddle with.
Find the apache error log, and see what it says.
Blank page could be a basic parsing error, that is a syntax error (i.e. missing ';' etc.)
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 23, 2012, 12:03:53 AM |
|
So no more problems then? I must be better than I thought
|
|
|
|
vapourminer
Legendary
Offline
Activity: 4522
Merit: 4128
what is this "brake pedal" you speak of?
|
|
February 23, 2012, 01:05:18 AM |
|
So no more problems then? I must be better than I thought just got in; busy day. it was a config error in php.ini, had zen tags (think that was what it was) enabled. disabled it and presto fired right up. changed some settings and the miners reflected them right away. sweet! my life just got a bit easier got a bitcoin addy? ill send ya a coin.
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 23, 2012, 01:43:33 AM |
|
Good to hear! I'm not so proud as to refuse a donation 1Fxpijq1NN52LzSzD2WtGbT3ZTWq366ejj Thanks dude
|
|
|
|
vapourminer
Legendary
Offline
Activity: 4522
Merit: 4128
what is this "brake pedal" you speak of?
|
|
February 23, 2012, 02:08:46 AM |
|
sent 1.33221100 to ya.
and again, thanks for the additional functions.
|
|
|
|
chungenhung
Legendary
Offline
Activity: 1134
Merit: 1005
|
|
February 23, 2012, 03:25:36 PM |
|
Using Wampserver on Win7. My php.ini file short_open_tag Default Value: On Development Value: Off Production Value: Off
OP stated to set it to "enabled", but the ini file is showing "Default Value: On". Is the code above correct? I've added the db and configured user/pass for it. When I open the webpage, it shows me a rendered page, but with a bunch of codes behind it. $sql = "SHOW TABLES"; $result = mysql_query($sql); if (!$result) { echo "DB Fehler, konnte Tabellen nicht auflisten\n"; echo 'MySQL Fehler: ' . mysql_error(); exit; } while ($row = mysql_fetch_row($result)) { if ($row[0] == "configuration") $gotconfigtbl = 1; if ($row[0] == "hosts") $gothoststbl = 1; } if (isset($gothoststbl) && $gothoststbl == 1) { $result = mysql_query("SHOW COLUMNS FROM hosts"); if (!$result) { echo 'Konnte Abfrage nicht ausführen: ' . mysql_error(); exit; } if (mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { if ($row['Field'] == "port") $gotport = 1; } } if (!isset($gotport)) { $alterstrg = "ALTER TABLE `hosts` ADD `port` SMALLINT NOT NULL DEFAULT '4028'"; $alterres = mysql_query($alterstrg); if (!$alterres) { echo 'There was an error updating the database ! : ' . mysql_error(); } } } $sumactivegpus = 0; $sumgpus = 0; $sumhosts = 0; $sumtemp = 0; $sumdesmhs= 0; $summhs5s = 0; $summhsavg = 0; $sumrejects = 0; $sumdiscards = 0; $sumstales = 0; $sumgetfails = 0; $sumremfails = 0; //echo "c: $gotconfigtbl h: $gothoststbl"; if (!isset($gotconfigtbl)) { //echo "creating config-table"; include("configtbl.sql.php"); } if (!isset($gothoststbl)) { //echo "creating hosts-table"; include("hoststbl.sql.php"); } // <-- checking for tables $configq = mysql_query('SELECT * FROM configuration'); if (!$configq) { die('FATAL: MySQL-Error: ' . mysql_error()); } $config = mysql_fetch_object($configq); $result = mysql_query('SELECT name,address,id AS hostid,mhash_desired,port FROM hosts'); if (!$result) { die('FATAL: MySQL-Error: ' . mysql_error()); } ?>
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 23, 2012, 05:30:31 PM |
|
PHP simply isn't working there. It's showing the script rather than running it.
See if you can google the problem. I'm afraid I'm not a php installation expert.
|
|
|
|
echris1
|
|
February 23, 2012, 09:15:09 PM |
|
very cool, this replaces a few different tabs and windows. donation sent =)
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 23, 2012, 10:28:33 PM |
|
Another update committed to use the new API function enable/disable pool and also tests for privileges; hides device controls if read-only.
|
|
|
|
stevegee58
Legendary
Offline
Activity: 916
Merit: 1003
|
|
February 23, 2012, 11:46:53 PM |
|
Sorry for yet another php noob question. I'm a software guy, just not web or database. I'm using wamp and it's definitely running correctly. I have some sample php files working and I copied anubis into the correct directory. I'm also positive I have the cgminer api running also. When I surf to it with my browser at localhost/anubis there are a bunch of source code lines printed out in the header and body of the anubis page. Clearly I don't have the database part configured right but I don't know where to look. Also I don't know what to put in the config.inc.php file.
|
You are in a maze of twisty little passages, all alike.
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 23, 2012, 11:57:36 PM |
|
If your seeing actual code, and not errors, then your webserver is not understanding the page is a script and running it. It's just displaying as-is. Sounds like a config issue, which I can't really help with. As for the database, you need to either set the username and password in the config file to one you know has access to the database, or add a new user to the database, to mach the one in the config file.
|
|
|
|
stevegee58
Legendary
Offline
Activity: 916
Merit: 1003
|
|
February 24, 2012, 12:03:11 AM |
|
OK I figured it out finally. In php.ini I had to enable sockets and enable short_open_tag.
Seems to work OK now.
|
You are in a maze of twisty little passages, all alike.
|
|
|
vapourminer
Legendary
Offline
Activity: 4522
Merit: 4128
what is this "brake pedal" you speak of?
|
|
February 24, 2012, 12:56:06 AM |
|
grabbed the latest, works well. no options to change stuff till I edited my bat file cgminer flags (yes I still use command line flags instead of config files; lazy in my old age) to allow write access to my network. then I could change stuff.
I do have a feature request. in the screen (page?) that allows you to change intensity, clocks, volts etc.. can you allow us to change only one or 2 values instead of them all each time? lets say I want to just change to Dynamic intensity, I dont want to send new fan speed, engine clocks etc to cgminer as I use autofan and autoclock. leaving a field blank seems to send numeric zero. and I may pull an oops and send the wrong volts to a card, thinking Im in another field (or something equally stupid). so I may want to have it set so I never send a new voltage.
maybe put a tick box in each line or field. ticked means send the value in this line, unticked means dont send whatever value is in that line.
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 24, 2012, 01:14:03 AM |
|
So the edit boxes show up blank? Hmm, they (and the sliders) should be set to whatever the value on the card currently is. That would be a javascript thing. I've only used chrome and Firefox. Which browser do you use?
|
|
|
|
vapourminer
Legendary
Offline
Activity: 4522
Merit: 4128
what is this "brake pedal" you speak of?
|
|
February 24, 2012, 05:57:32 AM Last edit: February 24, 2012, 06:09:30 AM by vapourminer |
|
the boxes do have the proper values. the program works perfect. thats the "problem," so to speak.
its when I deliberately blank a value out (empty box) and then click "apply settings" it seems to send the number zero.
for example, I set fan speed to a blank box (because I dont want to change that value, as cgminer may of changed fan speed since the page was loaded) and click apply settings, when it reloads the fan setting input box is now "0" and the displayed data line (the part with the colored boxes and start,stop,restart) says the fan speed is 0%, 1026 rpm. my normal minimum fan is 1480 rpm (configured via --gpu-fan 40-80).
cgminer eventually brings the fan back up to speed but its disconcerting to hear your fan speed drop to next to nothing lol. being able to not send all but the value you want to change would make it more idiot proof and not override cgminer.
can it be set so a blank input box does not change that value? or a tick box or something that will not send values you dont want.
EDIT: I use FF or chrome on the PCs, Ill use opera on the android phone (havent tried it yet though). but again, the program runs fine.
|
|
|
|
P_Shep
Legendary
Offline
Activity: 1804
Merit: 1230
This is not OK.
|
|
February 24, 2012, 06:43:57 AM |
|
Ah, well, leave the values alone. If you don't change them, they won't be set... it checks. If the values differ, it sends the command. If they are the same no command is sent.
|
|
|
|
|