PlexWWWatch

Hi,

Thanks for this contribution. Even if I can't having it working.

I run it on a synology NAS with DSM 5 beta, running php Version 5.5.7. I can see that the configuration is correct (right url to PMS and right plexWatch.db location). However, when I access the main page, nothing appears and Safari console displays the following errors:

[Error] Error: [ngRepeat:dupes] http://errors.angularjs.org/1.2.13-build.2242+sha.e645f7c/ngRepeat/dupes?p0=w%20in%20%24data&p1=string%3Aa
http://192.168.1.13/PlexWWWatch/public/build/bower.js:185:193
http://192.168.1.13/PlexWWWatch/public/build/bower.js:100:36
$digest@http://192.168.1.13/PlexWWWatch/public/build/bower.js:100:468
$apply@http://192.168.1.13/PlexWWWatch/public/build/bower.js:103:271
f@http://192.168.1.13/PlexWWWatch/public/build/bower.js:67:126
H@http://192.168.1.13/PlexWWWatch/public/build/bower.js:71:280
onreadystatechange@http://192.168.1.13/PlexWWWatch/public/build/bower.js:72:225
(fonction anonyme) (bower.js, line 85)
(fonction anonyme) (bower.js, line 62)
$digest (bower.js, line 101)
$apply (bower.js, line 103)
f (bower.js, line 67)
H (bower.js, line 71)
onreadystatechange (bower.js, line 72)

[Error] Error: ‘null’ is not an object (evaluating ‘j.$scope.$data=a’)
http://192.168.1.13/PlexWWWatch/public/build/script.js:261:3662
A@http://192.168.1.13/PlexWWWatch/public/build/bower.js:93:5
http://192.168.1.13/PlexWWWatch/public/build/bower.js:94:174
$eval@http://192.168.1.13/PlexWWWatch/public/build/bower.js:102:456
$digest@http://192.168.1.13/PlexWWWatch/public/build/bower.js:100:223
$apply@http://192.168.1.13/PlexWWWatch/public/build/bower.js:103:271
f@http://192.168.1.13/PlexWWWatch/public/build/bower.js:67:126
H@http://192.168.1.13/PlexWWWatch/public/build/bower.js:71:280
onreadystatechange@http://192.168.1.13/PlexWWWatch/public/build/bower.js:72:225
(fonction anonyme) (bower.js, line 85)
(fonction anonyme) (bower.js, line 62)
A (bower.js, line 93)
(fonction anonyme) (bower.js, line 94)
$eval (bower.js, line 102)
$digest (bower.js, line 100)
$apply (bower.js, line 103)
f (bower.js, line 67)
H (bower.js, line 71)
onreadystatechange (bower.js, line 72)

Any idea about how I can fix that?

Thanks.

Can you paste the results from http://192.168.1.13/PlexWWWatch/public/backend/watched.php ?

Fatal error: Class 'SQLite3' not found in /volume1/web/PlexWWWatch/plex-watch/PlexWatch.php on line 6

I read that sqlite3 is included in php since version 5.3.

Fatal error: Class 'SQLite3' not found in /volume1/web/PlexWWWatch/plex-watch/PlexWatch.php on line 6

I read that sqlite3 is included in php since version 5.3.

Thats wierd, I'll se what I can do yo use the builtin sqlite..

I'm now using the builtin sqlite pdo. Try if it works now without installing php-sqlite.

Hi,

Thanks for the modification. However, I'm still not able to use it. The main remains empty, as you can see in the screenshot.

No error appears in Safari console. Note that I have not been able to save the configuration file. All the fields where reset when I hit the save button. I had to copy your settings file and edit it.

Hi,
 
Thanks for the modification. However, I'm still not able to use it. The main remains empty, as you can see in the screenshot.
No error appears in Safari console. Note that I have not been able to save the configuration file. All the fields where reset when I hit the save button. I had to copy your settings file and edit it.
 
5DntI.jpg


And what do you see if you visit http://192.168.1.13/PlexWWWatch/public/backend/watched.php again?

Here is what I get:

[]

:D

Here is what I get:

[]
:D

Hehe.. :P That would indicate no items in the database.. Are you sure you have put the correct path to the plexWatch.db? If you are, try to comment out the try catch block in watched.php

Replace the content in PlexWWWatch/public/backend/watched.php with:

<?php

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

//try {
$plexWWWatch = new PlexWWWatch();
echo json_encode($plexWWWatch->plexWatch()->watched());
//} catch (Exception $e) {
// echo “”;
//}

?>

Yes, I'm sure about its location.

Here is the message I have now:

Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /volume1/web/PlexWWWatch/plex-watch/PlexWatch.php:9 Stack trace: #0 /volume1/web/PlexWWWatch/plex-watch/PlexWatch.php(9): PDO->__construct('sqlite:/tmp/ple...') #1 /volume1/web/PlexWWWatch/PlexWWWatch.php(30): PlexWatch->__construct('/tmp/plexWatch....', true) #2 /volume1/web/PlexWWWatch/public/backend/watched.php(7): PlexWWWatch->plexWatch() #3 {main} thrown in /volume1/web/PlexWWWatch/plex-watch/PlexWatch.php on line 9

Yes, I'm sure about its location.

Here is the message I have now:

Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /volume1/web/PlexWWWatch/plex-watch/PlexWatch.php:9 Stack trace: #0 /volume1/web/PlexWWWatch/plex-watch/PlexWatch.php(9): PDO->__construct('sqlite:/tmp/ple...') #1 /volume1/web/PlexWWWatch/PlexWWWatch.php(30): PlexWatch->__construct('/tmp/plexWatch....', true) #2 /volume1/web/PlexWWWatch/public/backend/watched.php(7): PlexWWWatch->plexWatch() #3 {main} thrown in /volume1/web/PlexWWWatch/plex-watch/PlexWatch.php on line 9

Seems like it still needs some extra sqlite thing installed.. Will look in to it!

OK, I fixed the issue. Configuration of php open_basedir was wrong. Actually, it works for DSM 4.3 but not DSM 5b.

I had to add a trailing / to the directory where the database is.

Now, it's fine.

Thanks.

OK, I fixed the issue. Configuration of php open_basedir was wrong. Actually, it works for DSM 4.3 but not DSM 5b.

I had to add a trailing / to the directory where the database is.

Now, it's fine.

Thanks.

Ok great!

Hope you enjoy :)

New feature: List of users

Next up: Details per user

Any chance of adding Recently added to frontpage? :)

Sure, make a issue on github and I’ll look into it.

Some users will have no idea what Github is. This is their GitHub :slight_smile:


Edit: and yes I understand one has to download it from there.


Sure, make a issue on github and I’ll look into it.

That’s true! :stuck_out_tongue: I’ll make a mental note of your request

Majorly remade!
 
Changed style to match the new style of plex.tv/web. View to see a single user. Screenshots in first post!
Now I can start making your requests for new features.

Just leaving this here...

Recently added is not on the front page and some more changes. You probably have to save your settings again (but now the settings system is better).

All images are now loaded from the webserver, only working if the webserver is on the same local network as the pms (but I figure that that's the case for most users) will hopefully add myPlex auth tomorrow so images will work everywhere.

You can now authenticate PlexWWWatch with a Plex Token so the web server don't have to be on the same local network.