Pages:
Author

Topic: ANUBIS - a CGMINER Web Frontend - page 8. (Read 83190 times)

legendary
Activity: 1795
Merit: 1208
This is not OK.
February 22, 2013, 11:00:50 AM
php files are php files. They can be run on pretty much any platform.
In DDWRT there is lighttpd which is the php web server... look on ddwrt on how to get that running, it's not too tricky (copy the files to the web share dir, start the service and maybe a config file to edit).
hero member
Activity: 784
Merit: 500
February 21, 2013, 07:54:41 PM
Is it possible to run this on a ddwrt ?

Are there any tutorials aviable (for all platforms)?
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
November 30, 2012, 10:16:37 AM
Wow, this is quite awesome.  I've often wondered why this feature wasn't in any of the mining applications. 
cgminer has one - miner.php
Reasonably simple, but it's had one, for quite a while ...
member
Activity: 66
Merit: 10
November 27, 2012, 11:25:31 PM
Wow, this is quite awesome.  I've often wondered why this feature wasn't in any of the mining applications. 
sr. member
Activity: 383
Merit: 250
November 18, 2012, 04:09:53 PM
Added the new API features.

I just updated and now my login credentials are no longer asked for. I copied over my old auth.inc.php but no joy. Are you now using a different method for authentication?

To show bitcoin balance without orphans you might want to change this line in acc.inc.php:

$blockchain_addr_options = '?format=json&limit=0';

to this:

$blockchain_addr_options = '?format=json&limit=0&filter=5';

I keep having to change it manually on updates.

I never added any login to Anubis. Ralree did though.

what does the filter=5 do?

I stated what filter=5 does.

It filters out orphaned blocks from your query. The returned values are minus orphans, so you get your true balance.

Regarding login in Anubis, all I know is the last time it was updated on git it no longer works.
legendary
Activity: 1795
Merit: 1208
This is not OK.
November 18, 2012, 01:34:33 PM
Added the new API features.

I just updated and now my login credentials are no longer asked for. I copied over my old auth.inc.php but no joy. Are you now using a different method for authentication?

To show bitcoin balance without orphans you might want to change this line in acc.inc.php:

$blockchain_addr_options = '?format=json&limit=0';

to this:

$blockchain_addr_options = '?format=json&limit=0&filter=5';

I keep having to change it manually on updates.

I never added any login to Anubis. Ralree did though.

what does the filter=5 do?
sr. member
Activity: 383
Merit: 250
November 18, 2012, 09:50:07 AM
Added the new API features.

I just updated and now my login credentials are no longer asked for. I copied over my old auth.inc.php but no joy. Are you now using a different method for authentication?

To show bitcoin balance without orphans you might want to change this line in acc.inc.php:

$blockchain_addr_options = '?format=json&limit=0';

to this:

$blockchain_addr_options = '?format=json&limit=0&filter=5';

I keep having to change it manually on updates.
legendary
Activity: 1795
Merit: 1208
This is not OK.
October 21, 2012, 01:42:40 AM
Added the new API features.
hero member
Activity: 518
Merit: 500
Manateeeeeeees
October 14, 2012, 12:28:59 PM
Yeah simply open a port on your firewall, or use something like STUN/TURN/ICE to get around it.  Alternatively, you could host ANUBIS somewhere public, and just use the API through your firewall to your miners in read-only mode.
legendary
Activity: 916
Merit: 1003
October 14, 2012, 06:18:25 AM
this looks great, but i`m still looking for a solution to get this kind of info from my miners, with them beign behind a firewall


Is it a firewall at home or work?  If it's at home you have to set up your router to forward port 80 to your web server.

If it's at work I doubt they'd want you running a web server on their network.
sr. member
Activity: 458
Merit: 250
beast at work
October 13, 2012, 08:32:38 PM
this looks great, but i`m still looking for a solution to get this kind of info from my miners, with them beign behind a firewall
hero member
Activity: 518
Merit: 500
Manateeeeeeees
October 08, 2012, 09:10:24 PM
Hello all. What is DISCARDS column? I have about 30% discards. What does it mean?
AFAIK it's when there's a new block detected and you throw away your current batch of work you've been assigned.  You lose nothing to discards, only rejects.
newbie
Activity: 13
Merit: 0
September 19, 2012, 06:20:18 AM
Hello all. What is DISCARDS column? I have about 30% discards. What does it mean?
legendary
Activity: 4354
Merit: 3614
what is this "brake pedal" you speak of?
September 11, 2012, 07:52:24 PM
I use easy php. made for local network web serving only, and easy to setup. everything you need for anubis in one package.

