plexWatch - Windows Branch

So these old people who are not technologically advanced are streaming media and recieving customized notifications from plexwatch, however are not savy enough for twitter / text? I don't want to sound condescending, as I know it must sound that way. I'm just trying to understand that one. I would honestly either make a distro / form and email them occasionally. Otherwise, RSS Feed / Blog or facebook page, something to go alone with the server. Or just don't worry about it and let them experience an outage. Honestly, using plexwatch you can probably find out when the server is most used and least used and find a good time spot where the server is either not in user, or under minimal use. Anyway, I have to agree, I don't think this is something for plexwatch to handle, I think it kind of side rails the agenda instead of progresses it. Sounds like you are looking to do something like I am working on though. Making a lil control panel for all my functions to be accessable via a page in browser / mobile. If you need assistance or want to chat pm me. Perhaps we can kick around some ideas / help one another.

So these old people who are not technologically advanced are streaming media and recieving customized notifications from plexwatch, however are not savy enough for twitter / text? I don't want to sound condescending, as I know it must sound that way. I'm just trying to understand that one. I would honestly either make a distro / form and email them occasionally. Otherwise, RSS Feed / Blog or facebook page, something to go alone with the server. Or just don't worry about it and let them experience an outage. Honestly, using plexwatch you can probably find out when the server is most used and least used and find a good time spot where the server is either not in user, or under minimal use. Anyway, I have to agree, I don't think this is something for plexwatch to handle, I think it kind of side rails the agenda instead of progresses it. Sounds like you are looking to do something like I am working on though. Making a lil control panel for all my functions to be accessable via a page in browser / mobile. If you need assistance or want to chat pm me. Perhaps we can kick around some ideas / help one another.

The media they are streaming comes from a smart tv which i set up a roku which i setup sony google tv boxes which I setup....

so using a remote is not difficult.

They DONT currently get any notifications from plexwatch or the server.....

  They get a personal shotgun email from me which like i said goes to their phone as well.

Just thought that since multiple email support was already there..... I would just configure it on my end and they would then receive the email notification auto-magically!! 

Like I was saying before, this can be done without plexwatch. If you need help let me know.

Here bro, you can use the web, don't even need to have set up on a server or use any local files. https://ifttt.com/wtf

it supports all of these functions.  https://ifttt.com/channels

You can use a google calendar event, email, or even notification for a trigger.

No problem.....

I just know that people have been looking for a way to send........ "server Messages" to users and thought this might be a good fit for something that was already a GREAT ADD ON for plex.

being that it already pushes notifications on all platforms.

Perhaps I even listed this in the wrong place ...... I apologize.

Would you have any objections into me looking into modifying this to work for me as i described?

The media they are streaming comes from a smart tv which i set up a roku which i setup sony google tv boxes which I setup....

so using a remote is not difficult.

They DONT currently get any notifications from plexwatch or the server.....

  They get a personal shotgun email from me which like i said goes to their phone as well.

Just thought that since multiple email support was already there..... I would just configure it on my end and they would then receive the email notification auto-magically!! 

This is outside of plexWatch. Notification providers including email are for notification about "Now Playing" content and "Recently Added" content. Sorry but I do not want to add in a new feature that would offset the task at hand, now playing/watch history.

As you said, it's just a personal shotgun email. You could either setup a email list, so you can email one address and it will email all or you can schedule recurring emails other ways http://www.boomeranggmail.com/l/how-to-send-recurring-emails.html . Email has been around for ages and there are a ton of email services out there. 

Edit: if you are referring to plexWatch/Web -- then maybe you could try that forum. plexWatch is the core to history, but plexWatch/Web is also capable of sending out emails. I'd think more people would use that interface now than a cli anyways. 

I'm having some trouble getting PlexWatch to pass credentials to my Plex server. I have config values like this:

$myPlex_user = '';
$myPlex_pass = '';
 
$server = ''; ## IP of PMS - or localhost
$port = ;         ## port of PMS
 
However, I get 403 errors whenever PlexWatch runs.
 
My work around is to bring up a browser and navigate to Plex/Web and log in to my Plex account on there. After I have done this log in, the requests go through just fine, no 403 error.
 
Any ideas?

I'm having some trouble getting PlexWatch to pass credentials to my Plex server. I have config values like this:

$myPlex_user = '';
$myPlex_pass = '';

$server = ''; ## IP of PMS - or localhost
$port = ; ## port of PMS

However, I get 403 errors whenever PlexWatch runs.

My work around is to bring up a browser and navigate to Plex/Web and log in to my Plex account on there. After I have done this log in, the requests go through just fine, no 403 error.

Any ideas?


Did this just start happening? Myplex was down for maintenance. Also, logging into the website and running the script should have no effect on each other. They don't share cookies in any way. It might help if you run it with --debug so we can see the error.

