plexWatch/Web - A web front-end for plexWatch

Thanks. I pushed another possible fix. Would you mind testing it and letting me know your results.

Fixed!  Thanks so much!!

Fixed!  Thanks so much!!

Nice, I'll update the build version. Thanks for testing :)

Thanks, eleese!  This is awesome.  

I am running this on OSX Mavericks and it took me some time to get it setup.  I am new to creating a webserver on my computer and so went through several guides online that never got me to the point where I could easily drop the plexWatch/Web folder somewhere and then get it working through my browser.  For anybody as novice at this as I am, here is a link to the guide I used to  finally get everything up and running:  http://www.maclife.com/article/howtos/how_make_your_mac_web_server?page=0,0

I was not able to get the images working from outside my server, even with the suggestions to add the ip/subnetmask to the authorized networks in PMS.  So, I anxiously look forward to when you can add myPlex authentication to this.

Thanks again!

Thanks, eleese!  This is awesome.  

I am running this on OSX Mavericks and it took me some time to get it setup.  I am new to creating a webserver on my computer and so went through several guides online that never got me to the point where I could easily drop the plexWatch/Web folder somewhere and then get it working through my browser.  For anybody as novice at this as I am, here is a link to the guide I used to  finally get everything up and running:  http://www.maclife.com/article/howtos/how_make_your_mac_web_server?page=0,0

I was not able to get the images working from outside my server, even with the suggestions to add the ip/subnetmask to the authorized networks in PMS.  So, I anxiously look forward to when you can add myPlex authentication to this.

Thanks again!

Thanks Brgiles for using plexWatch/Web and sharing your web server setup experience. You are welcome to try out the development branch if you need myPlex support.  I am anticipating the current dev version will be merged with the master branch by the end of the week if no additional bugs are found.

Thanks Brgiles for using plexWatch/Web and sharing your web server setup experience. You are welcome to try out the development branch if you need myPlex support. I am anticipating the current dev version will be merged with the master branch by the end of the week if no additional bugs are found.


Thanks again. I tried the dev version and was able to get it working nearly without any issues. I just thought I would give my feedback on my experience setting it up as I did experience some bugs. Part (maybe most) of the problem probably had to do with me attempting the initial setup on iOS devices. I first tried it on my iPhone but I wasn't able to get past the welcome screen because it would not scroll down to the "Noiice..." button. So, I switched over to my iPad and was able to click that button and then fill out all of the setup info. However, after completing the setup and hitting "Done" it took me to a white screen and would not load. Finally, I went to Chrome on the Mac running the server. I know, I should have done that first. The page would load but it gave me the error message that it could not connect with my plexWatch database. When I tried to edit the settings they would not show up, instead it had the settings menu on the left but none of the fields to edit. I ended up editing the new config.php file manually and almost everything is working great.

The only remaining issue is that my Gravatar is no longer showing up. It is working well from other computers, my iPad, and my iPhone. There could be some scaling improvements on the iPhone, but that is about it. Sorry for the verbose post. Thanks for all of your hard work!


Sent from my iPad using Tapatalk

Now Available: plexWatch/Web (v1.4.0)

 
Download: https://github.com/e...se/plexWatchWeb
ReadMe: https://github.com/e...aster/README.md
ChangeLog: https://raw.github.c...ster/change.log
 

Major changes to this version include:

  • Version numbering scheme adjustment (major.minor.maintenance.(development))
  • Welcome screen modal with requirements quick test and briefing
  • Settings page. This eliminates the need to edit a config.php file in the root directory.
  • Grouping support for global history, user history, charts and stats
  • Friendly names and names+platform support. plexWatch/Web will automatically display any friendly names you have configured in plexWatch
  • Main menu navigation has changed to an icon only based menu with tooltip hover to offer better compatibility with mobile devices
  • myPlex authentication support for accessing plexWatch/Web from remote networks
  • User public IP address history with play counts, geo location (when available) and google map links
  • User platform play count stats 
  • Global history statistic charts (hourly, daily, monthly)

Note:

The default installation of some web servers do not bundle CA certs. Because of this, myPlex authentication may not work correctly without first fixing this issue. I have documented a quick how-to for XAMPP users on the plexWatch/Web wiki. Please ensure you add this support to your web server before installing this version of plexWatch/Web.

 
Thank you to all dev branch testers for squashing those bugs. Enjoy!

Anyone get PlexWatchWeb up and working on their synology DS? If so please let me know. Thanks!

New release looks really good!! Thanks for all the work!!!

Cheers!

Anyone get PlexWatchWeb up and working on their synology DS? If so please let me know.

Yes / no.  I have it running on my synology DS1511+, but not everything is working, im using version 1.4.0, and plexwatch 1.6.

I can see recently added, and whats currently being watched but the watch history, users and charts do not populate. settings page stops working after initial setup.

also added the curl.cainfo = "PATH_TO/cacert.pem to my php.ini file.

I have the database on my local desktop where i run plex, and i'm using cloud station to sync the directory so that plexwatch web can see the database on the synology integrated web rather then use another local web server.

i'm looking for help getting the rest of plexwatch web working. also my plexwatch update scripts could use work.... they dont update unless i run the task schedule manually.

Yes / no.  I have it running on my synology DS1511+, but not everything is working, im using version 1.4.0, and plexwatch 1.6.

I can see recently added, and whats currently being watched but the watch history, users and charts do not populate. settings page stops working after initial setup.

also added the curl.cainfo = "PATH_TO/cacert.pem to my php.ini file.

I have the database on my local desktop where i run plex, and i'm using cloud station to sync the directory so that plexwatch web can see the database on the synology integrated web rather then use another local web server.

i'm looking for help getting the rest of plexwatch web working. also my plexwatch update scripts could use work.... they dont update unless i run the task schedule manually.

You are not setting the path correctly for your database file. I think the easiest way to find this would be to ssh into your Synology Diskstation and physically look for the file. I'm running a VM of DSM4.1 currently and the path to my database file where I'm testing is:

/volume1/web/plexWatch/db/plexWatch.db

Your path will differ since you are using Cloudstation but it is possible to sync the web folder with Cloudstation if you wanted. Just do a quick browse via ssh to find the location of your database file and then issue a "pwd" command to get the full path location.

Having some issues with my plexwatch app. It seems that plexwatch cannot connect to the plex web server, even they are on the same server.

Look at my server error log:

[Sun Nov 03 19:09:21 2013] [error] [client someip] PHP Warning:  simplexml_load_file(http://192.168.0.1:32400/status/sessions?query=c&X-Plex-Token=pKmrMGGsSxmksPVaCy8s): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
 in /var/www/domain.tld/plexwatch/index.php on line 80, referer: http://domain.tld/plexwatch
[Sun Nov 03 19:09:21 2013] [error] [client someip] PHP Warning:  simplexml_load_file(): I/O warning : failed to load external entity "http://192.168.0.1:32400/status/sessions?query=c&X-Plex-Token=pKmrMGGsSxmksPVaCy8s" in /var/www/domain.tld/plexwatch/index.php on line 80, referer: http://usikret.net/plexwatch

Everything running on a Debian Squeeze server with the latest software.

Edit: the plexWatch.db is empty if that counts. And I have it saved in the plexwatch folder, the config.php correctly reflects thas as well.

Edit2: Just noticed I need plexwatch as well, and I have now installed this package and I now are getting this error when I try to run /opt/plexWatch/plexWatch.pl:

Final edit: Discovered this is not the correct thread, sorry.

Sun Nov  3 19:37:18 2013: Failed to get request http://192.168.0.1:32400/status/sessions - The result:Forbidden

403 Forbidden

Having some issues with my plexwatch app. It seems that plexwatch cannot connect to the plex web server, even they are on the same server.

Look at my server error log:

[Sun Nov 03 19:09:21 2013] [error] [client someip] PHP Warning:  simplexml_load_file(http://192.168.0.1:32400/status/sessions?query=c&X-Plex-Token=pKmrMGGsSxmksPVaCy8s): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
 in /var/www/domain.tld/plexwatch/index.php on line 80, referer: http://domain.tld/plexwatch
[Sun Nov 03 19:09:21 2013] [error] [client someip] PHP Warning:  simplexml_load_file(): I/O warning : failed to load external entity "http://192.168.0.1:32400/status/sessions?query=c&X-Plex-Token=pKmrMGGsSxmksPVaCy8s" in /var/www/domain.tld/plexwatch/index.php on line 80, referer: http://usikret.net/plexwatch

Everything running on a Debian Squeeze server with the latest software.

Edit: the plexWatch.db is empty if that counts. And I have it saved in the plexwatch folder, the config.php correctly reflects thas as well.

Edit2: Just noticed I need plexwatch as well, and I have now installed this package and I now are getting this error when I try to run /opt/plexWatch/plexWatch.pl:

Sun Nov  3 19:37:18 2013: Failed to get request http://192.168.0.1:32400/status/sessions - The result:Forbidden

403 Forbidden

Start by getting plexWatch fully working before attempting to use plexWatch/Web. The error appears to be some sort of access permissions problem so I would start by fully reading the plexWatch installation portion of the readme.

You are not setting the path correctly for your database file. I think the easiest way to find this would be to ssh into your Synology Diskstation and physically look for the file. I'm running a VM of DSM4.1 currently and the path to my database file where I'm testing is:

/volume1/web/plexWatch/db/plexWatch.db

Your path will differ since you are using Cloudstation but it is possible to sync the web folder with Cloudstation if you wanted. Just do a quick browse via ssh to find the location of your database file and then issue a "pwd" command to get the full path location.

Got everything up and running on the Synology. Thanks!

yes, my synology path is /volume1/homes/admin/CloudStation/plexWatch/plexWatch.db and thats what i enter for the path location.

I am unable to get it working. i tried installing plexwatch on my synology without luck. so i installed the windows version on the same machine i run my plex media server. that works, but plexwatch web cant see the database in c:/plexwatch/

Im looking for a way to get everything working on my synology, or be able to get the database to read from my /volume1/web/plexwatch/ directory like you have, just not sure how to do it right. any additional help here would be the best thing all day.....

yes, my synology path is /volume1/homes/admin/CloudStation/plexWatch/plexWatch.db and thats what i enter for the path location.

I am unable to get it working. i tried installing plexwatch on my synology without luck. so i installed the windows version on the same machine i run my plex media server. that works, but plexwatch web cant see the database in c:/plexwatch/

Im looking for a way to get everything working on my synology, or be able to get the database to read from my /volume1/web/plexwatch/ directory like you have, just not sure how to do it right. any additional help here would be the best thing all day.....

Perhaps Cloudstation locks things down permission wise. Check access permissions for the database file and the folder structure. Also as test just try manually placing the file outside of the Cloudstation folder structure and into /volume1/web/plexWatch/ and see if it works from there. If I get a chance I will try Cloudstation and see what results I get.

Okay, so i put a copy of the plexWatch.db in /volume1/web/plexwatch/plexwatch.db and updated the path in plexwatch web, and it is working that way, so it must be permissions. so, how would i go about getting the whole thing working out of the /volume1/web/ directory?

I'll try any suggestions, but here's what i got setup right now:

on my windows machine that plex media center is installed, i have plexwatch in c:/Username/CloudStation/plexwatch/ synced with my synology to /volume1/homes/admin/CloudStation/plexwatch. the folder for plexwatch from the synology i have set to 0755 permissions for all files.

Edit: I also setup a symbolic link to the web folder, for just the database. I used c:\plexWatch\pw >> \\synology\web\pw (and the plexWatch.db is there)

The database writes, and is viewable in /volume1/web/pw/ for me. permissions for the files i have tried 0755 and 0777, but that is not working. if i copy the database to /volume1/web/pwdb/ and point plexwatch web to it, it works, but then the database wont get updated. so thats where im stuck.

I think i got my scripts updating.... maybe....

Okay, so i put a copy of the plexWatch.db in /volume1/web/plexwatch/plexwatch.db and updated the path in plexwatch web, and it is working that way, so it must be permissions. so, how would i go about getting the whole thing working out of the /volume1/web/ directory?

I'll try any suggestions, but here's what i got setup right now:

on my windows machine that plex media center is installed, i have plexwatch in c:/Username/CloudStation/plexwatch/ synced with my synology to /volume1/homes/admin/CloudStation/plexwatch. the folder for plexwatch from the synology i have set to 0755 permissions for all files.

Edit: I also setup a symbolic link to the web folder, for just the database. I used c:\plexWatch\pw >> \\synology\web\pw (and the plexWatch.db is there)

The database writes, and is viewable in /volume1/web/pw/ for me. permissions for the files i have tried 0755 and 0777, but that is not working. if i copy the database to /volume1/web/pwdb/ and point plexwatch web to it, it works, but then the database wont get updated. so thats where im stuck.

I think i got my scripts updating.... maybe....

I have not personally tested this solution but it should work unless Cloudstation uses some form of data encryption. 

  • Go to WebUI > Control Panel > Web Services > PHP settings > Customize PHP open_basedir:
    • Edit the line by adding the following to the end
  • :/volume1/homes/admin/CloudStation/plexWatch/

Update: I've now tested this solution with success. This is what I did.

  • created a new shared folder "plexWatch"
  • gave admin access to this folder in both Privileges setup and Cloudstation
  • installed Cloudstation client on my workstation and then enabled "plexWatch" folder to sync
  • copied my db file into the Cloudstation folder on my workstation
  • edited the PHP open_basedir line above to add ":/volume1/plexWatch/"
  • edited plexWatch/Web settings for database file location to /volume1/plexWatch/plexWatch.db
  • save and test

I'd like to suggest adding the graphs down to the individual user.  Exactly like the graphs under "History"  Also, Top 10 by User like under "Charts"  Thanks.  Thanks for all the effort.  The plexWatch & plexWatch/Web are well used by me.  Appreciated.

EDIT: Thanks for all your help with plexwatch web. I followed everything you suggested, failed, and tried again. Eventually with the setup exactly as you instructed from your last post, it was not working so i removed the existing database and all associated files. I have plexwatch rebuild everything new for the database, and that got it working.

thanks again! this application is pretty awesome!

EDIT: Thanks for all your help with plexwatch web. I followed everything you suggested, failed, and tried again. Eventually with the setup exactly as you instructed from your last post, it was not working so i removed the existing database and all associated files. I have plexwatch rebuild everything new for the database, and that got it working.

thanks again! this application is pretty awesome!

Glad to hear that cause I was out of suggestions! I had it working in under 5 minutes this morning so it sounds as though your database must have been corrupted. Enjoy!