Network Status Page

OK, I've updated the config.ini location in functions.php and changed the services and links. Getting there!

The trakt recently viewed is incorrect though. Not sure why it thinks I'm watching Alpha House.

Still need to enable (local) bandwidth monitoring.

Hmm I haven't used the trakt thing (its not on the Linux version of this software).

I'll work on a script for local bandwidth monitoring for macs. 

Hmm I haven't used the trakt thing (its not on the Linux version of this software).

I'll work on a script for local bandwidth monitoring for macs. 

Not so fussed about trakt to be honest. I have plexWatch for keeping stats of views.

It's the CPU/Disk space/Bandwidth monitoring that I'm more interested in.

What would be really useful, is to have some sort of chart/graph that shows peaks for usage. Not sure if this is possible...

Anyway, looking forward to your script for local bandwidth monitoring. Thanks again for all your help.

Lol my apologies for bothering people on previous posts... got the initial page to load

But loads of 500 Internal Server Error

Apologies, as not much of an expert when it comes to php!

Just had a quick go at getting this running on an unRAID server.. some of the page loads but this error message is repeated in various parts of the webpage.  Anyone able to offer any clues of what may be the cause?

Parse error: syntax error, unexpected '[' in /mnt/cache/web/assets/php/functions.php on line 287
Very nice app!

A windows version is it possible?

Thank you in advance for your response

Hello,

I installed the linux version everything works except the display images plex.

The url type plex.php? = Http ... the image is correct but still nothing appears.

Do you have an idea?

Thank you for your answer!

Does anyone know why my lines are working correctly? I've looked at them and don't see an error.
It says there is a parse error in lines 287.
I've pasted 287 -302
 
 
if ($name != "") echo '';
echo '
';
if ($name != "")
echo $name . ": ";
echo number_format($dup, 0) . "%";
echo '
';
echo '
';
echo '
';
echo '
';
}
 
function ping()
{
global $local_pfsense_ip;
global $ping_ip;
 
$clientIP = get_client_ip();
//$pingIP = '8.8.8.8';
if($clientIP != $local_pfsense_ip) {
$pingIP = $clientIP;
}
Does anyone know why my lines are working correctly? I've looked at them and don't see an error.
It says there is a parse error in lines 287.
I've pasted 287 -302
 
 
if ($name != "") echo '';
echo '
';
if ($name != "")
echo $name . ": ";
echo number_format($dup, 0) . "%";
echo '
';
echo '
';
echo '
';
echo '
';
}
 
function ping()
{
global $local_pfsense_ip;
global $ping_ip;
 
$clientIP = get_client_ip();
//$pingIP = '8.8.8.8';
if($clientIP != $local_pfsense_ip) {
$pingIP = $clientIP;
}

What version / repo are you using?

My lines 287 - 293 look like this but I'm using my own custom version:

			echo $name . ": ";
			echo number_format($dup, 0) . "%";
		echo '
'; echo '
'; echo '
'; echo ''; }

I will also post the entire functions for both the printDiskBar function and the ping function as that might also help:

printDiskBar (the one where your error is at):

function printDiskBar($dup, $name = "", $dsu, $dts)
{
	// Using autoByteFormat() the amount of space will be formatted as GB or TB as needed.
	if ($dup < 90)
	{
		$progress = "progress-bar";
	}
	else if (($dup >= 90) && ($dup < 95))
	{
		$progress = "progress-bar progress-bar-warning";
	}
	else
	{
		$progress = "progress-bar progress-bar-danger";
	}
if ($name != "") echo '<!-- ' . $name . ' -->';
echo '<div class="exolight">';
	if ($name != "")
		echo $name . ": ";
		echo number_format($dup, 0) . "%";
	echo '<div rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="' . byteFormat(autoByteFormat($dsu)[0], autoByteFormat($dsu)[1], autoByteFormat($dsu)[2]) . ' free out of ' . byteFormat(autoByteFormat($dts)[0], autoByteFormat($dts)[1], autoByteFormat($dts)[2]) . '" class="progress">';
		echo '<div class="'. $progress .'" style="width: ' . $dup . '%"></div>';
	echo '</div>';
echo '</div>';

}

ping function:

function ping()
{
	global $local_pfsense_ip;
	global $ping_ip;
$clientIP = get_client_ip();
//$pingIP = '8.8.8.8';
if($clientIP != $local_pfsense_ip) {
	$pingIP = $clientIP;
}
$terminal_output = shell_exec('ping -c 5 -q '.$ping_ip);
// If using something besides OS X you might want to customize the following variables for proper output of average ping.
$findme_start = '= ';
$start = strpos($terminal_output, $findme_start);
$ping_return_value_str = substr($terminal_output, ($start +2), 100);
$findme_stop1 = '.';
$stop = strpos($ping_return_value_str, $findme_stop1);
$findme_avgPing_decimal = '.';
$avgPing_decimal = strpos($ping_return_value_str, $findme_avgPing_decimal, 6);
$findme_forward_slash = '/';
$avgPing_forward_slash = strpos($ping_return_value_str, $findme_forward_slash);
$avgPing = substr($ping_return_value_str, ($stop + 5), ($avgPing_decimal - $avgPing_forward_slash - 1));
return $avgPing;

}

Again, it really depends on what version / repo you are using.

OK, I've updated the config.ini location in functions.php and changed the services and links. Getting there!

The trakt recently viewed is incorrect though. Not sure why it thinks I'm watching Alpha House.

Still need to enable (local) bandwidth monitoring.

ScreenShot2014-01-08at164931_zps66bba669

Did you change the config.ini value for the trakt username to your own?

Pushed version 0.2.0 to github.

Mainly just visual refinements and more info about whats being played and by who.

0.2.0 Change log:

* Updated bandwidth_ajax.php
    * Added support for multi wan
    * Changed how ping is displayed
* Removed header from disk_space_ajax.php
* Reduced the column width of Now Playing section so it looks better
* Added progress bars to Now Playing section
* Reduced movie & episode summary length to 50 words
* Added name of Plex user to now playing status
* Added play or pause icons to now playing status for each stream
* Added getTranscodeSessions fuction to give me the number of sessions that require transcoding
* Added getPing function that includes source IP, required to ping from various NICs
* Added countWords & limitWords functions
* Updated SabThrottle for multi WAN support
* If SAB is downloading show the speed in the service area
* Weather panel
    * Added sun rise & sun set times
    * Wind speed reads "calm" if speed is 0
* Moved javascript to the end of index.php
* Updated Mobile_Detect to 2.8.0

1hfF8+.png

1eTEu+.png

Is there support for two servers? i.e showing info from both on one page? p.s on ubuntu

Support for two servers is not built in my default but it wouldn't be too difficult to add. Feel free to branch the code and make it so. One of the recent branches goal is to rewrite this project using python and socketIO so that the server pushes out events rather than the clients polling for updates. If you look at the github repo there have been quite a few branches that have done some incredible things in the past.

Any got this to work on Windows yet? I've been trying all day, but I can't get it to display anything. I've got PHP installed in IIS, and it does load the page somewhat. However it won't populate any of the frames where the content should be. 

I guess you need plexpass in order for this to work correctly? May tried to rewrite the Linux version to work with XBMC

I worked around a lot of the issues I was having with this (love this by the way). For some reason my hosts primarily my Plex, Sab and Sickbeard hosts show up as offline. Also my trakt isn't showing any images of what is being watched looks like a broke link but I cannot figure out where it's broken. Is there a fix for this?

Edit: nevermind on the offline online problem. It's just the trakt issue not loading anything.

Apparently nobody has updated to your latest 0.2.0 release yet for the linux versions. I'm probably going to fork it and make it linux friendly. I'll try to keep it maintained along with your changes. I will likely also build a windows version for all of you who would like one as well. Depending on demand I may or may not dockerize this for my Unraid box too. I've done a bunch of work tonight to familiarize myself with your code structure, so I'll get cracking on code in the next day or two.

Update:

So my first coding session went quite well. I'm making a lot of under the hood changes to better support any OS. I'm still cleaning up some areas of the codebase that were hardcoded for the OP server and making them point to the config.ini file. When I'm done with that I'm going to tackle cross platform modularity and then make UI elements more dynamic and user specifiable from the config file as well. I should be able to do most of this over the weekend, not necessarily totally stable but it'll at least be a good first pass. I'll do a release sometime after that. I'm trying to keep my changes tame enough that I can still easily, or relatively at least, take in new changes from ryanc when he pushes out new features.

Update 2:

Added a few new features that I wanted in the app. I'm now "feature" complete for myself and I'll start the work to get things squared away for a cross-plat launch. Here's a teaser. This is running on unRaid at the moment with bandwidth coming from OpenWRT.

Man i wish this was for windows. this is awesome! I would want the posters to be a list of recently added shows/movies

I'm going to be spending tonight working on getting it ready for windows. There are only a handful of functions that will need to be edited to allow for this, and the load section of the app will need to have the UI tweaked. Would you like a development/beta build when I have something hacked together?

I'm going to be spending tonight working on getting it ready for windows. There are only a handful of functions that will need to be edited to allow for this, and the load section of the app will need to have the UI tweaked. Would you like a development/beta build when I have something hacked together?

Well of course. That would be great. contact me @ neal    Billy   @   Gmail    .com