plexWatch - Windows Branch

1: Created c:\plexwatch

2: Enabled notifications through GTNP (I saw the screenshot included in the package, so I know GTNP works with Win7)

3: Changed log location in config.pl to 'C:\Users\*username*\AppData\Local\Plex Media Server\Logs'

4: Ran the plexwatch.exe in a command prompt. It is at this point where I get the "Unable to open script" error.

I thought that maybe my syntax for the log folder was incorrect, so I tried it a bunch of different ways to no effect. I tried entering the actual filename (Plex Media Server.log), but that didn't work either. I hate to admit it, but I haven't felt this newbie in a long time.

C:\Users\**********\AppData\Local\Plex Media Server\Logs\Plex Media Server.log........... This is the log specifically

and did you dl growl for windows and install it? just curious

The folder should be named plexWatch with capital W and the exe should be placed in C:\plexWatch.....

I believe I had to do this as well.

don't feel bad the Sisco's. I'm right there with you.

Here's a screenshot of my command line. And yes, Growl is installed, but there are no "linked" applications in the options window.

plexwatcherror.JPG

growlerror.JPG

This is why I like screenshots for windows :slight_smile:


Run: plexWatch.exe


Missing the .exe in the example


Note:

  • windows is not case sensitive
  • you can tab complete. I.e. Type plexwatch then hit TAB to cycle through the files that match



    Here’s a screenshot of my command line. And yes, Growl is installed, but there are no “linked” applications in the options window.
    plexwatcherror.JPG


    growlerror.JPG

rgr that.... just gonna post that......

you win 

you beat me to it

Don't worry I'm going to sit down and get this working one of these days when I find time, probably within the next month and probably make a youtube video for the community.

If you need help solar...... chime in

let us know exactly what you have done and give up them screenies!

Doh man im slow today........... rgr solar

My problem stems from a lack of under standing a few things.

Do I need to run this on the same pc as plex or can I use another? (I have a vm I would rather run this in, but my plex media server is on another pc)

The website files, do they have to be on the same pc or can they be on my separate web server?

The EXE is supposed to run every few minutes. Are you using task scheduler or something else, or does it automatically do this?

It mentions having prerequisites, are they included in plex or need to be installed? I'm really trying to limit the amount of things I have running on my main server.

My problem stems from a lack of under standing a few things.

Do I need to run this on the same pc as plex or can I use another? (I have a vm I would rather run this in, but my plex media server is on another pc)

I believe it said it was suggested

My problem stems from a lack of under standing a few things.

The website files, do they have to be on the same pc or can they be on my separate web server?

I believe It stated it should be within your lan

My problem stems from a lack of under standing a few things.

The EXE is supposed to run every few minutes. Are you using task scheduler or something else, or does it automatically do this?

Yes I am using task scheduler

My problem stems from a lack of under standing a few things.

It mentions having prerequisites, are they included in plex or need to be installed? I'm really trying to limit the amount of things I have running on my main server.

Plex pre reqs and things such as notifications programs ie: growl, pushover etc are not bundled

My problem stems from a lack of under standing a few things.
 
Do I need to run this on the same pc as plex or can I use another? (I have a vm I would rather run this in, but my plex media server is on another pc)


No. However if you enable "require auth" on local networks in the PMS and you run plexWatch on a different machine, then you have to add your myplex user/pass to the config.pl
 

The website files, do they have to be on the same pc or can they be on my separate web server?


website files? guessing you are referring to plexWatchWeb. That is a front end to plexWatch that is optional ( but highly suggested ). As of now, it needs to run on the same computer as plexWatch, NOT the PMS. The DEV branch of plexWatchWeb will allow you to run it on a different server than PMS. These questions though should be directed here: http://forums.plexapp.com/index.php/topic/82819-plexwatchweb-a-web-front-end-for-plexwatch/?hl=plexwatchweb
 

The EXE is supposed to run every few minutes. Are you using task scheduler or something else, or does it automatically do this?


Refer to the Install notes in this Post: http://forums.plexapp.com/index.php/topic/79616-plexwatch-windows-branch/#entry456754

Specifically this is what you schedule:

Automatically notify on watching/watched content: ( main process )
  • schedule a task (every minute) to execute c:\plexWatch\plexWatchNotify.vbs ( specify the start in folder as c:\plexWatch\ )

Automatically notify on Recently Added Content:

  • schedule a task (every 5 minutes or more) to execute c:\plexWatch\plexWatchRecentlyAdded.vbs ( specify the start in folder as c:\plexWatch\ )

It mentions having prerequisites, are they included in plex or need to be installed? I'm really trying to limit the amount of things I have running on my main server.

Does it mention prerequisites? It mentions requirements for this to even work, but nothing related to software. It's all bundled in the exe ( one nice thing about windows )


Automatically notify on watching/watched content: ( main process )
  • schedule a task (every minute) to execute c:\plexWatch\plexWatchNotify.vbs ( specify the start in folder as c:\plexWatch\ )