Do you need myPlex anyways for plexWatch? Only required if you run it on a separate machine.

Also verify your PMS is logged into your plex account and published. Check plex/Web // setting // plex media server // myplex

Hey there. I'm having some troubles getting email notifications setup. I am getting a message "Can't call method mail on a...". I have defined all of the appropriate parameters using smtp.google.com in the config.pl file, but I am getting the following message in the logs...I turned on the --debug flag:

....

format: {title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}
Mon Nov 25 14:03:04 2013: Rick:The Ides of March: push_type:push_watching
Mon Nov 25 14:03:04 2013: Rick:The Ides of March: file push_watching enabled -> sending notify

format: {title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}
Mon Nov 25 14:03:04 2013: DEBUG: Rick Watching: The Ides of March [D] [2011] [14A] on My NSZ-GS7/GX70 [4 minutes in] 192.168.1.8
FILE Notification successfully logged.
Mon Nov 25 14:03:04 2013: Rick:The Ides of March: EMAIL push_watching enabled -> sending notify

format: {title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address} {all_details}
EMAIL key:1 enabled for this push_watching
Mon Nov 25 14:05:04 2013: EMAIL failed The Ides of March [D] [2011] [14A] on My NSZ-GS7/GX70 [4 minutes in] 192.168.1.8,           -----Al
Mon Nov 25 14:05:04 2013: EMAIL error: Can't call method "mail" on an undefined value at plexWatch.pl line 2337, line 176.

format: {title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}
EMAIL key:2 NOT enabled for this push_watching - skipping
Mon Nov 25 14:05:04 2013: EMAIL failed: - setting EMAIL to back off additional notifications

Any help is appreciated! I can send along a snip of the parameters in the config.pl if required...

Looks like there must be something missing or wrong in the config.pl. Can you PM me your config - you can remove passwords. 

Hey there. I'm having some troubles getting email notifications setup. I am getting a message "Can't call method mail on a...". I have defined all of the appropriate parameters using smtp.google.com in the config.pl file, but I am getting the following message in the logs...I turned on the --debug flag:

....

format: {title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}
Mon Nov 25 14:03:04 2013: Rick:The Ides of March: push_type:push_watching
Mon Nov 25 14:03:04 2013: Rick:The Ides of March: file push_watching enabled -> sending notify

format: {title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}
Mon Nov 25 14:03:04 2013: DEBUG: Rick Watching: The Ides of March [D] [2011] [14A] on My NSZ-GS7/GX70 [4 minutes in] 192.168.1.8
FILE Notification successfully logged.
Mon Nov 25 14:03:04 2013: Rick:The Ides of March: EMAIL push_watching enabled -> sending notify

format: {title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address} {all_details}
EMAIL key:1 enabled for this push_watching
Mon Nov 25 14:05:04 2013: EMAIL failed The Ides of March [D] [2011] [14A] on My NSZ-GS7/GX70 [4 minutes in] 192.168.1.8,           -----Al
Mon Nov 25 14:05:04 2013: EMAIL error: Can't call method "mail" on an undefined value at plexWatch.pl line 2337, line 176.

format: {title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}
EMAIL key:2 NOT enabled for this push_watching - skipping
Mon Nov 25 14:05:04 2013: EMAIL failed: - setting EMAIL to back off additional notifications

Any help is appreciated! I can send along a snip of the parameters in the config.pl if required...

I am trying to get the email notifications setup however am unsuccessful even though the logs are showing success? Any idea's? I am really excited to get this going... :D

Replaced personal info with X's for security :)

config.pl settings

