Bitcoin Forum
May 10, 2024, 10:31:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 5 6 7 »  All
  Print  
Author Topic: CGminer - web monitor beta v0.8  (Read 34710 times)
bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
January 22, 2012, 07:50:49 PM
 #21

Style sheet would be cool.
You got my vote Wink

I got lazy and simply used a few common tags, but I planned to re-tag everything when I had time....but it just works well now, so it might be a while before I get off my lazy butt and do anything...LOL

Thanks again for a great app.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715337061
Hero Member
*
Offline Offline

Posts: 1715337061

View Profile Personal Message (Offline)

Ignore
1715337061
Reply with quote  #2

1715337061
Report to moderator
bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
January 23, 2012, 07:47:25 PM
 #22

I just thought I would check back in and again, say, THANKS FOR SUCH A GREAT STARTING POINT for a project.
I honestly don't know how much time I spent using VNC clients for monitoring before this nice, simple little output came along.

I ended up trimming things a bit to suit what I need to see, threw in a basic 10s page refresh into the mix and regardless of not having controls done for mine yet, I am extremely happy with what it DOES do in the mean time.

Cheers.

jjiimm_64 (OP)
Legendary
*
Offline Offline

Activity: 1876
Merit: 1000


View Profile
January 23, 2012, 08:25:50 PM
 #23


bit:  me too.  I was never able to accurately measure my hashrate before this.

still working it out how I want to move forward with the controls:

1.  simple dropdowns and text areas with a page reload
2.  similar to #1, but with a lock/unlock button
3.  ajax type controls with  no refresh needed. 

#3 is interesting because I could almost make it look and act JUST like the gui.  down to the commands like 'G'  for gpu and 'P' for pools when in edit mode and focus is on div, the keypress could be intercepted...  anyway just thinking out loud here.


I will probably go with #1 just to get things started....  the ajax implimentation will take alot of work.

Jim

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
January 23, 2012, 10:33:03 PM
 #24

The best part about this, is with minimal coding experience, most users can custom tailor this to suit his/her needs with little to no effort.

Obviously not everyone needs the same, or wants/expects the same results.....so this is just great.

In all honesty, I am actually second-guessing my need to add controls, because as it is now, I don't have the ability to f$ck anything up on my miners, without actually logging in via VNC, so perhaps the 'hands-off' monitoring-only approach is all I really need.
I like to mess around with overclocks etc, so in it's current running state, it actually keeps me out of trouble and gives me exactly what I need and nothing more Wink

If you would allow it, I would also be more than happy to package-up what I have, so that just in case, anyone who just wants simple monitoring for a couple/few machines that all fit on a single non-scrolling page could get by quite nicely without getting in over their heads.

Let me know what you think and I will zip it up and throw up a download link if you approve.

Cheers,
bitlane.

bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
January 26, 2012, 03:43:28 AM
 #25

Hey Jimmy, could you please explain the following value ?

Quote
cgminer version 2.1.2 - Started: 1327356155    Rig: miner1

Cheers,
bitlane.

jjiimm_64 (OP)
Legendary
*
Offline Offline

Activity: 1876
Merit: 1000


View Profile
January 26, 2012, 04:13:24 AM
Last edit: January 26, 2012, 04:30:02 AM by jjiimm_64
 #26

Hey Jimmy, could you please explain the following value ?

Quote
cgminer version 2.1.2 - Started: 1327356155    Rig: miner1

Cheers,
bitlane.

sure.  it is a unix timestamp of the start time.  I think you will see the same value in the dumps.

this is beta after all.  I took a couple of minutes formatting it, but I kept getting warnings about the local.  just never got back to it.  you can just replace $since with  date("F j, Y, g:i a",$since)

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
January 26, 2012, 04:35:35 AM
Last edit: January 26, 2012, 05:04:17 AM by bitlane
 #27

[EDIT]
Got it....nothing else required from me Wink
thanks again.

rcocchiararo
Newbie
*
Offline Offline

Activity: 78
Merit: 0


View Profile
January 31, 2012, 06:06:33 PM
 #28

hi

i wanted to try this, so i edited the php file as follows:

Code:
<?php
require_once 'includes/apiSocket.php';
//error_reporting(E_ALL);  //this is a dev version
//ini_set('display_errors', '1');  //dev version

//list of miners to monitor
$minerList= array(
"Z",
"LU",
"omega",
"MAMA-PC"
);
//bitcoind connect string, just delete or make empty if you dont want bitcoin info, or server does not have access to a bitcoind
//$btcoindConnStr = 'http://user:pass@bitcoind:8332/';
?>

Those names are in the host file (this is a linux debian machine running one cgminer, apache2 with php5, and a few more things)

I also tried the ips.

And i get this:

Quote
Mhash (5s)/(avg)   Queued   Accepted   Rejected   ST   HW   Utility
0    0   0   0   0   0   0   0
Metric   High   Low   Median   Avg
Temps   0   9999   0   0.00
Fans   0   9999   0   0.00
Mhash Per Rig:   0   9999   0   0.00
Mhash Per Card:   0   9999   0   0.00
Util Per Rig:   0   9999   0   0.00
Util Per Card:   0   9999   0   0.00
mineroffline:Z
mineroffline:LU
mineroffline:omega
mineroffline:MAMA-PC
Pools: (assumes failover)
Z | LU | omega | MAMA-PC |
Mhash (5s)/(avg)   Queued   Accepted   Rejected   ST   HW   Utility
0    0   0   0   0   0   0   0
Metric   High   Low   Median   Avg
Temps   0   9999   0   0.00
Fans   0   9999   0   0.00
Mhash Per Rig:   0   9999   0   0.00
Mhash Per Card:   0   9999   0   0.00
Util Per Rig:   0   9999   0   0.00
Util Per Card:   0   9999   0   0.00
mineroffline:Z
mineroffline:LU
mineroffline:omega
mineroffline:MAMA-PC
Array
(
)
1
jjiimm_64 (OP)
Legendary
*
Offline Offline

Activity: 1876
Merit: 1000


View Profile
January 31, 2012, 06:28:15 PM
 #29



make sure your cgminer is set to accept rpc calls from the network:

the following should be part of your conf file for cgminer:

"api-listen" : true,
"api-network" : true,
"api-port" : "4028",

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
rcocchiararo
Newbie
*
Offline Offline

Activity: 78
Merit: 0


View Profile
January 31, 2012, 06:33:20 PM
Last edit: January 31, 2012, 06:44:02 PM by rcocchiararo
 #30



make sure your cgminer is set to accept rpc calls from the network:

the following should be part of your conf file for cgminer:

"api-listen" : true,
"api-network" : true,
"api-port" : "4028",


for some reason i was never able to save my config, so i ended up always running it with all the commands from commandline, but i do have:

--api-listen --api-network

port is optional, if i dont want to change it, right ?

ps: what is the older cgminer that has the api functions ? (i have the latest one on "Z", but the other pcs might have older ones, and "omega" has 2.0.7, which i believe does not support API functions).

ps2: will try disabling my win7 firewall on "Z" now

is the :

Code:
Array
(
)
1

at the end, ok ?

EDIT: didnt work Sad
jjiimm_64 (OP)
Legendary
*
Offline Offline

Activity: 1876
Merit: 1000


View Profile
January 31, 2012, 06:57:11 PM
 #31



make sure your cgminer is set to accept rpc calls from the network:

the following should be part of your conf file for cgminer:

"api-listen" : true,
"api-network" : true,
"api-port" : "4028",


for some reason i was never able to save my config, so i ended up always running it with all the commands from commandline, but i do have:

--api-listen --api-network

port is optional, if i dont want to change it, right ?

ps: what is the older cgminer that has the api functions ? (i have the latest one on "Z", but the other pcs might have older ones, and "omega" has 2.0.7, which i believe does not support API functions).

ps2: will try disabling my win7 firewall on "Z" now

is the :

Code:
Array
(
)
1

at the end, ok ?

EDIT: didnt work Sad

cgminer version 2.1.2 will support the api.
I have never run cgminer from command arguments. after 2 or 3 arguments, seams crazy. And I only put in what I need, mostly use defaults.  here is a sample from one of my boxes. 

and yes, if your using win7, you have to create a new rule to allow the port call.

Code:
{
"pools" : [
{
"url" : "http://us.eclipsemc.com:8337",
"user" : "jjiimm_64_miner14",
"pass" : "pass"
},
{
"url" : "http://test.ozco.in:8332",
"user" : "jjiimm-64.miner14",
"pass" : "pass"
},
{
"url" : "http://192.168.1.100:8332",
"user" : "user",
"pass" : "pass"
}
],

"intensity" : "7",
"gpu-engine" : "800",
"gpu-memclock" : "300",
"gpu-fan":      "50-85",
"api-listen" : true,
"api-network" : true,
"api-port" : "4028",
"auto-fan" : true
}


1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
rcocchiararo
Newbie
*
Offline Offline

Activity: 78
Merit: 0


View Profile
January 31, 2012, 07:09:50 PM
 #32