Okay! So I enter "plexwatch.exe" in the command line, and the first time I got no errors, but some messages about there not being any backups. Did it again, and I received no error message. So I went ahead and scheduled the above task, every minute. So far, Growl still isn't registering any linked applications, and I'm not getting any notifications, even though I'm playing something through Plex right now. I've started and stopped the show, just to see if anything happened, but nothing so far. I mentioned that I enabled notification in the config.pl under the "GNTP" section: should I use the "growl" section instead?

I'm at work now, connected to my PMS box via remote desktop, while watching a show on Plex. I'm watching my processes and can see when PlexWatch activates, but I'm not getting any Growl notifications on the desktop. I feel like I'm missing something really small here. Thanks for all the help so far!

Okay! So I enter "plexwatch.exe" in the command line, and the first time I got no errors, but some messages about there not being any backups. Did it again, and I received no error message. So I went ahead and scheduled the above task, every minute. So far, Growl still isn't registering any linked applications, and I'm not getting any notifications, even though I'm playing something through Plex right now. I've started and stopped the show, just to see if anything happened, but nothing so far. I mentioned that I enabled notification in the config.pl under the "GNTP" section: should I use the "growl" section instead?

I'm at work now, connected to my PMS box via remote desktop, while watching a show on Plex. I'm watching my processes and can see when PlexWatch activates, but I'm not getting any Growl notifications on the desktop. I feel like I'm missing something really small here. Thanks for all the help so far!

The best idea is to test to see if GNTP even work, and yes, use GNTP.. growl is deprecated as it was only for OSX)

Do this: to test a notification through any provider you have enabled. The debug will give you some more info which you can past or screenshot into this forum.

cmd
cd c:\plexWatch
plexWatch.exe --test_notify=start --debug

cmd
cd c:\plexWatch
plexWatch.exe --test_notify=start --debug

Started a show and three minutes later did the notification test, here's the result:

NotifyTest.JPG

You don't have to start/stop any shows to run the test.

It looks like GNTP is failing for some reason. Hard to know why from the scripts perspective. 

One thing to check, you have to check the box that allows network notification in the Growl for windows settings. Under security on the growl settings. 

 Check the following:

 * Allow network notifications

 * Allow notifications from websites

 * Allow clients to subscribe.. 

Started a show and three minutes later did the notification test, here's the result:

NotifyTest.JPG

You don't have to start/stop any shows to run the test.

It looks like GNTP is failing for some reason. Hard to know why from the scripts perspective. 

One thing to check, you have to check the box that allows network notification in the Growl for windows settings. Under security on the growl settings. 

 Check the following:

 * Allow network notifications

 * Allow notifications from websites

 * Allow clients to subscribe.. 

More baby steps...

I checked those boxes (they were unchecked), but I also noticed that the IP GNTP was trying to send the notifications to was the default 10.0.0.1, so I changed that to my PMS box's IP, ran the test again, and here's what I got:

successA.JPG

As a followup, I started watching a show, but I'm currently getting no notifications from that...

Good stuff. That now means you have GNTP working. Now it should "just" work, however with the --test_notify=start, it will use the most recent logged notification as a test OR it will use a generic message, like the one you are seeing. That means, plexWatch has not yet noticed you watching something, from what I can tell

lets see if we can get that working. 

* Disable the active schedule task, so we can verify it's working outside of the task 

* start a show

* verify it shows up on plex/Web in the now playing notifications

* cmd

* cd c:\plexWatch

* plexWatch.exe --debug --notify

With --debug, it will give you more info on the cli and also keep sending the notification each run even it it has already sent it previously. 

More baby steps...

I checked those boxes (they were unchecked), but I also noticed that the IP GNTP was trying to send the notifications to was the default 10.0.0.1, so I changed that to my PMS box's IP, ran the test again, and here's what I got:

successA.JPG

As a followup, I started watching a show, but I'm currently getting no notifications from that...

Good stuff. That now means you have GNTP working. Now it should "just" work, however with the --test_notify=start, it will use the most recent logged notification as a test OR it will use a generic message, like the one you are seeing. That means, plexWatch has not yet noticed you watching something, from what I can tell

lets see if we can get that working. 

* Disable the active schedule task, so we can verify it's working outside of the task 

* start a show

* verify it shows up on plex/Web in the now playing notifications

* cmd

* cd c:\plexWatch

* plexWatch.exe --debug --notify

With --debug, it will give you more info on the cli and also keep sending the notification each run even it it has already sent it previously. 

Okay, so here apparently is where the issue is. I'm currently watching an episode at work (using Plex desktop app for Windows), and Plex/Web indicates that nothing is currently playing. I know I'm signed in with my account info, I'm a PlexPass user, but I don't know if I have "multiuser" set, but I do know that I share my library with several people, and they will sometimes stream from me simultaneously. But I've never been able to see any devices in the "Devices" list but my own. I do NOT have authorization requred for local networks.

*Each person I share my library with has their own myPlex account login info.

Okay, so here apparently is where the issue is. I'm currently watching an episode at work (using Plex desktop app for Windows)

The only desktop app that supports "now playing" is Plex Home Theater.

Plex Media Center does not

I've mentioned this before how when playing media over lan with Plex Media Center without transcoding that it doesn't register via now playing.