plexWatch - Windows Branch

PlexWatch v0.1.8

  • EMAIL notifications now require Net::SMTPS ( windows already built in )
  • –recently_added allow users to specify specific sections ( more info: --recently_added )
  • –exclude_user will mute a notification, but still be logged to the DB. useful for plexWeb/Watch
  • –recently_added empty notifications: skip item if scanner is still processing ( we will come back to it later )
  • speedup: do not autovaccum on every run
  • recreate grouped table daily. Any changes made to config.pl will reflect within 24 hours ( or just call --backup )
Upgrade instructions:Recently Added ( specified sections )
  • All Movie Sections : ./plexWatch.pl --recently_added=movie
  • All Movie / TV Sections : ./plexWatch.pl --recently_added=movie,show
  • Specific Section(s) : ./plexWatch.pl --recently_added --id=# --id=#
* To find your sections, just run “–recently_added” without any options
./plexWatch.exe --recently_added
    * Available Sections:

    ID    Title                Type       Path                
    -------------------------------------------------------------------
    8     Concerts             movie      /NFS/Videos/Music   
    6     Movies               movie      /NFS/Videos/Film    
    17    Holiday Movies       movie      /NFS/Videos/Others/Holiday_Movies
    5     TV Shows             show       /NFS/Videos/TV      

    * Usage: 

    All Movie Sections    : ./plexWatch.exe --recently_added=movie
    All Movie/TV Sections : ./plexWatch.exe --recently_added=movie,show
    Specific Section(s)   : ./plexWatch.exe --recently_added --id=# --id=#

does anything need to be done differently in the config.pl for the email notifications to work? using the same settings and on 18 but still no go... i do notice the test notify doesnt have the email logging now though

when i do a version on it it still shows  0.1.6 did the new version not get pushed out maybe? i redownloaded multiple times

when i do a version on it it still shows  0.1.6 did the new version not get pushed out maybe? i redownloaded multiple times

Yea, something up with the tagged version on github. Fixed. 

Awesome! Its working great now! Donation coming your way when I get home tonight :)

I did a Windows DOS COMP on the new .exe listed above and the existing plexWatch.exe I had installed. They are the same file. The new coding changes are not included in the file. 

Edit-- Just noticed the new posts. I will download the files once again.

I did a Windows DOS COMP on the new .exe listed above and the existing plexWatch.exe I had installed. They are the same file. The new coding changes are not included in the file. 

Try it again ( download the file again ). There was an issue with github tags and it was corrected 20 minutes ago. 

Thanks so much. Confirmed Windows based email setup is working great now using google mail outbound to my cellular service that then delivers a text message to me. Fantastic!

Donation sent! Thanks again... Its working great... :)

So after doing a little bit of testing I found that its not notifying me of movies playing from my aTV's... They are all running the plex app not plexconnect.. I see the logs in the "Plex Media Scanner.log" though. I'll PM you the logs I see if that may help. :)

Seems to be working fine on my android phone & tablet along with my iPhone and iPad Mini.

Possibly the aTV plex app writes to the log file differently? :)

Anyhow PM coming inbound...

So after doing a little bit of testing I found that its not notifying me of movies playing from my aTV's... They are all running the plex app not plexconnect.. I see the logs in the "Plex Media Scanner.log" though. I'll PM you the logs I see if that may help. :)

Seems to be working fine on my android phone & tablet along with my iPhone and iPad Mini.

Possibly the aTV plex app writes to the log file differently? :)

Anyhow PM coming inbound...


aTV clients are not supported (unless someone updates the clients code). A client must work with the now playing api of the PMS. You will notice while you are watching a video from an ATV, it won't show up under now watching on plex/Web. I have been told though that PlexConnect will work.

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

How would you specify this location using command prompt on windows server 2012 r2 Core?

*edit*

schtasks /v1 /create /tn plexWatch /tr c:\plexWatch\plexWatchNotify.vbs /sc minute /mo 1

Hi all,

Set up plexWatch and everything is working so far. The only hitch is that manual intervention is required to notify when something is playing. I've setup task scheduler to start plexWatchNotify.vbs every 1 minute and it reports it runs successfully. To double check this I open up task manager and I can see plexwatch.exe running for 2 secs and closes.

But there's no update in the plexwatch.txt file and nothing sent to pushover.

Now when I manually run plexWatchNotify.vbs everything works fine. plexWatch.txt updates and notifications are sent to my phone.

I'm struggling to find the root cause as naturally I would think theres an issue with task scheduler but it's carrying out its job as it should.

Any help would be much appriciated.

Hi all,
Set up plexWatch and everything is working so far. The only hitch is that manual intervention is required to notify when something is playing. I've setup task scheduler to start plexWatchNotify.vbs every 1 minute and it reports it runs successfully. To double check this I open up task manager and I can see plexwatch.exe running for 2 secs and closes.
But there's no update in the plexwatch.txt file and nothing sent to pushover.
Now when I manually run plexWatchNotify.vbs everything works fine. plexWatch.txt updates and notifications are sent to my phone.
I'm struggling to find the root cause as naturally I would think theres an issue with task scheduler but it's carrying out its job as it should.
Any help would be much appriciated.


Did you follow these steps specifically?
* schedule a task (every minute) to execute c:\plexWatch\plexWatchNotify.vbs ( specify the start in folder as c:\plexWatch\ )

Emphasis on the specify start folder while creating the task.

Ah no I hadnt.

Now its working.

Sorry that was a poor user error on my behalf.

Thanks for the speedy reply.

Not sure if this would be the right place to ask, but anyone have an example of how they use windows task scheduler to automate the .vbs to run when the computer boots, and not have to run them manually?

Firstly ljunkie thanks for the amazing work on this, when i first read thread i thought there was n o way i could get it running.

I have it setup to send emails for now, hoping to purchase pushover later today. 

Only problem im having is im still getting a cmd window popup every minute even though im pointing the task scheduler to the vbs files

Obviously somethign i've screwed up but can't quite work out what.

btw Using windows 7 

I would suggest you set your task for the script from your user, to system. That will hide the cmd window when the script runs. http://stackoverflow.com/questions/6568736/how-to-set-a-scheduled-task-to-run-in-background-using-windows-task-scheduler

Thanks for the reply, I downloaded the vbs files again and now it's working.


 

I got it working but I got this error

C:\plexWatch>plexWatch.exe
Failed to post Pushover notification -- 15 a├â┬▒os y un d├â┬¡a [D] [2013] on 
po-PC for 49 seconds [1%]  result:{"token":"invalid","errors":["application
 token is invalid"],"status":0,"request":"59552a17cdf8d598df239dd8fa15afa5"}
 
C:\plexWatch>
 
 
Any idea?