# plexWatch - Windows Branch

**URL:** <https://forums.plex.tv/t/plexwatch-windows-branch/41818>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [September 1, 2013, 10:52pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818 "2013-09-01T22:52:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 1, 2013, 10:52pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/1 "2013-09-01T22:52:58Z")

</div>

**plexWatch v0.3.3 Released** &nbsp;(2015-03-29)

&nbsp;

**Requirements:**

**\* PMS 0.9.11.4 or greater**

~~**\* PlexPass subscription** &nbsp;( everything but&nbsp;recently&nbsp;added content )~~

**\*** &nbsp;PMS logs **&nbsp;** ( with debug enabled ) if you want IP logging

\* Clients that support Now Playing&nbsp;&nbsp;i.e. user must show up in now playing on plex/Web

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;note: PMC does not work - use PHT

\* Recently added notifications will work with any current version.

&nbsp;

**Downloads** :&nbsp;[plexWatch.exe](https://github.com/ljunkie/plexWatch/raw/v0.3.3/plexWatch.exe "External link") and [config.pl-dist-win32](https://github.com/ljunkie/plexWatch/raw/v0.3.3/config.pl-dist-win32 "External link")&nbsp;&nbsp; ( I will be adding a windows directory for binaries for the final release )

&nbsp;\* VBS scripts: &nbsp;[plexWatchNotify.vbs](https://github.com/ljunkie/plexWatch/raw/master/plexWatchNotify.vbs) & [plexWatchRecentlyAdded.vbs](https://raw.githubusercontent.com/ljunkie/plexWatch/master/plexWatchRecentlyAdded.vbs)

&nbsp;

GitHub:[https://github.com/ljunkie/plexWatch](https://github.com/ljunkie/plexWatch)&nbsp;(source: [plexWatch.pl](https://github.com/ljunkie/plexWatch/raw/v0.3.2/plexWatch.pl "External link") )

&nbsp;

**Screenshots:&nbsp;** [iOS Boxcar](https://raw.github.com/ljunkie/plexWatch/v0.1.0/screenshots/iOS-plexWatch_boxcar.png "External link")&nbsp;//&nbsp;[iOS Prowl](https://raw.github.com/ljunkie/plexWatch/v0.1.0/screenshots/iOS-plexWatch_prowl.png "External link")&nbsp;//&nbsp;[iOS Pushover](https://github.com/ljunkie/plexWatch/blob/v0.1.0/screenshots/iOS-plexWatch_pushover.png "External link")&nbsp;//&nbsp;[Win7 Growl](https://raw.github.com/ljunkie/plexWatch/v0.1.0/screenshots/win7-plexWatch_GNTP.png "External link")

&nbsp;

Please use the&nbsp; **plexWatch.exe&nbsp;** and **&nbsp;config.pl-dist-win32&nbsp;** instead of the plexWatch.pl/config.pl-dist files (even though it's included in the repo/zip)

&nbsp;

I also suggest to edit the config.pl in&nbsp;[notepad++](http://notepad-plus-plus.org/ "External link")

&nbsp;

&nbsp;

**\*\* Install Notes \*\***

&nbsp;

**Install**

\* unzip contents to c:\plexWatch\

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

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

\* open a command prompt&nbsp;

\* cd c:\plexWatch

\* run: plexWatch.exe &nbsp; (and verify no errors -- don't expect any output yet)

&nbsp;

**Test the script:**

\* open a command prompt&nbsp;

\* cd c:\plexWatch

\* start a show

\* run: plexWatch.exe

\* stop the show

\* run: plexWatch.exe

&nbsp;

**Automatically notify/log watching/watched content: &nbsp;( You must enable this script for plexWatch to work )**

\* schedule a task (every minute) to execute c:\plexWatch\ **plexWatchNotify.**** vbs**&nbsp; (**&nbsp; ****specify the start in folder as&nbsp;**** c:\plexWatch\** )&nbsp;

&nbsp;

**Automatically notify on Recently Added Content:**

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

&nbsp;

&nbsp;

\* IP logging: log location:&nbsp;[http://forums.plexapp.com/index.php/topic/25417-where-are-the-pms-logs-on-windows/](http://forums.plexapp.com/index.php/topic/25417-where-are-the-pms-logs-on-windows/)

&nbsp;

&nbsp;

**Frontends**

- **PlexWatchWeb** :&nbsp;[http://forums.plexapp.com/index.php/topic/82819-plexwatchweb-a-web-front-end-for-plexwatch/](http://forums.plexapp.com/index.php/topic/82819-plexwatchweb-a-web-front-end-for-plexwatch/)
- **PlexWWWatch** :&nbsp;[https://forums.plex.tv/topic/98005-plexwwwatch/](https://forums.plex.tv/topic/98005-plexwwwatch/)

&nbsp;

  

**Things known not to work**

\* --start= , --stop= options on the cli: &nbsp;not a huge deal and can possible be fixed later

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 1, 2013, 10:53pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/2 "2013-09-01T22:53:09Z")

</div>

reserved

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 1, 2013, 10:53pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/3 "2013-09-01T22:53:29Z")

</div>

TODO: verify install/running how to instructions. I would appreciate anyone who runs this on windows to write something up. I don't use windows for my server, so I'd prefer someone who actually uses this daily to write something. I have included a brief Install/Howto above, but it's lame. Thanks!

---

<div class="post-metadata">

**Author:** ![EsCanavi](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@EsCanavi](https://forums.plex.tv/u/EsCanavi)\
**Post date:** [September 1, 2013, 11:12pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/4 "2013-09-01T23:12:04Z")

</div>

> TODO: verify install/running how to instructions. I would appreciate anyone who runs this on windows to write something up. I don't use windows for my server, so I'd prefer someone who actually uses this daily to write something. I have included a brief Install/Howto above, but it's lame. Thanks!

If you need anything special to be tested I might be up for it!

So far I've got the basic fonction to be working. (Ie --watched, --watching) I haven't checked much since its pretty much what i was looking for in the first place.

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 1, 2013, 11:18pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/5 "2013-09-01T23:18:38Z")

</div>

> If you need anything special to be tested I might be up for it!
> 
> So far I've got the basic fonction to be working. (Ie --watched, --watching) I haven't checked much since its pretty much what i was looking for in the first place.

Anything you find that isn't working would be great as I don't really use windows for much.&nbsp;

---

<div class="post-metadata">

**Author:** ![sunnyd71](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sunnyd71/32/176331_2.png) [@sunnyd71](https://forums.plex.tv/u/sunnyd71)\
**Post date:** [September 1, 2013, 11:45pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/6 "2013-09-01T23:45:25Z")

</div>

> TODO: verify install/running how to instructions. I would appreciate anyone who runs this on windows to write something up. I don't use windows for my server, so I'd prefer someone who actually uses this daily to write something. I have included a brief Install/Howto above, but it's lame. Thanks!

I just got this setup moments ago, was looking for instructions but did it on my own in the end. I did exactly what you have listed and it works great. I can confirm Pushover works as well.&nbsp;

---

<div class="post-metadata">

**Author:** ![sunnyd71](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sunnyd71/32/176331_2.png) [@sunnyd71](https://forums.plex.tv/u/sunnyd71)\
**Post date:** [September 2, 2013, 12:24am UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/7 "2013-09-02T00:24:17Z")

</div>

> **If all seems to work after this:&nbsp;**
> 
> \* schedule a task (every minute) to execute c:\plexWatch\plexWatch.exe
> 
> &nbsp;
> 
> &nbsp;
> 
> Have at it and let me know of any issues!

Ensure when you schedule the task you specify the start in folder as&nbsp;c:\plexWatch\ &nbsp;It would not work for me until I did that. Said it could not find config.pl

---

<div class="post-metadata">

**Author:** ![EsCanavi](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@EsCanavi](https://forums.plex.tv/u/EsCanavi)\
**Post date:** [September 2, 2013, 12:29am UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/8 "2013-09-02T00:29:54Z")

</div>

[Pushover](https://pushover.net/)&nbsp;does work (as said above)

~~Seems like there's a bug, not with Pushover itseft. ([Pic](http://hdd.canavi.ca/EsCanavi/2013-09-01.iCapture.20001.png))~~

~~-\> plexwatch.exe --test\_notify=[arg]~~

~~-\> plexwatch.pl --test\_notify=[arg]~~

~~:: [T] [2013] -&nbsp;_i'm assuming [t] stand for the current time(H:M:S)&nbsp;_~~

~~_::__&nbsp;_Command prompt is also telling me that it's sending the [T] nothing to do with Pushover.~~

~~:: OS French-Win7-Pro installed~~

~~_edit: p.s: I've Strawberry perl installed and did get all module, except "Time::ParseDate" which seems to fail when doing cpan install Time::ParseDate_~~

Edit 2 :

My bad, just kind of exicted that this was actually working now. I'll get to read these now.

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 2, 2013, 12:36am UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/9 "2013-09-02T00:36:56Z")

</div>

> [Pushover](https://pushover.net/) does work (as said above)  
>   
> Seems like there's a bug, not with Pushover itseft. ([Pic](http://hdd.canavi.ca/EsCanavi/2013-09-01.iCapture.20001.png))  
> -\> plexwatch.exe --test\_notify=[arg]  
> -\>plexwatch.pl --test\_notify=[arg]  
> :: [T] [2013] - _i'm assuming [t] stand for the current time(H:M:S)_   
> _::_ Command prompt is also telling me that it's sending the [T] nothing to do with Pushover.  
> :: OS French-Win7-Pro installed

Remember, there is no need to use the .pl file.. The .exe is bundled and is the one I will support/troubleshoot.  
  
[T] is telling you the video was transcoded instead of [D] direct play  
  
Please have a look at [https://github.com/ljunkie/plexWatch/blob/master/README.md#using-the-script](https://github.com/ljunkie/plexWatch/blob/master/README.md#using-the-script) which explains a lot about the program.   
  
\* notification format info: [https://github.com/ljunkie/plexWatch/blob/master/README.md#notification-format](https://github.com/ljunkie/plexWatch/blob/master/README.md#notification-format)  
\* It can all me modified in the config.pl to suit your needs  
  
Any questions are welcomed as these may answer questions others have :)

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 2, 2013, 12:47am UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/10 "2013-09-02T00:47:02Z")

</div>

> _edit: p.s: I've Strawberry perl installed and did get all module, except "Time::ParseDate" which seems to fail when doing cpan install Time::ParseDate_

  
Strawberry perl will work fine. I suggest though to only use the .exe and not even worry about installing perl since its all bundled in the exe I released.   
  
Time::ParseDate has been excluded for now in the windows version due to build problems. At some point I might include this if it ever works or move to something else.

---

<div class="post-metadata">

**Author:** ![Technically](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@Technically](https://forums.plex.tv/u/Technically)\
**Post date:** [September 9, 2013, 5:26pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/11 "2013-09-09T17:26:55Z")

</div>

The issue I am having is configuration on the config.pl file. I notice you have a user name (frank) is that along with the roku 3… Ect. Supposed to be changed to what I want? I have about 11 different devices like PHT and android GTV. How do I go about adding those? And finally how do I know what needs to be configured. I have technical background but, when it comes to coding I have no clue whats going on. So my input would be to have more detail on specifics and what to configure. Thanks again for all your hard work.  
  
  
Chris

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 9, 2013, 5:56pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/12 "2013-09-09T17:56:44Z")

</div>

> The issue I am having is configuration on the config.pl file. I notice you have a user name (frank) is that along with the roku 3.... Ect. Supposed to be changed to what I want? I have about 11 different devices like PHT and android GTV. How do I go about adding those? And finally how do I know what needs to be configured. I have technical background but, when it comes to coding I have no clue whats going on. So my input would be to have more detail on specifics and what to configure. Thanks again for all your hard work.  
>   
> Chris

Chris - Yea, sadly this forums doesn't have all the good info the [main one](http://forums.plexapp.com/index.php/topic/72552-plexwatch-plex-notify-script-send-push-alerts-on-new-sessions-and-stopped/) does. Feel free for one to post questions [there](http://forums.plexapp.com/index.php/topic/72552-plexwatch-plex-notify-script-send-push-alerts-on-new-sessions-and-stopped/) and use this forum post for any BUGS you find. The only reason I say that is the fact more users look at the original forum topic. I will try and answer some of your questions here though.&nbsp;

The $users\_display is ONLY for aesthetics and can definitely be modified after the fact, so you don't have to worry if you have that right before you start using plexWatch every minute. The best thing to do is setup all the myplex usernames with a friendly name first, before you start thinking about all the devices. It's much easier to modify the config.pl file with the username+device after you have the devices logged so you can tell what the device name is.&nbsp;

Do you have any output from "plexWatch.exe --watched" yet? &nbsp;If so, please post that here and I can explain how to setup the $users\_display&nbsp;

As it is, nothing in the config.pl really needs to be modified until you know what you want :) Do you want push notifications? If so, do you want them to growl, pushover, prowl, etc? Go ahead and let me know what you are looking to do and I can explain it further if needed. I also am not sure if growl works yet for notification in windows. The others should excluding growl and or twitter.

---

<div class="post-metadata">

**Author:** ![hthighway](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hthighway/32/82003_2.png) [@hthighway](https://forums.plex.tv/u/hthighway)\
**Post date:** [September 10, 2013, 3:14pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/13 "2013-09-10T15:14:58Z")

</div>

Got this up and running with pushover last night.

Only issue I had initially was getting pushover installed with curl, I overlooked one of the install steps.

But after that all seems to be working fine.

IP logging is working as well as the "friendly name" feature.

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 10, 2013, 4:27pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/14 "2013-09-10T16:27:39Z")

</div>

> Got this up and running with pushover last night.  
> Only issue I had initially was getting pushover installed with curl, I overlooked one of the install steps.  
>   
> But after that all seems to be working fine.  
> IP logging is working as well as the "friendly name" feature.

  
What issues do you have with curl? I'm confused because the .exe should take all the hard work out the installation.

---

<div class="post-metadata">

**Author:** ![hthighway](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hthighway/32/82003_2.png) [@hthighway](https://forums.plex.tv/u/hthighway)\
**Post date:** [September 10, 2013, 4:38pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/15 "2013-09-10T16:38:42Z")

</div>

From the pushover.net site instructions for windows:

> How do I send Pushover notifications from a Windows command line?  
> The curl program may be used, replacing "APP\_TOKEN" with the token of your app, and "USER\_KEY" with your user's key (or your own if sending messages to your own devices). Download a Win32 build with SSL support and **run the "mk-ca-bundle" script to generate the CA bundle.**

it was the "and run the "mk-ca-bundle" script to generate the CA bundle" that I didn't catch at first.  
After I ran that vbs script everything worked fine.

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 10, 2013, 4:42pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/16 "2013-09-10T16:42:47Z")

</div>

> From the pushover.net site instructions for windows:
> 
> it was the "and run the "mk-ca-bundle" script to generate the CA bundle" that I didn't catch at first.  
> After I ran that vbs script everything worked fine.

Thanks. I had no idea this was required as plexWatch.exe is it's owned contained version. I will verify this issue and add it to the install instructions!

---

<div class="post-metadata">

**Author:** ![hthighway](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hthighway/32/82003_2.png) [@hthighway](https://forums.plex.tv/u/hthighway)\
**Post date:** [September 10, 2013, 4:47pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/17 "2013-09-10T16:47:13Z")

</div>

> as plexWatch.exe has it's owned contained version.

I didn't realize that, so I didn't even try to just add the pushover keys to the config.pl file to see if it worked.

I installed pushover.net per their website instructions before editing the config.pl file

---

<div class="post-metadata">

**Author:** ![sunnyd71](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sunnyd71/32/176331_2.png) [@sunnyd71](https://forums.plex.tv/u/sunnyd71)\
**Post date:** [September 10, 2013, 7:17pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/18 "2013-09-10T19:17:17Z")

</div>

When I run plexwatch.exe -- stats I get the following error after each user, any ideas?

```
user: Local's total duration 4 minutes
Argument "2013-9-2" isn't numeric in localtime at plexWatch.pl line 618, 
line 176.
 %a %b %e %Y: Local 4 minutes
```

The line of code its complaining about is this:

```
my $h_date = strftime "%a %b %e %Y", localtime($epoch);
```

---

<div class="post-metadata">

**Author:** ![ljunkie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ljunkie/32/6512_2.png) [@ljunkie](https://forums.plex.tv/u/ljunkie)\
**Post date:** [September 10, 2013, 7:20pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/19 "2013-09-10T19:20:14Z")

</div>

> When I run plexwatch.exe -- stats I get the following error after each user, any ideas?
> 
> ```
> user: Local's total duration 4 minutes
> Argument "2013-9-2" isn't numeric in localtime at plexWatch.pl line 618, 
> line 176.
> %a %b %e %Y: Local 4 minutes
> ```

Finally a bug :) yea I had to make some changes because windows/perl doesn't have Time::ParseDate -- so this much be the side effect. I will see if I can get this fix in a little bit. Don't worry though,all the data is logged -- just not parsing correctly on output.&nbsp;

---

<div class="post-metadata">

**Author:** ![sunnyd71](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sunnyd71/32/176331_2.png) [@sunnyd71](https://forums.plex.tv/u/sunnyd71)\
**Post date:** [September 10, 2013, 7:22pm UTC](https://forums.plex.tv/t/plexwatch-windows-branch/41818/20 "2013-09-10T19:22:32Z")

</div>

Awesome! Thanks.&nbsp;

[Next page](https://forums.plex.tv/t/plexwatch-windows-branch/41818.md?page=2)
