plexWatch - Plex Notify Script - Send Push Alerts On New Sessions and Stopped

@radiocolin said:
I’m having some issues with what I presume is Socket::SSL. Fresh install of the latest Ubuntu server.

/opt/plexWatch$ /opt/plexWatch/plexWatch.pl --test_notify=stop
Failed to post Pushover notification -- user watched title [T or D - for Transcoded or Direct] on client platform for duration watched [Percent of video watched -- user could have only watched 5 minutes, but skipped to end = 100%%] result:SSL_verify_mode must be a number and not a string at /usr/share/perl5/IO/Socket/SSL.pm line 2130.

I solved this by deleting this line from plexWatch.pl:

SSL_verify_mode => "SSL_VERIFY_NONE",

I removed mulitple instances, but I believe it’s the one here (around line 3800):

`sub myPlexToken() {
if (!$myPlex_user || !$myPlex_pass) {
print "* You MUST specify a myPlex_user and myPlex_pass in the config.pl
";
print "
$myPlex_user = ‘your username’
";
print " $myPlex_pass = ‘your password’

";
exit;
}
my $ua = LWP::UserAgent->new( ssl_opts => {
verify_hostname => 0,
SSL_verify_mode => “SSL_VERIFY_NONE”,
});`

I’m sure there will be a more official solution at some point :slight_smile: