Pages:
Author

Topic: ANUBIS - a CGMINER Web Frontend - page 14. (Read 83205 times)

legendary
Activity: 1260
Merit: 1000
February 21, 2012, 12:26:08 PM
Thanks P_Shep, that's fine, but you can create a new git and work on your branch and then if/when he comes back, request that he does a pull into the main branch.  That's what is nice about git - it lets you work on your own branch and lets other pull in the parts they want into their branches (or main trunk as the case may be)

Also - there was another web front end thingy floating around someone suggested merging with ANUBIS - I can't find that thread again, but it has some features ANUBIS was missing.  Does anyone know where that thread is?
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
February 21, 2012, 12:24:11 PM
...
Thanks for that Kano, I shall bear that all in mind. Anubis is pretty basic/dumb as far as checking what's going on right now.
For instance, the result of any set is ignored. If the get values are updated to what you want, it worked. If not, it didn't work Smiley The user is the feedback.
Well that's coz cgminer can't insist that the ATI driver change it to whatever you say.
However, you can, in your PHP (or whatever it is) check the value later and mention that it didn't change to the expected value.
But the API works that way coz that's how it works in the screen text interface, except the text interface sleeps for a second and then displays the settings - not having the API do that (go to sleep for a second before replying - which would not be ideal) also allows your app to decide if it wants to do that or not.
legendary
Activity: 1795
Merit: 1208
This is not OK.
February 21, 2012, 12:22:32 PM
Hey Inaba... I'll mail it to you, but I don't really want to upload it anywhere without OCMiners blessing. It is his afterall. I feel a bit awkward about taking it over without first consulting him. Would prefer to wait till he comes back, but I guess if he doesn't show up, I may have to. :/
legendary
Activity: 1260
Merit: 1000
February 21, 2012, 12:19:16 PM
Please post git of the your mods.  I would like to pull it and possibly start working on it.  I want to make CGminer my default miner, but it needs some work to fit my needs... might be that ANUBIS can be extended to add what I need.

I'd rather not work on older code if this fork is going to be the primary.
legendary
Activity: 1795
Merit: 1208
This is not OK.
February 21, 2012, 12:17:40 PM
And lastly what is an unavoidable bug in probably every piece of API usage software, that you can fix with 1.2:
At the moment you probably look for "MHS 5s" to find the 5s average.
That will actually fail if anyone starts cgminer with the --log option with some value other than 5.
You can find the correct value for '5' with the 'config' command in the new 1.2 "Log Interval" - which of course will be '5' unless someone runs cgminer with the --log option.
(The --log option has been in cgminer for a long time)
So if "Log Interval" is "10" then you should look for "MHS 10s" not "MHS 5s"

Hmm, so the received parameter name is "MHS XXX"? Where XXX is the preset inverval... OK.

Thanks for that Kano, I shall bear that all in mind. Anubis is pretty basic/dumb as far as checking what's going on right now.
For instance, the result of any set is ignored. If the get values are updated to what you want, it worked. If not, it didn't work Smiley The user is the feedback.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
February 21, 2012, 08:11:18 AM
Just so you know in advance - since that (and the earlier version I commented on) is the first time I've seen anyone use that part of the API (other than my example miner.php) :)

With the changes to the cgminer API coming up next time there is a release (API version 1.2), if you only display data - there is no difference.

However if you use the commands that change cgminer like the gpu settings commands, save, quit, switchpool etc. (seems rare that anyone does actually use anything but quit) it will return an error (Access denied to '???' command) with your cgminer settings if you use the same settings in a new version of cgminer as you currently use

You will need to use the previously added --api-allow and also use the new 1.2 change that I've just added to put a "W:" in front of IP addresses and IP address ranges that you want to allow to change cgminer (write/privileged access)