will have a look at that (i do have .bat and .sh scripts, so i double click them, or schedule them to run, its not like i do it by hand Tongue)

i downloaded what you linked on your first post.

I also tried "anubis", and it worked, but i preffer your simpler approach, with no db involved, but i can't get it to run Tongue
jjiimm_64 (OP)
Legendary
*
Offline Offline

Activity: 1876
Merit: 1000


View Profile
January 31, 2012, 07:16:57 PM
 #33

will have a look at that (i do have .bat and .sh scripts, so i double click them, or schedule them to run, its not like i do it by hand Tongue)

i downloaded what you linked on your first post.

I also tried "anubis", and it worked, but i preffer your simpler approach, with no db involved, but i can't get it to run Tongue

then it sounds like the firewall issue.  i had to create rules on my 2 win boxes.

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
rcocchiararo
Newbie
*
Offline Offline

Activity: 78
Merit: 0


View Profile
January 31, 2012, 07:39:34 PM
 #34

it wasnt the firewall (when i first ran it with the api enabled it autoamically asked for firewall permission)

after disabling it, nothing changed (and anubis worked fine with it activated).

Any chance i did something wrong with your .php ? (or that the one from the first post is not working Tongue)
jjiimm_64 (OP)
Legendary
*
Offline Offline

Activity: 1876
Merit: 1000


View Profile
January 31, 2012, 07:44:54 PM
 #35

it wasnt the firewall (when i first ran it with the api enabled it autoamically asked for firewall permission)

after disabling it, nothing changed (and anubis worked fine with it activated).

Any chance i did something wrong with your .php ? (or that the one from the first post is not working Tongue)

I think the php is working because of these lines

mineroffline:Z
mineroffline:LU
mineroffline:omega
mineroffline:MAMA-PC

so the code thinks the miners are offline.......  hmmmm

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
rcocchiararo
Newbie
*
Offline Offline

Activity: 78
Merit: 0


View Profile
January 31, 2012, 08:31:36 PM
 #36

what puzzles me is:

Array
(
)
1

that at the end.

If im not mistaken, your code uses the same "stuff" to get this info "anubis" uses, right ?

can't think why it wont work.

ps: i'll go back to struggle with compiling cgminer on debian x86, i cant remember, for the life of me, how i did it the first time, now it always tells me no openCL found Tongue (even if i point it to where the sdk is).
jjiimm_64 (OP)
Legendary
*
Offline Offline

Activity: 1876
Merit: 1000


View Profile
January 31, 2012, 08:55:50 PM
 #37

what puzzles me is:

Array
(
)
1

that at the end.

If im not mistaken, your code uses the same "stuff" to get this info "anubis" uses, right ?

can't think why it wont work.

ps: i'll go back to struggle with compiling cgminer on debian x86, i cant remember, for the life of me, how i did it the first time, now it always tells me no openCL found Tongue (even if i point it to where the sdk is).

At the end of the scripts I just do a print_r of a couple of arrays, the array is empty since it cannot connect to the miners, I can understand it being empty.

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
P4man
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile
January 31, 2012, 09:18:16 PM
 #38

cgminer 2.2 has a reworked API. Perhaps thats what you are struggling with?

rcocchiararo
Newbie
*
Offline Offline

Activity: 78
Merit: 0


View Profile
February 01, 2012, 01:00:05 AM
 #39

i see.

well, i failed to make it work.

My compilation of cgminer (whatever version) was failing because, somehow, my symlink to the SDK was broken.

I compiled 2.1.1, 2.1.2 and 2.2.1.

Still, anubis works, and this (which i like more) does not Sad

Ill continue withi this sometime in the future.
bitlane
Internet detective
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


I heart thebaron


View Profile
February 08, 2012, 02:29:55 AM
 #40

Well, I think I just stumbled on WHY a Database might be useful for maintaining near realtime (under 3 secs?) stats.....

I have been playing around with Javascript/Ajax updating of the stats, rather than my simple meta-refresh and my experience is, excessive RPC polling seems to have a negative effect on the Host Miner's overall performance....by as much as 5+% and creates a shit ton of undesirable network overhead in the process.

Now, keep in mind.... I'm a pretty shitty coder (a copy/paste guru at best) so unless you have stumbled onto something that is seemingly over my head, my current 10sec meta-refresh is going to be IT for my application, as it seems to play nice and have next to NO effect (negative) on anything else on the network.

jim, care to comment ? maybe a quick shove in the right direction if I am completely off the mark ?

Thanks,
bitlane.

Pages: « 1 [2] 3 4 5 6 7 »  All
  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!