nZEDb

nZEDb => Modifications => Topic started by: NZBmets on 2014-06-12, 05:12:06 pm

Title: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-06-12, 05:12:06 pm
Terribly early in the port process, but I thought a couple of folks might find this interesting.
I've started to port newzdash to work with our beloved nZEDb here:
https://github.com/NZBmets/nZEDash (https://github.com/NZBmets/nZEDash)

I don't think it fair to even call this Alpha atm, it is more of a dirty hack.
Please feel free to fork and help the process if interested.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: d3athsd00r on 2014-06-12, 07:16:02 pm
Sweet. Never heard of newzdash before since I've only used nZEDb, but if you can get it to work well it should be pretty cool :D
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: david_ritterhous on 2014-06-13, 04:04:05 am
I dont get it, what does it do?  Thanks
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-06-13, 04:29:10 am
It is an HTML dashboard that will give you some status of ZED.
Scroll to the bottom and look at the screenshots from the original.

https://github.com/tssgery/newzdash (https://github.com/tssgery/newzdash)
(A screenshot has been added to the github repo of nZEDash)

I find the main page most useful as it gives an idea of near-time status, for example, is an update available?, etc.
As I run on a headless server it is a quick way I can get information without SSH'ing in and attaching to tmux.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: bobtongue on 2014-06-13, 06:22:43 am
NZBmets!
This is better than the original. I like it a LOT!. Good work.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-06-13, 09:26:14 am
While I'd like to take some credit, I've done little at this point but I'm hopeful to get it to be ZED ported.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-06-13, 05:22:32 pm
A picture of the work-in-progress.
You can see the notification of the available update [bottom left]. Other sections with values are working.
Those with a 0 or ERROR are being recoded.

(https://github.com/NZBmets/nZEDash/blob/screenshots/screenshots/2014-06-21%2009_25_23-nZEDash-Dashboard.jpg?raw=true)
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: crzykidd on 2014-06-14, 02:25:17 pm
This looks really cool.  However I am having one issue.

I am installed at http://server:81   
I can load the index.php after I did the install, however if I click any links on the side "dashboard", "statistics", etc.  I get an error:
Code: [Select]
Not Found

The requested URL /nZEDash/index.php was not found on this server.

I am sure it is something with my config, but not sure, since I can hit the index.php directly.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-06-14, 04:45:30 pm
Sounds like you need to ...
Quote
Alter .htaccess RewriteBase as necessary for your install (.e.g 'RewriteBase /')
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: crzykidd on 2014-06-14, 05:49:24 pm
DOH!.    Thanks, I looked at that file like 5 times, and just spaced right over the default /nZEDash/

Couple of other config questions.
1. I can't get the TMUX integration to work.  The only default.sh file I have is in the Powerline theme directory.  So where do I create the deault.sh file an add:
Code: [Select]
define('TMUX_SHARED_SECRET', 'XXXXXXXXXXXXXXXXXX');
2.  Nothing shows up in recently added section.
3.  No pending releases are shown in statistics.

I am running on Percona 5.6 with table groups enabled if that matters?

Thanks again,
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-06-14, 05:54:02 pm
None of the tmux bridge has been looked at yet. It is still pre-alpha and really early in the process.
My reason for putting the status (initiative) here in the forums is in hopes of a couple people with coding skills helping the process along.

Restated, expect many things not to function properly if at all until much later.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: crzykidd on 2014-06-14, 06:02:59 pm
No worries.  Happy to test if you need that when you are ready :)
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: censor on 2014-07-22, 11:58:19 am
This is great! I've been waiting for someone to pick up where we left off and port it to nZEDb, i'll give it a spin right away =)
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-07-22, 12:05:21 pm
This is great! I've been waiting for someone to pick up where we left off and port it to nZEDb, i'll give it a spin right away =)

Thanks for the positive feedback. I haven't had the time to continue to work on it recently (although it is currently functional) but I'm hopeful to take further advantage of the recent changes on the dev branch and reuse counts where it can.  So much to do ... so little time ...
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: bobtongue on 2014-07-23, 06:06:50 am
I had this installed when you first posted and it worked fine. I decided to start from scratch with it since I havent updated in a while and now I can't seem to get it installed. I keep getting an error on step 3 of the install. the error is:
Errors Exist:
Unable to locate config.php in /var/www/XXXXXXXX.com/htdocs/nZEDb/www.

The file is in that directory, so I am not quite sure what it is looking for. Can you help?
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-07-23, 08:49:30 am
I had this installed when you first posted and it worked fine. I decided to start from scratch with it since I havent updated in a while and now I can't seem to get it installed. I keep getting an error on step 3 of the install. the error is:
Errors Exist:
Unable to locate config.php in /var/www/XXXXXXXX.com/htdocs/nZEDb/www.