-----------------------

  'EMAIL' => { 
 
'1' => {
   'enabled' => 1, ## set to 1 to enable local EMAIL
   'push_recentlyadded'  => 0,
   'push_watched'        => 1,
   'push_watching'       => 1,
   'push_paused'         => 1,
   'push_resumed'        => 1,
   'server' => 'smtp.gmail.com', # your mail server
   'port' => '587', # your mail server port defalt 25 (587 is also a good choice)
   'from' => 'XXXXXXXXX@gmail.com',   # your From email address: 'user@domain.com'
   'to' => 'XXXXXXXXX@nmamail.net',     # Email address to receive notification: 'user@domain.com'
   'username' => 'XXXXX@gmail.com', # AUTH if needed [optional]
   'password' => 'XXXXXXXXX', # AUTH if needed [optional]
   'subject' => '{user} {push_title} {title}', ## push_title is special for EMAIL (for now)
   'enable_tls' => 1,  # ENABLE for TLS support ( your smtp server must allow STARTTLS )
   'alert_format' => {
   's
 
debug.log output
--------------------------
Wed Nov 27 09:01:59 2013: svrds10:Elysium: push_type:push_watching
Wed Nov 27 09:01:59 2013: svrds10:Elysium: file push_watching enabled -> sending notify
Wed Nov 27 09:02:00 2013: svrds10:Elysium: EMAIL push_watching enabled -> sending notify
Wed Nov 27 09:02:01 2013: EMAIL Notification successfully posted to . XXXXXXXXX@nmamail.net
 
cmd prompt output
--------------------------
c:\plexWatch>plexwatch.exe --test_notify=start
Wed Nov 27 09:01:59 2013: DEBUG test_notify: svrds10 Watching: Elysium [T] [2013
] on SCH-I545 - Ryan [0 in]
 
c:\plexWatch>

I am trying to get the email notifications setup however am unsuccessful even though the logs are showing success? Any idea's? I am really excited to get this going... :D

Replaced personal info with X's for security :)

config.pl settings

-----------------------

  'EMAIL' => { 
 
'1' => {
   'enabled' => 1, ## set to 1 to enable local EMAIL
   'push_recentlyadded'  => 0,
   'push_watched'        => 1,
   'push_watching'       => 1,
   'push_paused'         => 1,
   'push_resumed'        => 1,
   'server' => 'smtp.gmail.com', # your mail server
   'port' => '587', # your mail server port defalt 25 (587 is also a good choice)
   'from' => 'XXXXXXXXX@gmail.com',   # your From email address: 'user@domain.com'
   'to' => 'XXXXXXXXX@nmamail.net',     # Email address to receive notification: 'user@domain.com'
   'username' => 'XXXXX@gmail.com', # AUTH if needed [optional]
   'password' => 'XXXXXXXXX', # AUTH if needed [optional]
   'subject' => '{user} {push_title} {title}', ## push_title is special for EMAIL (for now)
   'enable_tls' => 1,  # ENABLE for TLS support ( your smtp server must allow STARTTLS )
   'alert_format' => {
   's
 
debug.log output
--------------------------
Wed Nov 27 09:01:59 2013: svrds10:Elysium: push_type:push_watching
Wed Nov 27 09:01:59 2013: svrds10:Elysium: file push_watching enabled -> sending notify
Wed Nov 27 09:02:00 2013: svrds10:Elysium: EMAIL push_watching enabled -> sending notify
Wed Nov 27 09:02:01 2013: EMAIL Notification successfully posted to . XXXXXXXXX@nmamail.net
 
cmd prompt output
--------------------------
c:\plexWatch>plexwatch.exe --test_notify=start
Wed Nov 27 09:01:59 2013: DEBUG test_notify: svrds10 Watching: Elysium [T] [2013
] on SCH-I545 - Ryan [0 in]
 
c:\plexWatch>

If it's a success, then it's accepted by gmail. From there, we have no idea what's going to happen to the email. Maybe you could try using another email provider for sending, I.E. the one your ISP gives you.

If it's a success, then it's accepted by gmail. From there, we have no idea what's going to happen to the email. Maybe you could try using another email provider for sending, I.E. the one your ISP gives you.

The thing is that I even changed the password just to see if that was the case and it still shows success? I tried a Gmail and Yahoo account.. Using the same settings I use for other applications

The thing is that I even changed the password just to see if that was the case and it still shows success? I tried a Gmail and Yahoo account.. Using the same settings I use for other applications


I will do some more testing to see if I'm not catching all the errors. Could be just the windows code. Do you have an email account with your ISP? I'm thinking maybe it's related to TLS. Try disabling it

I will do some more testing to see if I'm not catching all the errors. Could be just the windows code. Do you have an email account with your ISP? I'm thinking maybe it's related to TLS. Try disabling it

I just tried using yahoo, hotmail, & gmail with both TLS enabled and disabled while pointing to the appropriate ports. All show a success send but nothing came through even when sending to different email's..

Let me know if I can assist in trying anything else. :)

I just tried using yahoo, hotmail, & gmail with both TLS enabled and disabled while pointing to the appropriate ports. All show a success send but nothing came through even when sending to different email's..

Let me know if I can assist in trying anything else. :)

I will try and replicate the issue on windows. I know it's working fine on linux and I did test email previously, but it was with my own email server. I will have some more info later today. I need to push a new version anyways :)

confirmed - Email requiring AUTH will not work right now. Hopefully I will have an update soon. This affect the windows version only.

confirmed - Email requiring AUTH will not work right now. Hopefully I will have an update soon. This affect the windows version only.

Glad I wasn't going crazy! LOL... Let me know if I can help test anything.  In the meantime I have plexWatch/Web functioning :)

Glad I wasn't going crazy! LOL... Let me know if I can help test anything.  In the meantime I have plexWatch/Web functioning :)

I have a fix. Just cleaning everything up and I will have to build a new version. So it should be soonish :)