If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

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

1235767

Comments

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    EntroX wrote on July 24 2013, 11:56 PM: »

    alright, i gave it a go and it seems to be working fine, let me throw some more stuff into it to see how it goes.

    Good to know. If you blew away the plexWatch.db and it all went through, then it sounds like the new url encoding is working. If we don't have any further issues in the next day or so, I'll release this as stable. 

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass
    ljunkie wrote on July 25 2013, 12:22 AM: »

    Good to know. If you blew away the plexWatch.db and it all went through, then it sounds like the new url encoding is working. If we don't have any further issues in the next day or so, I'll release this as stable. 

    right, everything seems to be working just fine, 2 new episodes i throwed in got reported, logged and pushed to my phone:

    Photo_Jul_24,_8_30_55_PM.png

    Current Library: http://stoleyour.com/plex/ (around 8TB)
    PMS: Mac Mini 5,3 (Mid 2011) | i7 QC @ 2Ghz | 16GB DDR3 | 2x 128GB Samsung 840 Pro SSD's | WS2008R2
    NAS: Drobo 5N | 5x HGST Ultrastar | 14.5TB RAID5 | 1x 64GB Crucial m4 mSATA SSD (Cache) | Firmware 3.1.0

    Clients: 5x iOS 6.0+ Devices | 3x Roku2 XS | 1x HP TouchPad | 3x Laptops (OSX 10.8.X) | 2x Desktops (Windows 7)

  • WeeflixWeeflix Posts: 238Members, Plex Pass Plex Pass
    ljunkie wrote on July 24 2013, 5:37 AM: »

    I am thinking you are either missing the package 'make' and/or 'gcc'. You could try installing those through apt-get/yum.

    You could also just install the default build utils:
    Ubuntu: apt-get build-essential
    Centos: yum groupinstall "Development Tools"


    I was able to install the twitter plug-in by typing in the CPAN shell:

    force install Net::Twitter::Lite::WithAPIv1_1
  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass
    war59312 wrote on July 1 2013, 2:12 AM: »

    By the way, any chance of adding support for BoxCar?

    See: http://boxcar.io/help/api/providers

    ljunkie wrote on July 1 2013, 3:05 AM: »

    Added to my list. I also plan on email support. Any others?

    Still plan on adding ?

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Still plan on adding ?


    How did I forget? I'll add this to the next release.
  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass

    Awsome! :D

    Thanks again!!

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

  • WeeflixWeeflix Posts: 238Members, Plex Pass Plex Pass

    While we're on the subject of notifications. can we add support for Growl for Windows?  

    http://www.growlforwindows.com/gfw/developers.aspx

    Thanks.

  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass
    edited July 2013

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    edited July 2013
    bauerknight wrote on July 25 2013, 7:32 PM: »

    While we're on the subject of notifications. can we add support for Growl for Windows?  

    http://www.growlforwindows.com/gfw/developers.aspx

    Thanks.

    This is a perfect example why I need to change the existing growl provider to be more generic. Currently growl only works for OSX hosts. I will be looking into changing the GROWL notification to use something like http://search.cpan.org/~mattn/Growl-GNTP-0.20/ . I'd prefer not to use a module, but depending on time I might.

    tl;dr - generic growl update on the list

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    war59312 wrote on July 1 2013, 2:12 AM: »

    By the way, any chance of adding support for BoxCar?

    See: http://boxcar.io/help/api/providers

    Pushed to the dev branch. All it requires is a valid EMAIL address registered to a boxcar account. Just enable boxcar in config.pl, set your email and give it a test.


    Dev Branch:
    https://github.com/l...xWatch/tree/dev

    config.pl: https://raw.github.c.../config.pl-dist
    plexWatch.pl: https://raw.github.c...ev/plexWatch.pl

  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass

    Awsome! :D

    Will test this weekend.. You the man!

    Thanks again!!

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    war59312 wrote on July 25 2013, 8:40 PM: »

    It looks like snarl will be supported when I switch the Growl provider to a GNTP provider. I might actually just leave the growl provider 'as is' instead of making anyone switch configs. I will be adding a new provider for GNTP and will code to allow for multiple destinations. 

  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass

    Nice, sounds great.

    Thanks again.

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Hey everyone. I hope my constant updates are not annoying :) I am setting the dev branch to a release candidate. If any of you can please test this over the weekend and let me know how it goes. I'd like to release this Monday if everything goes well.

    plexWatch  - RC1

    Dev Branch:
    https://github.com/l...xWatch/tree/dev

    config.pl: https://raw.github.c.../config.pl-dist
    plexWatch.pl: https://raw.github.c...ev/plexWatch.pl


    Main new features:
    :: since 0.0.14 ::
    * --recently_added=movie -- will notify when new movies are added to the PMS
    * --recently_added=show -- will notify when new episodes are added to the PMS
         Requires the notification provider in config.pl to have 'push_recentlyadded' => 1

    * Twitter added

    * Boxcar added
    * --exclude_user

    * all providers now have 'push_watched', 'push_watching' and 'push_recentlyadded' . You can enable these per provider. You still need to set 'enabled' => 1 to actually enable the provider.


    Change Log:
     

    0.0.15-rc1
     * added recently_added=[movie,show]  -- notify on recently added items to PMS
     * Twitter added as a provider
        -  requires Net::Twitter::Lite::WithAPIv1_1  ( install with: 'cpan Net::Twitter::Lite::WithAPIv1_1' )
        -  requires Net::OAuth >= 0.28  ( install with: 'cpan Net::OAuth' )
        -  twitter OAUTH required - create a new app @ https://dev.twitter.com/apps
         -- make sure to set set ApplicationType to read/write
     *  config.pl: added  push_watched => 1, push_watching => 1, push_recently_added => 1 to all providers. Enable to disable specific notify types
     * --exclude_user added to all functions. You can specifiy --exclude_user multiple times.. i.e --exclude_user=user1 --exclude_user=otherUsername
     * Boxcar added as provider
       - All you need is a registered account on boxcar (valid email)
       - If enabled, this script with register your boxcar account to the plexWatch service -- simple right?
     * Twitter/OAuth modules ONLY required if you enable twitter (Net::Twitter::Lite::WithAPIv1_1 , Net::OAuth)
     * removed module WWW::Curl::Easy (replaced with LWP which is more standard)
     * removed module URI::Escape (using my own subroutine)
     * --version added -- easier to debug
     

    I am still hoping to add the GNTP (growl) provider after this release. I haven't forgot :)

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass

    will give most of it a go tonight, down with a cold atm.

    Current Library: http://stoleyour.com/plex/ (around 8TB)
    PMS: Mac Mini 5,3 (Mid 2011) | i7 QC @ 2Ghz | 16GB DDR3 | 2x 128GB Samsung 840 Pro SSD's | WS2008R2
    NAS: Drobo 5N | 5x HGST Ultrastar | 14.5TB RAID5 | 1x 64GB Crucial m4 mSATA SSD (Cache) | Firmware 3.1.0

    Clients: 5x iOS 6.0+ Devices | 3x Roku2 XS | 1x HP TouchPad | 3x Laptops (OSX 10.8.X) | 2x Desktops (Windows 7)

  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass
    edited July 2013

    dev build results in this:

    rob@RobsUbuntuServer:/opt/plexWatch$ sudo /opt/plexWatch/plexWatch.pl

    Failed to get request http://localhost:32400/status/sessions - The result:

    <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html>

    Plex is up and running just fine and indeed that page does NOT exist. Never has.

    Well, NOT a permission error or bad ip.

    rob@RobsUbuntuServer:/opt/plexWatch$ sudo chown -R rob:rob config.pl
    rob@RobsUbuntuServer:/opt/plexWatch$ sudo chown -R rob:rob plexWatch.db
    rob@RobsUbuntuServer:/opt/plexWatch$ sudo chown -R rob:rob plexWatch.pl
    rob@RobsUbuntuServer:/opt/plexWatch$ ls -l
    total 80
    -rw-r--r-- 1 rob rob  3649 Jul 27 13:40 config.pl
    -rw-r--r-- 1 rob rob 11264 Jul 27 13:37 plexWatch.db
    -rwxr-xr-x 1 rob rob 62337 Jul 27 13:34 plexWatch.pl
    rob@RobsUbuntuServer:/opt/plexWatch$ /opt/plexWatch/plexWatch.pl

    Failed to get request http://192.168.1.193:32400/status/sessions - The result:

    <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html>

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    war59312 wrote on July 27 2013, 5:35 PM: »

    dev build results in this:

    Plex is up and running just fine and indeed that page does NOT exist. Never has.

    Well, NOT a permission error or bad ip.

    This is odd. Can you view the page it's trying to grab? http://192.168.1.193:32400/status/sessions

    Just to verify, what version of PMS are you running? I would have thought a Plex Pass versions since this has worked before. 

  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass
    edited July 2013

    Viewing http://192.168.1.193:32400/status/sessions results in 404 Not Found:

    <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html>

    Request URL:http://192.168.1.193:32400/status/sessions
    Request Method:GET
    Status Code:404 Not Found
    Request Headersview source
    Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Encoding:gzip,deflate,sdch
    Accept-Language:en-US,en;q=0.8
    Cache-Control:no-cache
    Connection:keep-alive
    Cookie:__jwpusr=b896e767-60db-4510-b1b9-2ff6d58ec457; plushContainerWidth=100%25; plushMultiOps=1; plushNoTopMenu=0; jwplayer.volume=100; SESSION-GUID=ygv6sedpxyt7f1or; testing=1; sid=2143dbfa03b4cc30a3f8b275975461b7; advanced_toggle_checked=1; snatched_view2=list; soon_view2=thumbs; late_view2=list; wanted_view2=details; manage_view2=details
    DNT:1
    Host:192.168.1.193:32400
    Pragma:no-cache
    Referer:http://forums.plexapp.com/index.php/topic/72552-plexwatch-plex-notify-script-send-push-alerts-on-new-sessions-and-stopped/page-5
    User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
    Response Headersview source
    Cache-Control:no-cache
    Content-Length:85
    Content-Type:text/html
    X-Plex-Protocol:1.0

    Running Plex Media Server Version 0.9.7.28 with Plex/Web Version 1.2.6 on Ubuntu 13.04 x64.

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    war59312 wrote on July 27 2013, 5:54 PM: »

    Viewing http://192.168.1.193:32400/status/sessions results in 404 Not Found:

    Running Plex Media Server Version 0.9.7.28 with Plex/Web Version 1.2.6 on Ubuntu 13.04 x64.

    This is why. I changed the code to error if the /status/sessions url fails - which is was for you before, it just didn't exit with an error before. This script requires PMS 0.9.8.x (PlexPass only version for now) for any watched status. The --recently_added option *should* work with prior versions. I will look into checking PMS versions in this script to explain this when it errors. 

    Am I correct with the fact this script has never notified you on watching/watched status? It really shouldn't have ever been able to. 

  • war59312war59312 Posts: 52Members, Plex Pass Plex Pass
    edited July 2013

    ljunkie, on 27 Jul 2013 - 14:03, said:
    This is why. I changed the code to error if the /status/sessions url fails - which is was for you before, it just didn't exit with an error before. This script requires PMS 0.9.8.x (PlexPass only version for now) for any watched status. The --recently_added option *should* work with prior versions. I will look into checking PMS versions in this script to explain this when it errors.

    Am I correct with the fact this script has never notified you on watching/watched status? It really shouldn't have ever been able to.

    Indeed, I had not had time to test it beyond simply getting it installed.

    Was not aware I had to have PlexPass. I see you updated first page stating that now.

    Bummer. Well I do NOT even use Plex much so not worth it to me.

    You are of course correct, as master version simply shows:

    rob@RobsUbuntuServer:~/Desktop$ /opt/plexWatch/plexWatch.pl --watching
    ======================================= Watching ========================================
    * nothing in progress

    Even though I am watching an episode of Burn Notice right now.

    God Bless U.S.A - Congrats Ladies. :) Champs of the world!! :D

Sign In or Register to comment.