plexWatch/Web - A web front-end for plexWatch

Okay DCPDad, I did the most simplistic thing I could do to get my 'actual' usage as indicated by Comcast displayed.

I have the Comcast Usage Meter program running on my desktop.  (Always open and always in the exact same spot on my screen)

I'm using "Screen Hunter 6" to automatically capture the small jpg image every 3 hours as it updates on the app from Comcast.

I put the image into a VERY simple html page in my xampp/htdocs folder that points to just the image.

On the SpiceWorks page I inserted a section with an iFrame to just display that simple html page I created with the image.

Yes....it's as 'rough urban area' as can be....but it works.....

I'm still looking at getting it setup a little better....trying to dissect the Comcast application to see if I can use the xml and flash they use to push the information directly to a web page.

More to come!

http://plexhelp.bd.to

cool idea to capture, but it wasn't working this AM. I got this message "The server refused the connection."

Okay DCPDad, I did the most simplistic thing I could do to get my 'actual' usage as indicated by Comcast displayed.

I have the Comcast Usage Meter program running on my desktop.  (Always open and always in the exact same spot on my screen)

I'm using "Screen Hunter 6" to automatically capture the small jpg image every 3 hours as it updates on the app from Comcast.

I put the image into a VERY simple html page in my xampp/htdocs folder that points to just the image.

On the SpiceWorks page I inserted a section with an iFrame to just display that simple html page I created with the image.

Yes....it's as 'rough urban area' as can be....but it works.....

I'm still looking at getting it setup a little better....trying to dissect the Comcast application to see if I can use the xml and flash they use to push the information directly to a web page.

More to come!

http://plexhelp.bd.to

It seems something is wrong with my setup now but I can't quite figure it out. It was working but I had to do a Windows reinstall and migrate my library, now I occasionally have this error. 


Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/status/sessions" in D:\xampp\htdocs\plexWatchWeb\index.php on line 84
Failed to access Plex Media Server. Please check your settings.

Also, if I try to change my my settings, I always get this error:

 SSL certificate problem: unable to get local issuer certificate

Can anyone point me in the right direction? 

plexWatch/Web Version: v1.4.0
plexWatch Version: v0.1.8
Windows, plexWatch/PlexWatchWeb/Plex all on the same machine. 
Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/status/sessions" in D:\xampp\htdocs\plexWatchWeb\index.php on line 84
Failed to access Plex Media Server. Please check your settings.

Sometimes that error takes the whole index page with nothing else displayed, sometimes it is just in the current activity sections and sometimes all is well. The plex server and plexWatch work fine in all cases, just not plexwatchweb. Even when the error is in the current activity section, it still shows the current streams below it. 

It seems something is wrong with my setup now but I can't quite figure it out. It was working but I had to do a Windows reinstall and migrate my library, now I occasionally have this error. 


Also, if I try to change my my settings, I always get this error:

Can anyone point me in the right direction? 

plexWatch/Web Version: v1.4.0
plexWatch Version: v0.1.8
Windows, plexWatch/PlexWatchWeb/Plex all on the same machine. 

Sounds like you are using myPlex for authentication and don't have your cert file bundle in place. The plexWatch/Web wiki has a short how-to for XAMPP users which should get you started in the right direction to fix that problem.

https://github.com/ecleese/plexWatchWeb/wiki/XAMPP-Users#php-curl-https-causing-exception-ssl-certificate-problem

Sounds like you are using myPlex for authentication and don't have your cert file bundle in place. The plexWatch/Web wiki has a short how-to for XAMPP users which should get you started in the right direction to fix that problem.

https://github.com/ecleese/plexWatchWeb/wiki/XAMPP-Users#php-curl-https-causing-exception-ssl-certificate-problem

Thanks, that fixed the saving settings issue. It seems like I still get the failed to load xml error sometimes still but less often. PlexWatchWeb is responding/loading very slow so maybe it's timing out. PlexWeb and another site on the same Apache server is responding as quickly as expected, just PlexWatchWeb communicating with Plex to load current activity and each recently added thumbnail is very slow. 

Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://localhost:32400/status/sessions" in D:\xampp\htdocs\plexWatchWeb\includes\current_activity_header.php on line 15

Failed to access Plex Media Server. Please check your settings.

Thanks, that fixed the saving settings issue. It seems like I still get the failed to load xml error sometimes still but less often. PlexWatchWeb is responding/loading very slow so maybe it's timing out. PlexWeb and another site on the same Apache server is responding as quickly as expected, just PlexWatchWeb communicating with Plex to load current activity and each recently added thumbnail is very slow. 