Basically the idea being that you can allow IP addresses to view cgminer but also restrict which IP addresses can change cgminer (or even allow none to)
One way you can test for this change is with the API version which will be 1.2
You can also test for privileged access with the new 1.2 command 'privileged'
... old versions of cgminer will give an error saying it doesn't exist, new versions will give an error if you don't have privileged access and a success message if you do have privileged access

And lastly what is an unavoidable bug in probably every piece of API usage software, that you can fix with 1.2:
At the moment you probably look for "MHS 5s" to find the 5s average.
That will actually fail if anyone starts cgminer with the --log option with some value other than 5.
You can find the correct value for '5' with the 'config' command in the new 1.2 "Log Interval" - which of course will be '5' unless someone runs cgminer with the --log option.
(The --log option has been in cgminer for a long time)
So if "Log Interval" is "10" then you should look for "MHS 10s" not "MHS 5s"
legendary
Activity: 1795
Merit: 1208
This is not OK.
February 20, 2012, 04:59:47 PM
Anyone wanna be a guinnea pig and help exercise my version? PM me your email, and I'll send it.
(Don't want to make it fully available until OCMiner reappears!)

Changes:
90% re-written (no lie!) OCMiner repeated a lot (A LOT) of code on each page, I moved it all to more easily maintained functions.
Changed database API from MYSQL specific, to PDO, which allows for nearly any database to be used. I personally use SQLite. I've only coded and tested for MYSQL and SQLite, but you can add your own fairly easily.
Changed the way some items are displayed:
- Max temp rather than avg temp
- Share ordering is more consistant across host/device display
- Added utility
- Added both absolute quantity and percentage of shares to each item
- Missing / invalid values displayed more gracefully
- Other nip/tucks here and there.
Added pool display to host data:
- Added priority pool selection.
Added new device management page:
- Start / stop / restart each device
- change all settings CGminer Allows:
-- GPU Clock
-- MEM clock
-- GPU voltage
-- Fan speed
-- Intensity

Caveats:
This won't work if you're moving up from OCminer's initial versions which didn't have the port selection. You'll have to step up to his 1.03 version (which adds the port to the database), then on to this.
Uses PDO database interface. I have no idea if your machine will support it (it *SHOULD* - the direct, database specific API is being depreciated).
I suck at javascript. Could do with some tidying up / beautification.

Crappy screen shots:

Hosts listing:


Host detail


Device detail


Host list expanded to show everything
legendary
Activity: 4354
Merit: 3614
what is this "brake pedal" you speak of?
February 20, 2012, 01:12:04 PM
yeah I got that impression too, hopefully he is OK and his wallet is accessible to him. even if he dropped this he still deserves the donation.

saw some cool stuff in this thread beyond the current version, hopefully there will be ongoing support and even more development.
legendary
Activity: 1795
Merit: 1208
This is not OK.
February 20, 2012, 12:59:18 PM
found a bug, if you add a miner that doesnt have --api-network and --api-listen (DOH!) its added "invisibly" - mine showed 4 hosts, and displayed 3. it slowed it down on refresh by LOTS. cant delete it in anubus as its not visible. I deleted it out of mysql though so its all good now.

I've fixed that. Just about done with my mods.

Thing is, OCminer seems to have disappeared, so I'm not sure what to do with what I've done :/
legendary
Activity: 4354
Merit: 3614
what is this "brake pedal" you speak of?
February 20, 2012, 11:55:08 AM
just got around to trying this out. nice! although I found out Im dumber than I thought as it took an hour to get it running even with easyphp. I am a total noob with webservers but Im alernin. on win 7 here on this box.

found a bug, if you add a miner that doesnt have --api-network and --api-listen (DOH!) its added "invisibly" - mine showed 4 hosts, and displayed 3. it slowed it down on refresh by LOTS. cant delete it in anubus as its not visible. I deleted it out of mysql though so its all good now.

sent 1.112211 BTC to ocminer. thanks!

legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
February 17, 2012, 11:45:17 PM
Guys,

 Sorry about my dumb question...

 I'm running CGMiner for a couple months and, today I restart all my mining rigs and start ANUBIS and... I'm seeing a LOTS of "Discards", some hosts have "97.12% of Discarted"...

 What is that means?!!?

Best,
Thiago


I figured that out! Tks!
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
February 17, 2012, 08:49:56 PM
Guys,

 Sorry about my dumb question...

 I'm running CGMiner for a couple months and, today I restart all my mining rigs and start ANUBIS and... I'm seeing a LOTS of "Discards", some hosts have "97.12% of Discarted"...

 What is that means?!!?

Best,
Thiago
hero member
Activity: 742
Merit: 500
February 15, 2012, 04:51:43 PM

Not sure if you have a feature request list, but I'd put this:

-- Graphs
-- ways to explore historical information? (like, how long has that card been throttling?)
-- configurable notifications, and way to test them?


I was working on integrating cgminer with Nagios and Cacti.  This would give all the historical information. I've been busy working on another project though, so I haven't done much with it recently.
legendary
Activity: 1795
Merit: 1208
This is not OK.
February 15, 2012, 01:02:23 PM

Not sure if you have a feature request list, but I'd put this:

-- Graphs
-- ways to explore historical information? (like, how long has that card been throttling?)
-- configurable notifications, and way to test them?



You'll have to find another app to do that. Anubis is a PHP script, it just runs once when the page loads. It can't do any monitoring / data logging etc. It just shows snap-shots of the current situation.
sr. member
Activity: 467
Merit: 250
February 15, 2012, 01:42:45 AM

Not sure if you have a feature request list, but I'd put this:

-- Graphs
-- ways to explore historical information? (like, how long has that card been throttling?)
-- configurable notifications, and way to test them?

sr. member
Activity: 467
Merit: 250
February 14, 2012, 06:01:35 PM
wanted to say, got this working today, nice job.. great software, appreciate sharing.. Smiley

Couple suggestions for things to add to your initial post:

Requirements:
-- needs php, php-mysql

php config :
set "short_open_tag" to "enabled" in /etc/php.ini
legendary
Activity: 1795
Merit: 1208
This is not OK.
February 12, 2012, 02:18:47 AM
Got it working now Smiley
It ain't pretty, but it does what it should.

Still would like for a single clk setting to force that one clk, then sending a range value ('500-800' etc.) to re-enable the gpu-auto. Same for fan speed.
legendary
Activity: 1876
Merit: 1000
February 11, 2012, 09:14:02 PM
Nope Smiley
There was bug fix in 2.2.2 for that (but you shouldn't use 2.2.2 ever) so using any version after 2.2.2 fixes it.

That I reported in the thread:
https://bitcointalksearch.org/topic/m.731640

And was then mentioned in the following update where the pull request was put in:
https://bitcointalksearch.org/topic/m.733660
(2nd last one)

So what I guess is happening is you are using a 2.2.1 or earlier cgminer and it reports the GPU 0 intensity for all GPUs even if they are different.
Setting them works fine and if you look at the cgminer screen it will show them changing independently but the API reports the value of GPU0 for all GPUs

Update cgminer Smiley

sorry bout that....  forums getting HUGE, and yes, search works well. 
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
February 11, 2012, 09:01:22 PM
Quoting myself Tongue

Heh.  I just re-read the original post and realized that I misinterpreted it.  I read "Intensity should stay set" as "it's pointless to have the ability to change it through the API".

This is what I get for reading the post out of context.  Cheesy
Nah - I quoted myself and explained in for that reason - I could see there could have been some confusion of what I meant Smiley
hero member
Activity: 642
Merit: 500
February 11, 2012, 08:56:49 PM
Quoting myself Tongue

Heh.  I just re-read the original post and realized that I misinterpreted it.  I read "Intensity should stay set" as "it's pointless to have the ability to change it through the API".

This is what I get for reading the post out of context.  Cheesy
Pages:
Jump to: