PlexWWWatch

Hi,

It seems that there is an issue with the main user (myself in my case). When I go into the users list, I can display information about all users except myself. It displays an empty list without even my username on the top left. 

I have the following error (in bower.js):

Error: 'undefined' is not an object (evaluating '$scope.user.watched.length')
http://192.168.3.44/PlexWWWatch/public/build/script.js:493:32
$digest@http://192.168.3.44/PlexWWWatch/public/build/bower.js:100:468
$apply@http://192.168.3.44/PlexWWWatch/public/build/bower.js:103:271
f@http://192.168.3.44/PlexWWWatch/public/build/bower.js:67:126
H@http://192.168.3.44/PlexWWWatch/public/build/bower.js:71:280
onreadystatechange@http://192.168.3.44/PlexWWWatch/public/build/bower.js:72:225

Hi,

It seems that there is an issue with the main user (myself in my case). When I go into the users list, I can display information about all users except myself. It displays an empty list without even my username on the top left. 

I have the following error (in bower.js):

Error: 'undefined' is not an object (evaluating '$scope.user.watched.length')
http://192.168.3.44/PlexWWWatch/public/build/script.js:493:32
$digest@http://192.168.3.44/PlexWWWatch/public/build/bower.js:100:468
$apply@http://192.168.3.44/PlexWWWatch/public/build/bower.js:103:271
f@http://192.168.3.44/PlexWWWatch/public/build/bower.js:67:126
H@http://192.168.3.44/PlexWWWatch/public/build/bower.js:71:280
onreadystatechange@http://192.168.3.44/PlexWWWatch/public/build/bower.js:72:225

Now if you get the latest release it shouldn't break.

But the problem is that something throws an error while trying to build your user.. If you (as before) comment out the try/catch in backend/users.php in the if (isset...) branch and then visit PlexWWWatch/backend/users.php?user= and say what error you get?

Updated but still the same issue. Commented the try/catch block, except the following line with same result:

echo json_encode($plexWWWatch->plexWatch()->users());

It’s the other branch of the if statement that you want uncommented, ->user($_GET[“user”])

Switch the content in PlexWWWatch/public/backend/users.php with: 

<?php

require_once(DIR . “/…/…/PlexWWWatch.php”);

$plexWWWatch = new PlexWWWatch();

if (isset($_GET[“user”])) {
$username = $_GET[“user”];
// try {
echo json_encode($plexWWWatch->plexWatch()->user($username));
// } catch (Exception $e) {
// echo “{watched: []}”;
// }
} else {
try {
echo json_encode($plexWWWatch->plexWatch()->users());
} catch (Exception $e) {
echo “[]”;
}
}

?>

And then visit http://192.168.3.44/PlexWWWatch/public/backed/users.php?user= and se what kind of error you get. Or if you can se anything in apaches error log?

Hi,

Thanks for your help. Unfortunately, the same problem is still there.

Concernant the url, It appears in a different format here:

http://192.168.3.44/PlexWWWatch/public/#/users/radar

Is that normal?

Hi,

Thanks for your help. Unfortunately, the same problem is still there.

Concernant the url, It appears in a different format here:

http://192.168.3.44/PlexWWWatch/public/#/users/radar

Is that normal?

That's the "frontend" url, the error will be in the backend. Try to visit http://192.168.3.44/PlexWWWatch/public/backend/users.php?user=radar

Version 0.1 Released!
 
Now all the basic stuff works.
- Recently added
- Recently watched
- Users list
- User view
- Details view for Seasons, Episodes and Movies
- Basic charts
 
Enjoy! https://github.com/Gyran/PlexWWWatch
 
 




Full album: http://imgur.com/a/4e0ti

Great. Thanks.

Colors, however, do not seem adapted. Very difficult to read the axis values.

hi,

i ´m using a qnap NAS with a  embeded Linux. i try to get the plexWatch service running.
so far i downloaded  plexWatch.pl and config.pl-dist to /opt/plexWatch/

from that point on no luck with the further installation steps​!

first problem ist that i canot install the perl requirements with:

sudo apt-get install libwww-perl
sudo apt-get install libwww-curl-perl
sudo apt-get install libxml-simple-perl
sudo apt-get install libtime-duration-perl
sudo apt-get install libtime-modules-perl
sudo apt-get install libdbd-sqlite3-perl
sudo apt-get install perl-doc

since the comand "​ apt-get install​" ​ doesnt exist on my linux version.

i found out that i can install qpkg with the coman ​ "​iqpk​"​

or i can download stuff with "​wget​"​.


 i also saw that im able to install optware qpkg that could be also somthing i need.....
 
does anybody could help me getting plexWatch run on my Server?
 

 

thanks a lot
 

You should ask the question on the plex/watch thread.

So I have this script running in MAMP, I am able to get to the settings page but I can't seem to get the stats to work. I'm guessing its some sort of path issue. I have the plexWatch.db file from my server (remote server) sitting in the /public/ folder. What should I be making the plex watch database path in the settings?

It must be the whole path. For example if it is in the public folder try /path to PlexWWWatch/public/plexWatch.db

I've tried just about everything I can think of and no luck. The settings page sits at: http://plexwatch:8888/public/#/settings and the plexWatch.db sits at http://plexwatch:8888/public/plexWatch.db

I've tried public/plexWatch.db, plexwatch/public/plexWatch.db, /Users/apple/Sites/plexwatch/public/plexWatch.db, http://plexwatch:8888/public/plexWatch.db.

Any other suggestions?

The whole filesystempath, If it is in the default MAMP path it should be something like /Applications/MAMP/htdocs/PlexWWWatch/public/plexWatch.db

Sadly that didn't work either, still no stats, just getting the recently added content from the remote server. Oh well, thanks for trying, guess its not for this n00b!

What’s the filepath you extracted the plexwwwatch files to?

I extracted them to /Users/apple/Sites/plexwatch/ and have MAMP pointing to the hostname plexwatch, which is set to that directory.

Update: I even tried uploading the plexWatch.db to dropbox and shared that link and put it in there. lol not sure if that would do it but no luck again. 

Try setting the plexwatch db path to “/Users/apple/Sites/plexwatch/public/plexWatch.db”

If using this on Windows, do I set the Plex Watch Database path to something like 'C:\plexWatch\plexWatch.db'?  There are watched entries in the plexWatch.log file, so I'm assuming there are also in the plexWatch.db file, but nothing shows up in the Recently Watched section.  Any ideas to help me debug this?