Try putting in the IP address of your PMS server rather than "localhost"

Try putting in the IP address of your PMS server rather than "localhost"

I tried that and it seemed to be worse. Deleting the settings file and starting over didn't work but redownloading from the git helped. It responds at a normal speed, although I still get that error sometimes. I'm using the internal IP now and it works 5/10 times which I'll just say is good enough for now. Odd that it only has issues occasionally, not always.

OK, I´m a bit confused. I've been going through my PW database and I have about 60 records of playback, originating from the PMS IP itself. Various users, timings, video files etc.. Couple of times I've managed to see this when it happens and confirm it in the Now Playing section in the PMS webgui. I would be right then assuming that this is more of an PMS issue rather then PW?

OK, I´m a bit confused. I've been going through my PW database and I have about 60 records of playback, originating from the PMS IP itself. Various users, timings, video files etc.. Couple of times I've managed to see this when it happens and confirm it in the Now Playing section in the PMS webgui. I would be right then assuming that this is more of an PMS issue rather then PW?


Correct, plexWatch/Web currently only reads the database. All writing is done by plexWatch.

Hello everyone,

I'm reporting back after a bit past 24 hours of plexWatch Web use. Here's what i got (there is lots of it):

As of this post, my plex logs show 91 play's across tv shows and movies all local content from my server. of that, 7 users, and 5 different platforms used. (web, android, roku, iphone, samsung player)

Now, i kept getting I/O errors, and that failed to load external error i have been getting, and others have reported.

I looked into this, and found it to be the lag between my synology and the plex media server over my network, while accessing the plexWatch web faster then the database can output what its reading. so the IP address for both my server and plex machine have been setup with link aggregation which resolved the issue. I have also installed a solid state cache on my plex machine to help with the file handling.

So testing plexWatch with Growl protocol, and matching i have output showing content watched, and is logged to the .db for plexWatch.

Loading plexWatch Web from my local machine, i get a hit/miss data output. I may get the data to load, populating each area, or nothing, an no errors.

I took additional steps to close some other web related programs my synology was running, then test plexWatch web again. I shut down my joomla, and automated content grabbers, and found that all of plexWatch web loaded just fine, and fast. had no issues.

After it was up and running and populating, i restarted the synology apps i disabled, and tested plexWatch web again, still showing populated data, but not updating.

Rebooting the synology, and the plex machine, and router just to be sure, and then restarting all synology apps, then testing again with plexWatch seems to have updated, but plexWatch web was not current (it was about 2 hours behind) where 17 new activity items should have shown up.

After all that, i'm certain i have covered every avenue of test i can think of. I spent a few hours on the internet looking at possible causes for the behavior with web content calling information from other pages like plexWatch web does. i turned up nothing  that would solve the problem i was getting.

I finally resolved by installing the plexWatch web with that xampp program, and copying all the files from its web/root directory over to my synology. so about 6 hours after that, i have all the pages populating with updates right along with plexWatch. 

I conclude, that something, and i dont know what or why, but when i transfer files to my synology in the /web/ folder, they become corrupt or dont read correctly. and i have posted that issue to a synology forum.

but i do have plexWatch web working 100% as intended for now. here's hoping it stays that way.

thanks for all your help here.

I would also like to add, that some of these feature requests, like the option to hide IP address and hide "Users" and "settings" pages from public would be nice. to keep that information for the webmaster.

Hello everyone,

I'm reporting back after a bit past 24 hours of plexWatch Web use. Here's what i got (there is lots of it):

As of this post, my plex logs show 91 play's across tv shows and movies all local content from my server. of that, 7 users, and 5 different platforms used. (web, android, roku, iphone, samsung player)

Now, i kept getting I/O errors...

Thanks for posting about the troubleshooting you've done. I have the same issues but Xampp didn't fix it for me. Actually, on one machine running PlexWatch/Web using localhost to the local plex install doesn't work well, but works better than putting in the internal IP. But on another machine, running PlexWatch/Web again in XAMPP using my Plex servers external IP, it has no issues. This webserver is on the other side of the country from my Plex Server but performs better than the one on the same machine. There must be something in the configuration that's causing these errors. However, my Xampp and PlexWatch/Web config didn't change between when it was working perfectly to when it wasn't. I did migrate everything to a new Windows install though. 

Hey guys, quick question about this great front-end.  I have everything installed and it pulls all the data properly, but plexwatchweb is showing all times in UTC.  the plexwatch.pl is running on the same server and the log for that shows all local times.  I already double checked the time zone i have setup with dpkg-reconfigure tzdata and i have the correct time zone setup.  I am running the latest dev 1.5.0.3 and plexwatch 0.1.8. 

This is a rebuild of my lamp server that displayed everything on the master branch fine.  The only change was switching from 12.04 server to 13.10 server.  I know i had to install php5-json as an added dependency on 13.10. did anything change in apache to pull UTC time instead of local.

@Tloskpd, According to the various mentions throughout this thread, it's a PHP setting, not an apache one.

See this post here, which includes links for XAMPP, and mentions of other interesting non-XAMPP setup - https://forums.plexapp.com/index.php/topic/82819-plexwatchweb-a-web-front-end-for-plexwatch/page-13#entry509423

@Tloskpd, According to the various mentions throughout this thread, it's a PHP setting, not an apache one.

See this post here, which includes links for XAMPP, and mentions of other interesting non-XAMPP setup - https://forums.plexapp.com/index.php/topic/82819-plexwatchweb-a-web-front-end-for-plexwatch/page-13#entry509423

That worked.  the php.ini file even had that line commented out but setting it in there to my timezone worked like a charm.  Thats really interesting the differences in the php.ini files between 12.04 and 13.10.

hi

trying to get the ip logging to work.. but i get n/a in the web interface and the debug says this

Thu Dec 12 22:36:20 2013: Trying fallback mode for IP match (sleeping 5 seconds before reloading log /opt/plexWatch/Plex Media Server.log
Thu Dec 12 22:36:25 2013: Locating IP for item 14813 from /opt/plexWatch/Plex Media Server.log... NO IP found (0 lines searched)
Thu Dec 12 22:36:50 2013: Locating IP for 14813:JHCGYQLKS3BQY [Ryssen:Back to the Future] from /opt/plexWatch/Plex Media Server.log... NO IP found (0 lines searched)
Thu Dec 12 22:36:50 2013: Trying fallback mode for IP match (sleeping 5 seconds before reloading log /opt/plexWatch/Plex Media Server.log
Thu Dec 12 22:36:55 2013: Locating IP for item 14813 from /opt/plexWatch/Plex Media Server.log... NO IP found (0 lines searched)
Thu Dec 12 22:37:20 2013: * Video State: stopped [prev: playing]
 
any ideas?
 i have installed readbackwards and i see the Plex Media Server.log

hi

trying to get the ip logging to work.. but i get n/a in the web interface and the debug says this

Thu Dec 12 22:36:20 2013: Trying fallback mode for IP match (sleeping 5 seconds before reloading log /opt/plexWatch/Plex Media Server.log
Thu Dec 12 22:36:25 2013: Locating IP for item 14813 from /opt/plexWatch/Plex Media Server.log... NO IP found (0 lines searched)
Thu Dec 12 22:36:50 2013: Locating IP for 14813:JHCGYQLKS3BQY [Ryssen:Back to the Future] from /opt/plexWatch/Plex Media Server.log... NO IP found (0 lines searched)
Thu Dec 12 22:36:50 2013: Trying fallback mode for IP match (sleeping 5 seconds before reloading log /opt/plexWatch/Plex Media Server.log
Thu Dec 12 22:36:55 2013: Locating IP for item 14813 from /opt/plexWatch/Plex Media Server.log... NO IP found (0 lines searched)
Thu Dec 12 22:37:20 2013: * Video State: stopped [prev: playing]
 
any ideas?
 i have installed readbackwards and i see the Plex Media Server.log

Are both verbose and debug logging options enabled under Settings/General Settings on your Plex Media Server? In order to see these options you need to enable "Show Advanced Settings". 

got it working .. thanks :)

I dont know if this has been noted before, but when montly plays exceed 1000 the graph just .. loops? Like it wasn't factored in that those plays would exceed 1000.

Qe7Vi5s.png

I dont know if this has been noted before, but when montly plays exceed 1000 the graph just .. loops? Like it wasn't factored in that those plays would exceed 1000.

Qe7Vi5s.png

Hmm, it's possible the next digit is just being cut off. Would you mind making a change to history.php and let me know your results.

Change line 417 from:

"paddingLeft": ('25'),

to 

"paddingLeft": ('35'),