The file is in that directory, so I am not quite sure what it is looking for. Can you help?

Sounds like a rebase / apache issue at first thought.

Quote
Alter .htaccess RewriteBase as necessary for your install (.e.g 'RewriteBase /')
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: bobtongue on 2014-07-23, 11:14:18 am


Sounds like a rebase / apache issue at first thought.

I don't think so since it is looking in the absolute path (/var/www/host/htdocs/nZEDb)
I assume it is looking for nZEDb's config file since it grabs the path from the path to nZEDb install.
I set up nZEDash as a virtual host not a subdirectory of nZEDb.
:::::::Never Mind::::::: Just answered my own question. Had to add a directory statement into vhost config to go to a directory outside the root.

Now that that is sorted, I am getting an error:

Array to string conversion in /var/www/site.com/htdocs/nZEDash/lib/dashdata.php on line 402, referer: http://dash.site.com/index.php
[Wed Jul 23 13:52:50 2014] [error] [client 192.168.1.1] PHP Notice:  Undefined variable: request_hours in /var/www/site.com/htdocs/nZEDash/lib/dashdata.php on line 416, referer: http://dash.site.com/index.php

OK, so I turned off error reporting (~E_NOTICE) and now it looks pretty good.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: Drefsab on 2014-07-29, 07:59:52 am
This looks like something I would love to use. I cioned your master git and installed and configured this however im seeing errors when trying to get to the main index.

PHP message: PHP Fatal error:  require_once(): Failed opening required 'WWW_DIR/lib/releases.php' (include_path='/home/drefsab/public_html/nZEDb/www/:.:/usr/share/php:/usr/share/pear') in /home/drefsab/public_html/newzdash/lib/dashdata.php on line 5" while reading response header from upstream, client: 212.23.9.213, server: localhost, request: "GET /newzdash/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "drefsab.co.uk", referrer: "http://drefsab.co.uk/newzdash/configure.php"

Looking at this its looking for releases.php which as far as I can tell doesnt exist as its actually lodacted in the nZEDb/misc/update/nix/multiprocessing folder.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-08-01, 07:09:42 am
There have been some significant (and frankly amazing) changes to the Dev nZEDb branch over the last couple of days including the 'multiprocessing' subdirectory. This may be a resultant condition and I'll have to have a look to confirm. Unfortunately that will be in a couple days as time allows.  I'll confirm and revert here when I am able.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-08-01, 06:27:28 pm
@Drefsab could you confirm the repository you pulled from?

There are a number of 'newznab' references in your post and I believe they have all been removed except for some remnants in the sql tables. After you confirm you are indeed pulling from my repo I can continue to look as I am able. If the link in your post is your install, it is indeed the wrong repo.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: Drefsab on 2014-08-05, 07:37:58 pm
I am using your main repo which I cloned using:

git clone https://github.com/NZBmets/nZEDash.git

I've checked and its up to date.

I didn't see any reference in the error I posted to newznab though. I did supect the recent dev changes where part of the problem. So much has changed for the better.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: Nxt on 2014-10-20, 01:26:12 pm
So I take it this project is dead being no commits since 4 months ago?
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2014-10-22, 04:45:20 am
Not dead, just haven't had time to write code lately. The 'basics' work but the tmux integration hasn't been looked at.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: BewareAlbatross on 2015-01-30, 02:44:01 pm
Wanted to say this works absolutely perfectly for my needs, since I hate tmux haha. No idea if it works with that or not but for me it loads insanely fast, seems to be causing active on memcached, and gives me a great way to keep an eye on whether screen is behaving itself indirectly with my eyeballs, sanity-checking timestamps and totals.

One thing I did notice though, if this is still under maintenance, is that every time I go into the dashboard it cycles the same news. That seems like something that could be easily cached and then left as a displayed log instead of iterated with JavaScript for new display. I can screencap if you'd like. It does cause some lag so I figure it's worth mentioning. I'll try to fork soon and see what I can contribute myself. :)
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: McFuzz on 2015-03-29, 12:54:23 am
This thread pleases this overlord.

But really - loved the Newzdash and gotta give this a try too!
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: gravitymaster on 2015-06-23, 11:56:51 pm
So what happen to the source?? No longer on github  :-[
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2015-06-24, 05:27:39 am
Died on the vine unfortunately ... never got any traction
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: gravitymaster on 2015-06-27, 10:50:11 pm
Any way to get the code?  Want to work on this some more.
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: NZBmets on 2015-06-28, 05:11:16 am
Any way to get the code?  Want to work on this some more.

Original code from which it spawned: https://github.com/tssgery/newzdash
Title: Re: nZEDash - a port of newzdash for nZEDb
Post by: Mr. Happy on 2015-09-14, 04:41:53 am
Anybody still got the source (from nzbMets) laying around or could someone tell me what was changed in it (compared to newzdash)??