Thanks for the hard work on this script, have it up and running on Ubuntu 13.04 working with Pushover beautifully!
Anyone using the DEV branch - please update. A few bugs have been squashed.
0.0.20 DEV-2 is ready for testing - https://github.com/ljunkie/plexWatch/tree/dev
Changes:
* Fixed: duration watched when video is paused, then stopped
* Fixed: I broke --recently_added :)
* Fixed: XML UTF-8 decoding/encoding
* Fixed: Accent marks are allowed
Thanks for the reports my_kid_will_be_named_PLEX
0.0.20 DEV is ready for testing
https://github.com/ljunkie/plexWatch/tree/dev
Screenshots: iOS Boxcar // iOS Prowl // iOS Pushover // Win7 Growl
I will post more details later, but I wanted to give everyone early access. Make sure you look at the new config.pl-dist ( old config.pl will work, but you will probably want to update the two things I list below )
Things to update in your config.pl
1) $alert_format -- I would use these ongoing and change them as your see fit. Mainly removing "{user} watched|watching|etc" from the beginning - The title is dynamically corrected now to to fix redundancy
$alert_format = {'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address}', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address}', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address}', 'watched' => '{user} watched {title} [{streamtype}] [{year}] [{length}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address}', 'watching' => '{user} {state} {title} [{streamtype}] [{year}] [{rating}] [{length}] on {platform} for {duration} [{percent_complete}%] [{time_left} left] {ip_address}' };2) $notify -- added new new push options to every provider ( except file of course )
'push_paused' => 1, 'push_resumed' => 1,Change Log 0.0.20
* NEW: Email provider ( NonAuth, Auth, TLS/SSL supported) requires Net::SMTP::TLScentos: yum install perl\(Net::SMTP::TLS\)debian: apt-get install libnet-smtp-tls-perlother: cpan install MIME::Lite* NEW: paused/resumed state and time are now accounted for* NEW: paused/resumed push types enabled - push_paused, pushed_resumed added to each provider* NEW: you can override 'alert_format' per provider ( check out the EMAIL provider for an example )* FIX: watched duration corrected going forward (accounts for paused content and can be overridden with $count_paused )paused/resumed states have allowed this to work* FIX: Redundant titles are now fixed - Title/Application also will always show {user} unless overridden in config.pl$appname is no longer used and replaced with {user} -- {user} if used even if config.pl has $appname ( no need to update config.pl )before: title: "plexWatch watched" msg: "user watched title etc...."after: title: "{user} watched" msg: "title etc...."* FIX: --test_notify will not print options to test ( and they actually correspond to the right notification type now!)* FIX: do not print backup info every time --debug is called* Screenshots added to screenshots folder for iOS and Windows
Would love to see these on windows
keep up the good work! It works really well thanks so much
Would love to see these on windows :) keep up the good work! It works really well thanks so much
Windows will always be behind linux. It takes a bit more work to get everything packaged. I will get a windows release ready when the bugs are worked out of the linux release. Thanks again!
Do you sleep? LOL
Awesome work ljunkie! Between plexWatch and RARflix/RARflixTest you have greatly enhanced the entire Plex experience!
Thank you! I will try and get some of the users of my server to show their appreciation for your efforts through donations.....
Great work! I have absolutely zero knowledge of most of what all this means/does but was able to get if up and running great on my MacMini server with Growl/Prowl notifications thanks to the straightforward steps posted. Thanks much!!
The one thing I notice is that I do not receive any notifications when a remote user is accessing my PMS via a jailbroken Apple TV 2. Does this have anything to do with the Apple TV 2 plex platform not yet being compatible with the multiuser/now playing capabilities? If not - any idea why my remote Apple TV shared user fails to send a notification when viewing my PMS?
Thanks again for the great work!!
Great work! I have absolutely zero knowledge of most of what all this means/does but was able to get if up and running great on my MacMini server with Growl/Prowl notifications thanks to the straightforward steps posted. Thanks much!!
The one thing I notice is that I do not receive any notifications when a remote user is accessing my PMS via a jailbroken Apple TV 2. Does this have anything to do with the Apple TV 2 plex platform not yet being compatible with the multiuser/now playing capabilities? If not - any idea why my remote Apple TV shared user fails to send a notification when viewing my PMS?
Thanks again for the great work!!
Thanks! Glad you were able to get it working without to much work. Sadly yes, the plex app on a jail broken ATV2 is not compatible with the new now playing section of the PMS. I have no idea if anyone is working on that. PlexConnect works, but I don't think that works with shared users yet either (don't quote me on that).
Thanks, I missed that post. Looks like its on your to do list, wonderful.
Hey ljunkie, sorry if I missed this but is there an easy way to disable alerts only from a specific plex client but leave them enabled for the rest?
Hey ljunkie, sorry if I missed this but is there an easy way to disable alerts only from a specific plex client but leave them enabled for the rest?
Yes, you can use
plexWatch.pl --notify --exclude usernamemultiple at once
plexWatch.pl --notify --exclude username --exclude username2
NOTE: I did find a small bug with this. If someone used --watching (which calls the notify command to keep the DB consistent), it *could* have sent a notification for the user you'd want to exclude. If you included "--watching --exclude username", then it wouldn't page however you wouldn't see the user. So the fix: --watching only updates the DB for consistency, but will no longer send out notifications.. and that should have been the normal process as calling --watching should not have ever sent notifications.
TL;DR: Above examples work, but I suggest to use NEW DEV version to fix any anomolies (when --watching is used) https://raw.github.com/ljunkie/plexWatch/dev/plexWatch.pl
EDIT: dev version is ready
Howdy All,
I am new to Plex Watch and have installed using the instructions on https://github.com/ljunkie/plexWatch
I am running OS X 10.8.4
All went well but I can't seem to get email notifications through using boxcar. When i test the following is produced.
plex:~ david$ /opt/plexWatch/plexWatch.pl --stats
Can't locate File/ReadBackwards.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /opt/plexWatch/plexWatch.pl line 79.
Can anyone help out?
Dave
Howdy All,
I am new to Plex Watch and have installed using the instructions on https://github.com/ljunkie/plexWatch
I am running OS X 10.8.4
All went well but I can't seem to get email notifications through using boxcar. When i test the following is produced.
plex:~ david$ /opt/plexWatch/plexWatch.pl --stats
Can't locate File/ReadBackwards.pm in @INC (@INC contains: /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level /Library/Perl/Updates/5.12.4 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12 .) at /opt/plexWatch/plexWatch.pl line 79.
Can anyone help out?
Dave
sudo cpan File::ReadBackwards
I haven't done it yet, but if my PMS is on a windows box would installing linux in a VM allow me to run the linux version of plexWatch and have it watch the PMS on the host windows machine?
It looks like it should work, point "$server= " to the correct IP address and then the only issue would be mapping the $server_log directory.
I haven't done it yet, but if my PMS is on a windows box would installing linux in a VM allow me to run the linux version of plexWatch and have it watch the PMS on the host windows machine?
It looks like it should work, point "$server= " to the correct IP address and then the only issue would be mapping the $server_log directory.
If you're just looking for a Windows solution of plexWatch, ljunkie has another thread for it here:
http://forums.plexapp.com/index.php/topic/79616-plexwatch-windows-branch/
If you're just looking for a Windows solution of plexWatch, ljunkie has another thread for it here:
I wasn't looking for the windows version.
I was interested in seeing if it would work because the linux version is usually ahead of the windows version as far as updates and fixes
I don't know about other VM software out there but I do know that VirtualBox allows for shared folders between the guest and host via the GuestAdditions. (http://www.virtualbox.org/manual/ch04.html#sharedfolders)
In theory, couldn't you just make a symlink of the logs folder to that shared folder between the host [Windows] and guest [Linux]?
Yes that is what I was thinking too.
I already have virtualbox installed, just haven't had a chance to try this yet
I haven't done it yet, but if my PMS is on a windows box would installing linux in a VM allow me to run the linux version of plexWatch and have it watch the PMS on the host windows machine?
It looks like it should work, point "$server= " to the correct IP address and then the only issue would be mapping the $server_log directory.
Of course this will work. These days I run everything in a VM. And yes, if you enable ip logging it would require you to have local access to the plex logs ( samba, nfs, etc)
Hi Guys,
i've been through the readme and setup the dependancies but it keeps complaining about the SQLite database with the following error
install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 9) line 3.
Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.
at /opt/plexWatch/plexWatch.pl line 1247
I've installed SQLite successfully though so not sure why it's still complaining. I'm running ubuntu 12.04
Col
sudo cpan File::ReadBackwards
I tried this but i am still getting the same error. Any other suggestions?
Dave