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

1246767

Comments

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass
    edited July 2013
    bauerknight wrote on July 24 2013, 4:29 AM: »

    ljunkie,
     
    I tried installing 0.0.15-dev and am getting this error
     
    Can't locate Net/Twitter/Lite/WithAPIv1_1.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 /opt/plexWatch/plexWatch.pl line 1069.
    BEGIN failed--compilation aborted at /opt/plexWatch/plexWatch.pl line 1069.
     
    I tried installing Net::Twitter::Lite::WithAPIv1_1 by using the command: sudo cpan Net::Twitter::Lite::WithAPIv1_1

    try doing it from a CPAN shell, to get into it just use:

    perl -MCPAN -e shell

    then do:

    install Net::Twitter::Lite::WithAPIv1_1

    (remember to use ctrl+d to quit)

    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)

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass

    right, after installing the Perl modules i tried giving the recently added shows bit a go, without adding anything i get this:

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    pushover Failed: we will try again next time.. NEW: Mad Men: At the Codfish Ball s05e07 [TV-14] [2012] 47min [480p 2ch] [1:42pm 12 Jun 13]
    ...
    ...
    ...
    ...
    pushover Failed: we will try again next time.. NEW: Top Gear: "Budget" Supercar Convertibles  s20e03 [TV-PG] [2013] 62min [720p 2ch] [9:29am 15 Jul 13]
    

    this is what i have for pushover on my config file:

        'pushover' => {
           'enabled' => 1, ## set to 1 to enable PushOver
           'push_recentlyadded'  => 1,
           'push_watched'        => 0,
           'push_watching'       => 1,
           'token' => '~snip~', ## your app token
           'user' => '~snip~',  ## your user token
           'title' => $appname,
           'sound' => 'intermission',
        },
    
    

    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

    i get this error 

    Tests succeeded but one dependency not OK (Crypt::SSLeay)
      MMIMS/Net-Twitter-Lite-0.12004.tar.gz
      [dependencies] -- NA
    Running Build install
      make test had returned bad status, won't install without force
    Failed during this command:
     NANIS/Crypt-SSLeay-0.64.tar.gz               : make NO
     MMIMS/Net-Twitter-Lite-0.12004.tar.gz        : make_test NO one dependency not OK (Crypt::SSLeay)
    
    

    When i try to install Crypt::SSLeay i get this:

    Running install for module 'Crypt::SSLeay'
    Running make for N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz
      Has already been unwrapped into directory /home/stran/.cpan/build/Crypt-SSLeay-0.64-jZFoKl
    Could not make: Unknown error
    Running make test
      Can't test without successful make
    Running make install
      Make had returned bad status, install seems impossible
    
    
  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    EntroX wrote on July 24 2013, 5:06 AM: »

    right, after installing the Perl modules i tried giving the recently added shows bit a go, without adding anything i get this:
     

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    pushover Failed: we will try again next time.. NEW: Mad Men: At the Codfish Ball s05e07 [TV-14] [2012] 47min [480p 2ch] [1:42pm 12 Jun 13]
    ...
    ...
    ...
    ...
    pushover Failed: we will try again next time.. NEW: Top Gear: "Budget" Supercar Convertibles  s20e03 [TV-PG] [2013] 62min [720p 2ch] [9:29am 15 Jul 13]
    
     
    this is what i have for pushover on my config file:
     
    'pushover' => {
           'enabled' => 1, ## set to 1 to enable PushOver
           'push_recentlyadded'  => 1,
           'push_watched'        => 0,
           'push_watching'       => 1,
           'token' => '~snip~', ## your app token
           'user' => '~snip~',  ## your user token
           'title' => $appname,
           'sound' => 'intermission',
        },
    
    

    Glad I kept this in dev :)

    1) the first time you run recently added, it will notify on the last 50+? added shows and or movies. Once it's caught up, it will of course only notify on newly added shows (it should be run every couple of minutes)

    2) I need to cleanup the code when expected metadata is missing.. which will fix the uninitialized value errors.

    3) Has pushover ever worked? try running ./plexWatch.pl --test_notify=start --debug
  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass
    edited July 2013
    yeah, i just noticed why i didn't get the initial wave of notificafions, i set up pushover to not annoy me at this time of the day, it sent quite a lot of them actually. i was looking at the lines that the error spewed and i figured it wasn't related to the pushover thing (since they were related to metadata from what i could see), i think those ones fhat failed might have been because of high traffic of something. upududyb.jpg just out of curiosity, did you "hardcode" the sections it checks?, i ask because they are listed as movies and tv shows (just went to bed and i was thinking of looking at the script in the morning before asking), i simply ask because i only saw tv show related notifications and i have another "tv shows" section named Anime and i don't think i saw any notifications from that one (could just have missed them, it happens) Sent from my iPhone using Tapatalk 2

    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)

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    bauerknight wrote on July 24 2013, 5:06 AM: »

    i get this error 

    Tests succeeded but one dependency not OK (Crypt::SSLeay)  MMIMS/Net-Twitter-Lite-0.12004.tar.gz  [dependencies] -- NARunning Build install  make test had returned bad status, won't install without forceFailed during this command: NANIS/Crypt-SSLeay-0.64.tar.gz               : make NO MMIMS/Net-Twitter-Lite-0.12004.tar.gz        : make_test NO one dependency not OK (Crypt::SSLeay)
     
    When i try to install Crypt::SSLeay i get this:
     
    Running install for module 'Crypt::SSLeay'Running make for N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz  Has already been unwrapped into directory /home/stran/.cpan/build/Crypt-SSLeay-0.64-jZFoKlCould not make: Unknown errorRunning make test  Can't test without successful makeRunning make install  Make had returned bad status, install seems impossible

    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"
  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    EntroX wrote on July 24 2013, 5:35 AM: »

    yeah, i just noticed why i didn't get the initial wave of notificafions, i set up pushover to not annoy me at this time of the day, it sent quite a lot of them actually. i was looking at the lines that the error spewed and i figured it wasn't related to the pushover thing (since they were related to metadata from what i could see), i think those ones fhat failed might have been because of high traffic of something.

    upududyb.jpg

    just out of curiosity, did you "hardcode" the sections it checks?, i ask because they are listed as movies and tv shows (just went to bed and i was thinking of looking at the script in the morning before asking), i simply ask because i only saw tv show related notifications and i have another "tv shows" section named Anime and i don't think i saw any notifications from that one (could just have missed them, it happens)

    Sent from my iPhone using Tapatalk 2


    I didn't hardcode it. Plex uses types, movie and show are 'types', not the actually name of your section. This means If you use --recently_added=show for example, it will query your PMS sections for the type 'show'. I new people used multiple sections like anime and I did code for it, and I roughly tested it, so... it should have worked. I will verify it does tomorrow, or let me know if it did work for you by adding a show into your two tv show sections.
  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass
    yeah, i'll just throw something under thst section tomorrow morning and see if it shows up, i got like ~130 notifications and i think i didn't see anything added to Anime and Sports, but again i cant be 100% sure. i'll let you know tomorrow morning~ Sent from my iPhone using Tapatalk 2

    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)

  • ljunkieljunkie Plex Dev Team Posts: 4,835Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    EntroX wrote on July 24 2013, 5:57 AM: »

    yeah, i'll just throw something under thst section tomorrow morning and see if it shows up, i got like ~130 notifications and i think i didn't see anything added to Anime and Sports, but again i cant be 100% sure.

    i'll let you know tomorrow morning~


    Sent from my iPhone using Tapatalk 2


    Sounds good. I was thinking about limiting the initial recently added notifications.. but I'm not sure it's worth the effort. Someone is going to want less and someone will want more :) Time for me to call it a night too.
  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass

    right, i had a chance to take a look at it, i am almost certain it *is* skipping the Anime section since there are "holes" between the added shows/episodes, i added a show that is incomplete (i only throw shows into it when they finished airing, blame it on my OCD) and it did not show up.

    here's the output of the script:

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show --debug
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    pushover already notified [/library/metadata/40515]: Mad Men - The Phantom
    pushover already notified [/library/metadata/40524]: Hell's Kitchen (US) - 6 Chefs Compete
    pushover already notified [/library/metadata/40629]: True Blood - Who Are You, Really?
    pushover already notified [/library/metadata/40630]: Mad Men - The Quality of Mercy
    pushover already notified [/library/metadata/41791]: Hell's Kitchen (US) - 5 Chefs Compete, Part 1 of 3
    pushover already notified [/library/metadata/41807]: True Blood - The Sun
    pushover already notified [/library/metadata/41808]: Mad Men - In Care Of
    pushover already notified [/library/metadata/41825]: Under the Dome - Pilot
    pushover already notified [/library/metadata/41843]: Hell's Kitchen (US) - 5 Chefs Compete, Part 2 of 3
    pushover already notified [/library/metadata/41910]: Dexter - A Beautiful Day
    pushover already notified [/library/metadata/41912]: Top Gear - New Zealand Yacht Race
    pushover already notified [/library/metadata/41913]: True Blood - You're No Good
    pushover already notified [/library/metadata/41915]: Burn Notice - Forget Me Not
    pushover already notified [/library/metadata/41916]: Burn Notice - Down Range
    pushover already notified [/library/metadata/41917]: Burn Notice - Brothers in Arms
    pushover already notified [/library/metadata/41971]: Under the Dome - The Fire
    pushover already notified [/library/metadata/41989]: Top Gear - Stars In Fast Cars
    pushover already notified [/library/metadata/41990]: Top Gear - Top Gear of the Pops
    pushover already notified [/library/metadata/41991]: Top Gear - The Best Of British
    pushover already notified [/library/metadata/41992]: Top Gear - Top Gear At the Movies
    pushover already notified [/library/metadata/42022]: Top Gear - Apocalypse
    pushover already notified [/library/metadata/42316]: Top Gear - World's Best Taxi
    pushover already notified [/library/metadata/42317]: Dexter - Every Silver Lining
    pushover already notified [/library/metadata/42318]: True Blood - At Last
    pushover already notified [/library/metadata/42324]: Under the Dome - Manhunt
    pushover already notified [/library/metadata/42344]: Hell's Kitchen (US) - 5 Chefs Compete, Part 3 of 3
    pushover already notified [/library/metadata/42345]: Burn Notice - Exit Plan
    pushover already notified [/library/metadata/42383]: Dexter - What's Eating Dexter Morgan?
    pushover already notified [/library/metadata/42384]: True Blood - **** the Pain Away
    pushover already notified [/library/metadata/42385]: Top Gear - "Budget" Supercar Convertibles
    pushover already notified [/library/metadata/42386]: Under the Dome - Outbreak
    pushover already notified [/library/metadata/42388]: Suits - The Arrangement
    pushover already notified [/library/metadata/42408]: Hell's Kitchen (US) - 4 Chefs Compete
    pushover already notified [/library/metadata/42409]: Burn Notice - Episode 6
    pushover already notified [/library/metadata/42416]: Top Gear - Transit Hovercraft
    pushover already notified [/library/metadata/42417]: True Blood - Don't You Feel Me?
    pushover already notified [/library/metadata/42418]: Dexter - Scar Tissue
    pushover already notified [/library/metadata/42433]: Under the Dome - Blue On Blue
    pushover already notified [/library/metadata/42434]: Suits - I Want You to Want Me
    

    here's a picture of how the Recently Added looks like:

    Screen_Shot_2013-07-24_at_12.02.57_PM.pn

    another odd thing i just noticed is that the script never generated a plexWatch.log file, i made one and it has never written anything to it.

    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)

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

    right, i had a chance to take a look at it, i am almost certain it *is* skipping the Anime section since there are "holes" between the added shows/episodes, i added a show that is incomplete (i only throw shows into it when they finished airing, blame it on my OCD) and it did not show up.

    here's the output of the script:

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show --debug
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 1418.
    Use of uninitialized value in concatenation (.) or string at ./plexWatch.pl line 198.
    pushover already notified [/library/metadata/40515]: Mad Men - The Phantom
    pushover already notified [/library/metadata/40524]: Hell's Kitchen (US) - 6 Chefs Compete
    pushover already notified [/library/metadata/40629]: True Blood - Who Are You, Really?
    pushover already notified [/library/metadata/40630]: Mad Men - The Quality of Mercy
    pushover already notified [/library/metadata/41791]: Hell's Kitchen (US) - 5 Chefs Compete, Part 1 of 3
    pushover already notified [/library/metadata/41807]: True Blood - The Sun
    pushover already notified [/library/metadata/41808]: Mad Men - In Care Of
    pushover already notified [/library/metadata/41825]: Under the Dome - Pilot
    pushover already notified [/library/metadata/41843]: Hell's Kitchen (US) - 5 Chefs Compete, Part 2 of 3
    pushover already notified [/library/metadata/41910]: Dexter - A Beautiful Day
    pushover already notified [/library/metadata/41912]: Top Gear - New Zealand Yacht Race
    pushover already notified [/library/metadata/41913]: True Blood - You're No Good
    pushover already notified [/library/metadata/41915]: Burn Notice - Forget Me Not
    pushover already notified [/library/metadata/41916]: Burn Notice - Down Range
    pushover already notified [/library/metadata/41917]: Burn Notice - Brothers in Arms
    pushover already notified [/library/metadata/41971]: Under the Dome - The Fire
    pushover already notified [/library/metadata/41989]: Top Gear - Stars In Fast Cars
    pushover already notified [/library/metadata/41990]: Top Gear - Top Gear of the Pops
    pushover already notified [/library/metadata/41991]: Top Gear - The Best Of British
    pushover already notified [/library/metadata/41992]: Top Gear - Top Gear At the Movies
    pushover already notified [/library/metadata/42022]: Top Gear - Apocalypse
    pushover already notified [/library/metadata/42316]: Top Gear - World's Best Taxi
    pushover already notified [/library/metadata/42317]: Dexter - Every Silver Lining
    pushover already notified [/library/metadata/42318]: True Blood - At Last
    pushover already notified [/library/metadata/42324]: Under the Dome - Manhunt
    pushover already notified [/library/metadata/42344]: Hell's Kitchen (US) - 5 Chefs Compete, Part 3 of 3
    pushover already notified [/library/metadata/42345]: Burn Notice - Exit Plan
    pushover already notified [/library/metadata/42383]: Dexter - What's Eating Dexter Morgan?
    pushover already notified [/library/metadata/42384]: True Blood - **** the Pain Away
    pushover already notified [/library/metadata/42385]: Top Gear - "Budget" Supercar Convertibles
    pushover already notified [/library/metadata/42386]: Under the Dome - Outbreak
    pushover already notified [/library/metadata/42388]: Suits - The Arrangement
    pushover already notified [/library/metadata/42408]: Hell's Kitchen (US) - 4 Chefs Compete
    pushover already notified [/library/metadata/42409]: Burn Notice - Episode 6
    pushover already notified [/library/metadata/42416]: Top Gear - Transit Hovercraft
    pushover already notified [/library/metadata/42417]: True Blood - Don't You Feel Me?
    pushover already notified [/library/metadata/42418]: Dexter - Scar Tissue
    pushover already notified [/library/metadata/42433]: Under the Dome - Blue On Blue
    pushover already notified [/library/metadata/42434]: Suits - I Want You to Want Me
    

    another odd thing i just noticed is that the script never generated a plexWatch.log file, i made one and it has never written anything to it.

    1) Please send me the output of http://localhost:32400/library/sections  -- this way can verify how anime shows up before I troubleshoot this to verify it's a code issue ( it probably is, just rather have all the info)

    2) plexWatch.log : I will make sure the recentlyAdded is incorporated into this. It was mainly for testing purposes been paying enough attention to it once I move to notifications (prowl, growl, etc..). I have verified I didn't include the log file for recentlyAdded.

    3) The missing values (uninitialized value) is the year. It shouldn't affect the notification being sent, but I will clean that up. I guess a show in your PMS doesn't include a year.

     

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass
    edited July 2013

    1) here you go: http://pb.stoleyour.com/view/3448b41b

    2) ah, that explains it i guess, i am still running the previous version and since i use the old Plex client at work (white noise~) it doesn't show up at all on the currently playing which would explain why the logfile remains empty~

    3) yeah, i just left them on the post because they were there, i don't think i've missed any "new show/episode" notification (other than the Anime ones that is)

    edit: here's the /library/recentlyAdded output as well: http://pb.stoleyour.com/view/328698ee line 4 being the show i just added, the last notification i got was from the episode on line 6.

    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)

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

    1) here you go: http://pb.stoleyour.com/view/3448b41b

    2) ah, that explains it i guess, i am still running the previous version and since i use the old Plex client at work (white noise~) it doesn't show up at all on the currently playing which would explain why the logfile remains empty~

    3) yeah, i just left them on the post because they were there, i don't think i've missed any "new show/episode" notification (other than the Anime ones that is)

    edit: here's the /library/recentlyAdded output as well: http://pb.stoleyour.com/view/328698ee line 4 being the show i just added, the last notification i got was from the episode on line 6.

    Fixed:
     

    * Logging added to --recently_added

    * Multiple sections of the same type, 'shows' or 'movies' now works. There was a merge issues of hash refs. (You should see all the Sports and Anime on the next run)

    * cleanup of the uninitialized values

    Please grab a new copy of plexWatch.pl @ https://raw.github.com/ljunkie/plexWatch/dev/plexWatch.pl and let me know!

    NOTE to others - this is a Development branch. Please use the stable version at https://github.com/ljunkie/plexWatch (unless you want to test and report issues)

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass
    edited July 2013

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show --debug
    Can't escape \x{2019}, try uri_escape_utf8() instead at ./plexWatch.pl line 210

    line 210 being:         $alert_url .= ' http://www.imdb.com/find?s=tt&q=' . uri_escape($item->{'imdb_title'});

    no notifications were sent and the logfile still remains empty.

    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)

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

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show --debug
    Can't escape \x{2019}, try uri_escape_utf8() instead at ./plexWatch.pl line 210

    line 210 being:         $alert_url .= ' http://www.imdb.com/find?s=tt&q=' . uri_escape($item->{'imdb_title'});

    no notifications were sent and the logfile still remains empty.

    * replaced  uri_escape with  uri_escape_utf8

    * Verified logging works.. no changes made. 

     Please look at the config.pl and verify:

     'file' => {
            'enabled' => 1,  ## 0 or 1 - set to 1 to enable File Logging                                                                                                        
            'filename' => "$data_dir/plexWatch.log", ## default is plexWatch.log                                                                                                
        }, 

    The log file should be located at /opt/plexWatch/plexWatch.log  -- I doubt it's perms because the script will die if it can't open a log file. 

    The log file will also only log when new shows are added.. it will not log the fact it's already been notified.

    EDIT:  I misread that you said NO notifications were sent.. I am guessing the script crapped out due to the fact the uri_escape had an error.. git it a try now with the new version -  https://raw.github.com/ljunkie/plexWatch/dev/plexWatch.pl

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass
    edited July 2013

    re: logfile, i changed the $data_dir in the config file to /opt/dev-plexWatch/ so i could keep both versions, it was still turning out empty, here's a quick grep on it: (and yes, it's enabled)

    [root@WEBKSA01 dev-plexWatch]# more config.pl | grep file 
    $data_dir = '/opt/dev-plexWatch/'; ## to store the DB, logfile - can be the same as this script
        'file' => {
        'filename' => "$data_dir/plexWatch.log", ## default is plexWatch.lo
    

    running the new version (presuming you pushed it to the git, i did see the change you mentioned in your post) yields this:

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show --debug
    Undefined subroutine &main::uri_escape_utf8 called at ./plexWatch.pl line 210.
    

    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)

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

    re: logfile, i changed the $data_dir in the config file to /opt/dev-plexWatch/ so i could keep both versions, it was still turning out empty, here's a quick grep on it: (and yes, it's enabled)

    [root@WEBKSA01 dev-plexWatch]# more config.pl | grep file 
    $data_dir = '/opt/dev-plexWatch/'; ## to store the DB, logfile - can be the same as this script
        'file' => {
        'filename' => "$data_dir/plexWatch.log", ## default is plexWatch.lo
    

    running the new version (presuming you pushed it to the git, i did see the change you mentioned in your post) yields this:

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show --debug
    Undefined subroutine &main::uri_escape_utf8 called at ./plexWatch.pl line 210.
    

    sad, the version of URI::Escape you have must not support uri_escape_utf8 --- I replace that module with a subroutine instead.. so URI::Escape will *hopefully* not be needed any more. Another test: https://raw.github.com/ljunkie/plexWatch/dev/plexWatch.pl

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass
    edited July 2013
    ljunkie wrote on July 24 2013, 9:03 PM: »

    sad, the version of URI::Escape you have must not support uri_escape_utf8 --- I replace that module with a subroutine instead.. so URI::Escape will *hopefully* not be needed any more. Another test: https://raw.github.com/ljunkie/plexWatch/dev/plexWatch.pl

    more like i didn't have it installed and the script didn't tell me to install it (or maybe it was installed as a dependency for something else) so i CPAN'd it seems to be running, will edit with the result in a sec.

    edit:

    [root@WEBKSA01 dev-plexWatch]# ./plexWatch.pl --recently_added=show --debug
    Wed Jul 24 17:33:36 2013: NEW: GP2 Series: Germany - Hockenheim s2008e06 97min [sdp 2ch] [12:11pm 11 Mar 13]
    update recently_added set file = 1 where item_id = '/library/metadata/37299'
    PushOver - Notification successfully posted. {"status":1,"request":"0e31c04ed455a60a55e300bfab886fde"}
    update recently_added set pushover = 1 where item_id = '/library/metadata/37299'
    ...
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: Special Ops Squad s01e15 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    update recently_added set file = 1 where item_id = '/library/metadata/42453'
    PushOver - Notification successfully posted. {"status":1,"request":"a97482ba4e6cad86b0058fc5d613a6ae"}
    update recently_added set pushover = 1 where item_id = '/library/metadata/42453'
    

    it took a while but it looks like they went off just fine, notifications did arrive (wondering why its not using the logo like it did before - could be a mistake from my end)

    http://p.desu.es/Photo_Jul_24,_5_38_37_PM.png

    and the logfile did get populated this time around:

    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: The World She Saw s01e06 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: A Small Blade s01e07 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: I Can Hear a Heartbeat s01e08 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: The Whereabouts of His Left Arm s01e09 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: Answer s01e10 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: Idol s01e11 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: Wound s01e12 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: Basic Needs s01e13 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: Can't Look into His Eyes s01e14 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    Wed Jul 24 17:33:36 2013: NEW: Attack on Titan: Special Ops Squad s01e15 [2013] 24min [720p 2ch] [1:17pm 24 Jul 13]
    

    i'll give the twitter integration a go when i get home, if you want anything else tested let me know~

    edit2: oh, i ran this without updating the script by the way, do you want me to give the new one a go to see if anything breaks or would you rather stay with the other one? (the one that needed URI::Escape

    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)

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

    edit2: oh, i ran this without updating the script by the way, do you want me to give the new one a go to see if anything breaks or would you rather stay with the other one? (the one that needed URI::Escape

    Please give the new one a go. If you could maybe move the .db file so it creates a new one and tries to fire them all again. I am hoping to make sure the encoding I am doing now works. I'd prefer not to use URI:Escape.

  • EntroXEntroX Posts: 93Members, Plex Pass Plex Pass

    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.

    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)

Sign In or Register to comment.