plexWatch - Windows Branch

Is there a way to include Plex Sync data into plexWatch?  Now that clients no longer are required to have a PlexPass to sync to my PMS, there could be bandwidth consumed by users using sync which is not detected or reported with PlexWatch.  My main purpose of using PlexWatch is to monitor bandwidth consumption of my clients.

Any help would be greatly appreciated!

I keep getting 'Unable to open script source: No such file or directory'.

What am I doing wrong. To be honest the instructions completely suck.

* VBS scripts:  plexWatchNotify.vbs & plexWatchRecentlyAdded.vbs

    They open in a web page! What!? I'm suppose to copy the text off the page and save it in notepad?

    I can't even right-click and save as because it saves as a html file!

* unzip contents to c:\plexWatch\

    Can it be unzipped to any other folder or does it HAVE to be C:\plexWatch?  C drive is not a good spot for me.

* rename config.pl-dist-win32 to c:\plexWatch\config.pl

    Fair enough. Not sure why -dist-win32 is at the end and WE(the user, has to remove it)... But whatever... Pick your battles..

* Edit (with notepad++) c:\plexWatch\config.pl

    Edit? For what? What is the contents am I supposed to edit?

* I'm tired of copy/paste lines of text.

Anyhow, I would like a little help in setting this up to look something like how it is here.

https://forums.plex.tv/topic/105623-plexpass-show-ip-address-of-users/

My apologies to anyone if I sound rude... I had a not so good day.. AND I'M TRYING TO QUIT SMOKING!

@NewPlaza:

I'm really curious where you found those instructions, if you take a peek at https://github.com/ljunkie/plexWatch I think you can see what I mean. In case it's the 1st page of this thread, that also refers to the GitHub which has a lot of information about how to approach this excellent piece of coding which makes me smile almost every single day, the exception being if I'm really REALLY grumpy.

Regarding your remark about the vbs files, they work perfectly at my end. The right-click and save as offers me the normal functionality to save them as vbs files. If it doesn't for you, try it via the GitHub which in case you didn't notice is located at https://github.com/ljunkie/plexWatch. In case that fails, GitHub offers the possibility to download the zip-file which should also contain the vbs files.

Regarding the unzip location, experimenting is always handy before asking. If it fails, you know. And just in case, most of the time you can see such paths as in indication but not as an explicit.

Your comment about the renaming of a file to the config, that's most of the time done for people who mess it up. Otherwise people start to complain about the need to re-download, just because they made a booboo. There is no perfect solution, just a best effort.

About your question what to edit, open the file up and compare it with the Readme.md as shown on https://github.com/ljunkie/plexWatch. I expect the answer will show itself.

It's very easy to figure out, as long as you are willing to figure something out by yourself.

Sorry if I sound rude, I'm down to 8mg as of today.

I'm seeing something unusual in the logging and I don't know where it stems from in the system.  Some of the remote sessions in my IP history actually show my local PMS server's address.  They are not coming from inside my network and they are not coming from me period.  I've seen it with Chrome Web sessions which I believe might be someone using plex.tv but I've also seen it on Roku sessions as well.

Does anyone know if this is just a bug?

I'm seeing something unusual in the logging and I don't know where it stems from in the system. Some of the remote sessions in my IP history actually show my local PMS server's address. They are not coming from inside my network and they are not coming from me period. I've seen it with Chrome Web sessions which I believe might be someone using plex.tv but I've also seen it on Roku sessions as well.

Does anyone know if this is just a bug?


I'm seeing the same thing, but not every time. Some times it's the correct ip, sometimes no ip then on other occasions it shows as local

Can someone tell me what this line needs to be?

$server_log = 'c:\\plexWatch\\yourserverlogpath'; ## used to log IP address of user (alpha)
 

Thanks.

Can someone tell me what this line needs to be?

$server_log = 'c:\\plexWatch\\yourserverlogpath'; ## used to log IP address of user (alpha)
 

Thanks.

Just thinking out loud while I'm not sure which OS you're using:

https://github.com/ljunkie/plexWatch shows the following line in the Readme

$server_log = '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log'; ## used to log IP address of user (alpha)

https://plexapp.zendesk.com/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files shows the different file locations of this file for the possible operating systems, look up the correct path for your OS. Check if this path does contain the file  Plex Media Server.log and specify the full location appended with the filename as the value for $server_log.

Hope it helps :)

I'm using Windows7x64.

My logs are located -> D:\Program Files\Plex Media Server\Logs.

Hello all

Am trying to get this running an is a lot that is quite new to me.

But have placed the vbs's just as I downloaded them in the PlexWatch folder, an setup tasks for scrips and the one plexWatchNotify.vbs (set for 1Min) seems to run fine, but the one plexWatchRecentlyAdded.vbs (set for 5), when run give me a "Windows Script Host" error which reads:

Script: c:\plexwatch\plexWatchRecentlyAdded.vbs

Line: 6

Char:1

Error: Expected statement

Code: 800A0400

Source: Microsoft VBScript compilation error 

Any ideas?

I've having some issues with this. I've followed the instructions and still can't get this to work under windows. It tells me how many files i have in each category but won't show me what is or has been playing

Is there a way to view the log data in Excel, or some other spreadsheet-like view?

How does everyone go through and look at the data PlexWatch collects? I use PlexWatchWeb, but I'd love a more detailed view into my stats.

Any thoughts about adding music to this? Might get a bit overloaded with messages if someone listens to an artist all day (especially when you have a music library of >30k tracks) so maybe it's not a good idea

Hi,

I have a question about the notifications of the recently added media.

I have scheduled a task that runs every 15 minutes to check for my recently added media and have it send notifications to my Prowl account and to my Twitter account. This way, I can see on my iPhone that new media has been recognized by Plex and my Twitter followers can see that newly added content from my twitter account (I've set up an extra account just for my plex).

Now I'm looking for a mailing list. I want to keep my scheduled taks to keep me posted immediately, but I want to add an additional task that would check for all the added media from the last month and have it send a mail to all my subscribers with that new content.

Is this possible?

So I keep my notifications on Prowl and Twitter every 15 minutes and these notifications aren't mailed and every first day of the month a mail is send to all my subscribers with the added media of the last month without having these notifications again on Prowl and Twitter?

Thanks in advance!

Sincerely,

Bart

Hi guys,

When i play media on my Samsung TV

I notice that when i use the Samsung SmartTV Plex app, there is no icon, on the PlexWatchWeb now playing section. It just shows the generic "icon missing" icon.

Unfortunately it doesn't report Samsung as the platform.

Does somebody experience or notice this also?

It's no big problem but still..

Grts Fons

Hi guys,

When i play media on my Samsung TV

I notice that when i use the Samsung SmartTV Plex app, there is no icon, on the PlexWatchWeb now playing section. It just shows the generic "icon missing" icon.
Unfortunately it doesn't report Samsung as the platform.

Does somebody experience or notice this also?
It's no big problem but still..

Grts Fons


This will be fixed in the next plexWatch/Web release.

This is genius!! i'm in love with what PlexWatch does, NICE WORK :D!

Can someone help me get the vbs scripts working? I've never been able to get it working it seems.

For the longest time I've had a scheduled task run a .bat program I made with the following script and it's worked with no problems:

cd c:/plexwatch
start /MIN plexwatch.exe
Today I've been fooling around but for the life of me can't get plexWatchcontinuous.vbs to work. Do I just have a scheduled task for this file as well in order to work? If I open it manually nothing really happens either. This is the vbs script:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "C:\plexWatch\plexWatch.exe --notify", 0, True

Set WshShell = Nothing

Do I need a certain program to run this script? I'm confused..

The only reason I'm looking to change from my .bat program to the vbs is because I'm sick of a black window popping up every couple seconds in Windows just to run that program. Please let me know what to do differently.

The vbs script will look like nothing is happening, which is the main reason for it :) Just to make sure it works, do the following.

1) disable the bat script job

2) start watching a video

3) double slick the vbs script , profit ( you should get a notification or at least it will log the info to the DB if you don't  have notifications on )

4) If the above works, edit your bat job and use the .vbs script instead. 

* the vbs script has to run on a schedule as all it does is call the .exe without causing a popup every time. 

Can someone help me get the vbs scripts working? I've never been able to get it working it seems.

For the longest time I've had a scheduled task run a .bat program I made with the following script and it's worked with no problems:

cd c:/plexwatch
start /MIN plexwatch.exe
Today I've been fooling around but for the life of me can't get plexWatchcontinuous.vbs to work. Do I just have a scheduled task for this file as well in order to work? If I open it manually nothing really happens either. This is the vbs script:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "C:\plexWatch\plexWatch.exe --notify", 0, True

Set WshShell = Nothing

Do I need a certain program to run this script? I'm confused..

The only reason I'm looking to change from my .bat program to the vbs is because I'm sick of a black window popping up every couple seconds in Windows just to run that program. Please let me know what to do differently.

The vbs script will look like nothing is happening, which is the main reason for it :) Just to make sure it works, do the following.

1) disable the bat script job

2) start watching a video

3) double slick the vbs script , profit ( you should get a notification or at least it will log the info to the DB if you don't  have notifications on )

4) If the above works, edit your bat job and use the .vbs script instead. 

* the vbs script has to run on a schedule as all it does is call the .exe without causing a popup every time. 

Right, I understand that, that's why I'm trying to switch to use the vbs script. :) But it's not working for me. I disabled my scheduled task as a test.

1) started watching a video

2) double clicked my bat program

3) check plexwatch/web and under history, bam, it shows the video I'm watching.
-

Same method, using the vbs script doesn't work, nothing shows up. I've had it on for 2 days and nothing has populated.

1) started watching a video

2) double clicked the vbs script (I see the hourglass for a blip, so it's reading or doing something. The script is a .vbs extension as well in case you were going to ask).

3) check plexwatch/web and under history, the new video I'm watching is not showing up.

Any suggestions?