plexWatch - Windows Branch

Windows: replace the .exe

Linux/OSX: replace the .pl

 

Hi ljunkie,

The plexWatch.exe file in the list here https://github.com/ljunkie/plexWatch says "v0.2.0 windows binary", is this right?

Seems also to be exactly same file size as my old file.

Yep. v0.2.1 is linux only (for now). I’ll be pushing a new version this week for both. Check the first page of this thread. It will list what version is available.

Hi ljunkie,

The plexWatch.exe file in the list here https://github.com/ljunkie/plexWatch says “v0.2.0 windows binary”, is this right?

Seems also to be exactly same file size as my old file.

PlexWatch v0.2.4-DEV

Upgrade instructions:

  • [optional bit highly suggested] run "plexWatch.exe --backup"  and copy your backup to a new directory for safe keeping
  • replace plexWatch.exe
  • that's it ( it will upgrade/fix itself )

Update: I have verified this fixes the encoding issues for most providers. It looks as though Prowl and GNTP need to be fixed. plexWatch/Web will will still have an issue with Recently Added, Recently Viewed and Current Activity sections. Those are related to plexWatch/Web

Update 2: The issue with Recently Watched was due to double encoding in plexWatch, the fix could be added in plexWatch/Web, but since this view will only show the 10 or so most recent items, I will just fix this in plexWatch for now and call it good. I will be looking into the Accent issue on Current Activity shortly.

 NOTE: If anyone uses the cli for viewing stats ( plexWatch.exe --watched ) and has encoding issues. It's due to the command prompt not supported unicode by default. A temporary fix for the command prompt follows:

  • open a command prompt
  1. right click on the command prompt title bar
  2. click properties
  3. click the font tab
  4. choose "Lucida Console" or any other TrueType font that support unicode
  • while in the command prompt, run the following command
chcp 65001
  • plexWatch.exe --watched

PlexWatch v0.2.5-DEV

  • more encoding fixes! I have tested the s*^t out of this one

Upgrade instructions:

  • [optional bit highly suggested] run "plexWatch.exe --backup"  and copy your backup to a new directory for safe keeping
  • replace plexWatch.exe
  • that's it ( it will upgrade/fix itself )
  • make sure you clear any cookies from your browser if you are having Friendly Name issues
Twitter integration

If you want to use twitter, you will need to install two more Perl modules

  • requires Net::Twitter::Lite::WithAPIv1_1

    sudo cpan Net::Twitter::Lite::WithAPIv1_1
    

    OR force install it

    sudo cpan -f Net::Twitter::Lite::WithAPIv1_1

  • requires Net::OAuth >= 0.28

    sudo cpan Net::OAuth
    

    OR force install it

    sudo cpan -f Net::OAuth

Twitter setup
  • create a new app @ https://dev.twitter.com/apps
  • make sure to set set ApplicationType to read/write
  • enable notification for twitter in config.pl

This has probably been asked before, but how do I go abouts setting up plexWatch for notifying recently added to twitter?

I've enabled it in the config.pl but im not sure what the pearl modules are for?

I'm running plexWatch on Server 2008 R2. It's currently working with email and pushover and plexWatchWeb.

Cheers

redmonkie

Windows does not need any perl modules. It’s all built into the one plexWatch.exe


Twitter setup

  • create a new app @ https://dev.twitter.com/apps

  • make sure to set the ApplicationType to read/write

  • enable notification for twitter in config.pl

    This has probably been asked before, but how do I go abouts setting up plexWatch for notifying recently added to twitter?

    I’ve enabled it in the config.pl but im not sure what the pearl modules are for?

    I’m running plexWatch on Server 2008 R2. It’s currently working with email and pushover and plexWatchWeb.


    Cheers

    redmonkie

Hi ljunkie

Thanks for the quick reply.

What are the:

'consumer_key'        => '',
        'consumer_secret'     => '',

for?

The information twitter has given me doesnt cover this (or not that I know of)

Sorry ignore my last post. Found all four api keys and copied them into the config file.

My twitter account seems to be all set up, and ive updared in the config file:

enabled: 1, all the push options to 1 (for testing), consumer key/secret & access token/secret.

Is there anything else that is required because its not working as of yet.

Apologies for such daft questions.

Seems twitter has change the names on me.

  • Name: unique name for for your app
  • Description: fill something in...
  • Website: you need some valid website..
  • (read) and accept terms
  • click "Create you Twitter Application"
  • click the "API keys" tab
  • Application settings
API Key      = consumer_key
API Secret   = consumer_secret
  • Your access token
  • click "create my access token"  ( you will probably need to refresh to see your tokens )
Access token              =   access_token
Access token secret       =   access_token_secret

Hi ljunkie

Thanks for the quick reply.

What are the:

'consumer_key'        => '',
        'consumer_secret'     => '',

for?

The information twitter has given me doesnt cover this (or not that I know of)

Recently Added only works for content added in the last day or so, maybe there is nothing?

You can force a test by running

plexWatch.exe --test_notify=recent --debug

Sorry ignore my last post. Found all four api keys and copied them into the config file.

My twitter account seems to be all set up, and ive updared in the config file:

enabled: 1, all the push options to 1 (for testing), consumer key/secret & access token/secret.

Is there anything else that is required because its not working as of yet.

Apologies for such daft questions.

C:\plexWatch>plexWatch.exe --test_notify=recent --debug
Twitter Alert: New Movie: Title [PG-13] [2013] 108min https://github.com/ljunkie
/plexWatch
Wed Feb 12 18:30:24 2014: DEBUG: TWITTER error 403: New Movie: Title [PG-13] [20
13] 108min https://github.com/ljunkie/plexWatch - (You are over the daily limit
for sending Tweets. Please wait a few hours and try again.) -- setting twitter to back off additional notifications
FILE Notification successfully logged.
twitter Failed: we will try again next time.. Title [PG-13] [2013] 108min
Wed Feb 12 18:30:24 2014: DEBUG: New Movie: Title [PG-13] [2013] 108min
FILE Notification successfully logged.
EMAIL key:1 enabled for this push_recentlyadded
Wed Feb 12 18:30:26 2014: EMAIL Notification successfully posted to . activity@#####.co.uk
EMAIL key:2 NOT enabled for this push_recentlyadded - skipping
Wed Feb 12 18:30:28 2014: PUSHOVER Notification successfully posted.

I havent tweeted anything today... The account was only created a few days ago...

When I goto to OAuth settings it has all four strings which match what I have in the config file.

One thing I did notice is Request Settings, Currently its set to Get. Is that correct?

Request settings


Request type: *

GET

POST

DELETE

PUT

HEAD



GET is fine and what I have set. It's also odd you didn't get more results in regards to the error. See below, I print more info in regards to the twitter issue. Maybe you are running an older version? Twitter is only supported right now in the DEV version.

Wed Feb 12 12:28:35 2014: DEBUG: TWITTER error 403: New Movie: Title [PG-13] [2013] 108min https://github.com/ljunkie/plexWatch - Status is a duplicate msg (187). Setting twitter to back off additional notifications
FILE Notification successfully logged.
HTTP Response Code: 403
HTTP Message......: Forbidden
Twitter error.....: 187
Twitter message...: Status is a duplicate.
twitter Failed: we will try again next time.. Title [PG-13] [2013] 108min 

Twitter works in the following version: twitter API changed

 https://forums.plex.tv/topic/79616-plexwatch-windows-branch/page-17#entry577736

 Replace your exe with: https://github.com/ljunkie/plexWatch/raw/v0.2.5-DEV/plexWatch.exe

also now, you may see an error while running test notify.. you can disregard it for now ( email issue, but only for the test_notify )

Can't use string ("Title [PG-13] [2013] 108min") as a HASH ref while "strict refs" in use...
C:\plexWatch>plexWatch.exe --test_notify=recent --debug
Twitter Alert: New Movie: Title [PG-13] [2013] 108min https://github.com/ljunkie
/plexWatch
Wed Feb 12 18:30:24 2014: DEBUG: TWITTER error 403: New Movie: Title [PG-13] [20
13] 108min https://github.com/ljunkie/plexWatch - (You are over the daily limit
for sending Tweets. Please wait a few hours and try again.) -- setting twitter to back off additional notifications
FILE Notification successfully logged.
twitter Failed: we will try again next time.. Title [PG-13] [2013] 108min
Wed Feb 12 18:30:24 2014: DEBUG: New Movie: Title [PG-13] [2013] 108min
FILE Notification successfully logged.
EMAIL key:1 enabled for this push_recentlyadded
Wed Feb 12 18:30:26 2014: EMAIL Notification successfully posted to . activity@#####.co.uk
EMAIL key:2 NOT enabled for this push_recentlyadded - skipping
Wed Feb 12 18:30:28 2014: PUSHOVER Notification successfully posted.

I havent tweeted anything today... The account was only created a few days ago...

When I goto to OAuth settings it has all four strings which match what I have in the config file.

One thing I did notice is Request Settings, Currently its set to Get. Is that correct?

C:\plexWatch>plexWatch.exe --test_notify=recent --debug
Twitter Alert: New Movie: Title [PG-13] [2013] 108min https://github.com/ljunkie
/plexWatch
Wed Feb 12 18:30:24 2014: DEBUG: TWITTER error 403: New Movie: Title [PG-13] [20
13] 108min https://github.com/ljunkie/plexWatch - (You are over the daily limit
for sending Tweets. Please wait a few hours and try again.) -- setting twitter to back off additional notifications
FILE Notification successfully logged.
twitter Failed: we will try again next time.. Title [PG-13] [2013] 108min
Wed Feb 12 18:30:24 2014: DEBUG: New Movie: Title [PG-13] [2013] 108min
FILE Notification successfully logged.
EMAIL key:1 enabled for this push_recentlyadded
Wed Feb 12 18:30:26 2014: EMAIL Notification successfully posted to . activity@#####.co.uk
EMAIL key:2 NOT enabled for this push_recentlyadded - skipping
Wed Feb 12 18:30:28 2014: PUSHOVER Notification successfully posted.

I havent tweeted anything today... The account was only created a few days ago...

When I goto to OAuth settings it has all four strings which match what I have in the config file.

One thing I did notice is Request Settings, Currently its set to Get. Is that correct?

I've updated plexWatch.exe with the lastest version as you suggested.

plexWatch.exe --test_notify=recent --debug runs successfully and updates twitter.

The problem I now have is the task scheduler is no longer working.

In the history of the task it carries out :
Task engine recieved message to start task
Task Started
Action started
Created task Process

It does not:

Action Completed
Task Completed

I havent changed anything to the task to when it was working.

I've restarted the task, restarted the server and created a new task but to no avail. :'(

I'm having some issues for some reason, I recently moved and switch ISP's so figured I'd update plexwatch to the latest version in the process. I've had this setup before with no issues and it was working on old ISP/version.

I download all files in the .zip (version 0.2.1) to C:\plexwatch and renamed the config to config.pl. I then edited the config file and added my plexpass info and enabled the email notifications. Set the smtp server, email address, and from address. I run the plexwatch.exe and no erros, so that seems good. I then start a movie, run plexwatch.exe and no email.

I verified I can send email out from my ISP's smtp server. Test this with my raid card email notifications and it works great. I checked the plexWatch.log and recent played movies are showing in there. I checked the debug.log and its showing 

Thu Feb 13 08:05:33 2014: * Video State: stopped [prev: playing]
Thu Feb 13 08:05:34 2014: SERVER:10 Years: push_type:push_watched
Thu Feb 13 08:05:34 2014: SERVER:10 Years: file push_watched enabled -> sending notify
Thu Feb 13 08:05:34 2014: SERVER:10 Years: EMAIL push_watched enabled -> sending notify
Thu Feb 13 08:05:34 2014: EMAIL Notification successfully posted to . myemail@gmail.com
 
I ran this command: plexwatch.exe --watched
- it shows the 2 movies that i had playing but now paused, one from phone the other from the browser.
 
I then run this command: plexwatch.exe --test_noftify=recent --debug
- it shows
C:\plexWatch>plexWatch.exe --test_notify=recent --debug
Thu Feb 13 08:15:06 2014: DEBUG: New Movie: Title [PG-13] [2013] 108min
FILE Notification successfully logged.
 
 
Any ideas? Thanks for looking
 
Not sure what else to try and can't figure out why the emails are not being sent.

I've resolved my issue.

It was hanging due to Security Warning that you obviously dont see when its ran as a task. If you run each vbs scripts from command promt windows pops up with a security warning asking you if you want to run this action. Untick Always ask before opening and all should be fine.

Everything is working for me now.

Thanks for all your help and a great product lijunkie!

I've tried redmonkie's fix but I never got a popup security warning so I figured I'd try a different notification method. I setup a prowl account, got the API key and install the app on my iphone. I put my api key and username into the prowl settings section along with enabling by adding a 1.

I ran 'plexWatch.exe --test_notify=recent --debug' and never received the prowl message.

I've also disable the windows firewall thinking it may be blocking something but that didn't help. Still at a loss on to why this isn't wanting to notify me.

Any ideas anyone?

It’s possible you are running into the bug that only affects --test_notify when email is enabled (it’s broke). I have a fix, but it wasn’t high priority. Try disabling email for now to make sure your test works for prowl.


Can you also include the output from your command when you run it with --debug


I’ve tried redmonkie’s fix but I never got a popup security warning so I figured I’d try a different notification method. I setup a prowl account, got the API key and install the app on my iphone. I put my api key and username into the prowl settings section along with enabling by adding a 1.


I ran ‘plexWatch.exe --test_notify=recent --debug’ and never received the prowl message.


I’ve also disable the windows firewall thinking it may be blocking something but that didn’t help. Still at a loss on to why this isn’t wanting to notify me.


Any ideas anyone?

I just got the prowl notifications working, guess a reboot fixed that? Anyways I'm happy with that working with the event task running every min and also when running the test. Anyways here is the output from the debug.

c:\plexWatch>plexWatch.exe --test_notify=recent --debug
Fri Feb 14 10:36:40 2014: DEBUG: New Movie: Title [PG-13] [2013] 108min
FILE Notification successfully logged.
EMAIL key:1 enabled for this push_recentlyadded
Fri Feb 14 10:36:41 2014: EMAIL Notification successfully posted to . myemail@gmail.com
EMAIL key:2 NOT enabled for this push_recentlyadded - skipping

PROWL Notification successfully posted. 

Thanks for the help!

PlexWatch v0.2.6

  • IP logging with PMS 0.9.9.3 fixed
  • exclude non library content ( override in config.pl : $inc_non_library_content = 1; )
  • test_notify with email enabled would fail
  • myPlex users with accents caused continuous notifications/log entries
  • encoding fixes: all accents/umlauts and other languages *should* work (win32 cli output could still have issues - not a high priority )
  • twitter fixes (use https)
  • boxcar_v2 addition
  • code cleanup and other misc fixes
Upgrade instructions:
  • replace plexWatch.exe
  • that's it ( it will upgrade/fix itself )

PlexWatch v0.2.7

  • IP matching was too greedy ( may have included more than the IP address)

 

Upgrade instructions:

  • replace plexWatch.exe
  • that's it ( it will upgrade/fix itself )