http://www.easyphp.org/
donator
Activity: 446
Merit: 262
Interesting.
September 11, 2012, 05:59:24 PM
Installation is simple. You need a MySQL/PHP enabled host within your rig-network.
ocminer


Hey,

A MySQL/PHP host, is a MySQL/PHP server right?
What software do you recomend?

I use windows 7.
hero member
Activity: 518
Merit: 500
Manateeeeeeees
September 04, 2012, 04:24:20 PM
New changes are good, but dark colors on black = headache after 2 minutes.

Easy to fix in CSS and/or GIMP/Photoshop/etc. for the images.  It looks fine on my monitors, but maybe I run at a higher brightness than most..

There's a new feature that requires some effort in apache: read-only stats.  Example here:

https://ralree.dyndns.org/ANUBIS/read-only/allgpus.php

The non-read-only directory is just /ANUBIS.  HTTP Auth is enabled on the entire webserver EXCEPT for some of the media directories in /ANUBIS and the read-only directory.  The read-only scripts run with SELECT privileges in mysql instead of the full gamut.  Changes are all in github.

https://github.com/hank/ANUBIS

Here's a quick and dirty example apache config:
Code:
        
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all

                AuthUserFile /some/path/outside/served/directories/users
                AuthName "Area protected by belligerent drunk."
                AuthGroupFile /dev/null
                AuthType Basic
                Require valid-user
       


       
                Satisfy Any
                Allow from all
       

legendary
Activity: 1260
Merit: 1000
August 31, 2012, 09:08:45 PM
New changes are good, but dark colors on black = headache after 2 minutes.
legendary
Activity: 1795
Merit: 1208
This is not OK.
August 29, 2012, 11:30:59 AM
I did a quick and dirty add column when I added a field to enter the config address.
It's certainly quick to re-configure everything (dpending on how large your system is), but that's still greater than 0. Also, you have to delete the database first... login to mysql, enter commands...
hero member
Activity: 518
Merit: 500
Manateeeeeeees
August 29, 2012, 11:23:43 AM
ralree: is it possible to make a "view only" version or make it configurable somehow?

it would be very useful if you wanted to create a anubis site where others could view it without having to worry about them screwing up your configuration.

Thanks for this contribution.

Tom

That's in my plans.  Right now I just have it hosted over SSL with HTTP Basic Authentication, but I want to make it so for non-authorized clients (people clicking cancel on the HTTP Basic Auth), they can see the view-only version like you're suggesting.  I messed around with copying/symlinking the code to a different location and modifying configs, but then I realized it's hard to configure it so it's view-only without turning off API writing in cgminer.  I'll figure out a way to do that soon when I have time.

2 things:

1. config.inc.php is missing - had to copy from my version (mybe there's a better way of doing this)
2. For those upgrading from existing installation, you need to add the extra columns to the database.

1. Thanks for the tip - I meant to commit a config.inc.php.example file like I did with the auth file, but I must have forgotten to.  I'll fix that up shortly.
2. It would be nice to make some scripts for upgrading the schema - keeping a schema version in the database and making the right alter table statements to upgrade.  Of course, I don't expect the schema to change all that often, and it's so quick to configure it's probably not worth the effort.  For now, I'm just going to keep it as is, but if I end up developing this a lot I'll add in DB migrations.
hero member
Activity: 896
Merit: 1000
Buy this account on March-2019. New Owner here!!
August 21, 2012, 01:54:34 PM
I decided to fork this project and put some work into it.  Here's the github: https://github.com/hank/ANUBIS

I added AJAX updating to the index page (would be nice to port that other places too) with a configuration option for the update timer (defaults to 5 seconds, access in the config page).  It keeps it in the configuration table of the database like it should.  I update the schema, so it should be plug-and-play.  I also made it so if you put in fan speeds of zero for yellow and red, your fan readout will always be green (I keep my fans at 100% all the time, and I hate seeing red).  Also, someone suggested making temp colors red on zero readings - I did this for at least some temp readouts, but I'm sure there's some I missed.

I also did a BUNCH of work to the CSS and images for the theme.  Here's what I came up with:


I hope you all enjoy!

ralree: is it possible to make a "view only" version or make it configurable somehow?

it would be very useful if you wanted to create a anubis site where others could view it without having to worry about them screwing up your configuration.

Thanks for this contribution.

Tom
Pages:
Jump to: