Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker Request (PlexReport / PlexNotify)

Featured Replies

Are yall using "HOST" and not "BRIDGE" on your Docker?  I had to change that to get it to work.

 

DOH. I am an idiot.  I'll update the repository.

  • 2 weeks later...
  • Replies 55
  • Views 11.7k
  • Created
  • Last Reply
  • Author

Are yall using "HOST" and not "BRIDGE" on your Docker?  I had to change that to get it to work.

 

DOH. I am an idiot.  I'll update the repository.

 

where you able to get it working? I tried flipping it to HOST and also tried re-downloading your plugin to no avail. Same error.

Are yall using "HOST" and not "BRIDGE" on your Docker?  I had to change that to get it to work.

 

DOH. I am an idiot.  I'll update the repository.

 

where you able to get it working? I tried flipping it to HOST and also tried re-downloading your plugin to no avail. Same error.

 

Yep...works just fine for me.  That being said, I'm not using it.  For some reason, the images are rendering at full size (1000x1500) for each cover in the email when using Outlook. That makes it completely unusable for me.  They seem to scale just fine in other email clients.

 

I'm working on my own PowerShell script that will do something very similar, but will reduce the image size to 100x150 before building the email.

 

Config:

cAhUCi0.png

  • Author

mine looks the same, looks like I am having Plex Home issues though, the verbose log shows:

 

I, [2015-02-12T14:25:00.241010 #89]  INFO -- : Starting up PlexReport

D, [2015-02-12T14:25:00.243832 #89] DEBUG -- : Debug info for plexmediaserver connection

D, [2015-02-12T14:25:00.243912 #89] DEBUG -- : 401

D, [2015-02-12T14:25:00.243941 #89] DEBUG -- : #<HTTParty::Request:0x00000000e5a920 @http_method=Net::HTTP::Get, @path=#<URI::Generic:0x00000000e5a498 URL:/library/sections>, @options={:limit=>5, :assume_utf16_is_big_endian=>true, :default_params=>{}, :follow_redirects=>true, :parser=>HTTParty::Parser, :connection_adapter=>HTTParty::ConnectionAdapter, :base_uri=>"http://HADES:32400", :format=>:xml, :verify=>false}, @last_uri=#<URI::HTTP:0x00000000e58760 URL:http://HADES:32400/library/sections>, @raw_request=#<Net::HTTP::Get GET>, @last_response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>>

D, [2015-02-12T14:25:00.244065 #89] DEBUG -- : #<HTTParty::Response:0x169fc70 parsed_response={"html"=>{"head"=>{"title"=>"Unauthorized"}, "body"=>{"h1"=>"401 Unauthorized"}}}, @response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>, @headers={"content-length"=>["91"], "content-type"=>["text/html"], "x-plex-protocol"=>["1.0"], "cache-control"=>["no-cache"]}>

 

mine looks the same, looks like I am having Plex Home issues though, the verbose log shows:

 

I, [2015-02-12T14:25:00.241010 #89]  INFO -- : Starting up PlexReport

D, [2015-02-12T14:25:00.243832 #89] DEBUG -- : Debug info for plexmediaserver connection

D, [2015-02-12T14:25:00.243912 #89] DEBUG -- : 401

D, [2015-02-12T14:25:00.243941 #89] DEBUG -- : #<HTTParty::Request:0x00000000e5a920 @http_method=Net::HTTP::Get, @path=#<URI::Generic:0x00000000e5a498 URL:/library/sections>, @options={:limit=>5, :assume_utf16_is_big_endian=>true, :default_params=>{}, :follow_redirects=>true, :parser=>HTTParty::Parser, :connection_adapter=>HTTParty::ConnectionAdapter, :base_uri=>"http://HADES:32400", :format=>:xml, :verify=>false}, @last_uri=#<URI::HTTP:0x00000000e58760 URL:http://HADES:32400/library/sections>, @raw_request=#<Net::HTTP::Get GET>, @last_response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>>

D, [2015-02-12T14:25:00.244065 #89] DEBUG -- : #<HTTParty::Response:0x169fc70 parsed_response={"html"=>{"head"=>{"title"=>"Unauthorized"}, "body"=>{"h1"=>"401 Unauthorized"}}}, @response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>, @headers={"content-length"=>["91"], "content-type"=>["text/html"], "x-plex-protocol"=>["1.0"], "cache-control"=>["no-cache"]}>

 

 

I dont believe that the latest version is being pulled down.  The Plex Home issue has been verified fixed by several folks.  Im not running Plex Home though, so I cannot verify.

  • Author

how do I tell what version is being grabbed?

 

So the docker looks to be pulling the correct source. I also deleted the specific container/image but it still isn't downloading the right stuff. Anything else I can try?

  • Author

smdion, any thoughts on why its pulling down the wrong version? the docker file seems fine (its linking to the right github location).

Hi All,

I try to get this working aswell. When i try it manually with:

 

docker exec -it plexReport /opt/plexReport/bin/plexReport.rb -t

 

Its sending me the email. But when i try to put this in the cronjob file:

 

50 15 * * * /opt/plexReport/bin/plexReport.rb -t

 

it is not sending.. it looks like the process is stopping and it forgets to send it.

 

Has anyone an idea?

 

I'm having the same problem where the cron job isn't running this automatically, so I have to run it manually. Anybody found a fix for this yet?

  • Author

I'm having the same problem where the cron job isn't running this automatically, so I have to run it manually. Anybody found a fix for this yet?

 

Dase, what is your git commit version downloaded? You can run the below to find that:

 

docker exec -i plexReport /bin/bash

find  / -type d -name ".git" -ls

cd /opt/plexReport/

git log

 

Dase, what is your git commit version downloaded? You can run the below to find that:

 

 

Thanks for helping with this. Results:

 

find  / -type d -name ".git" -ls

 18930    0 drwxr-xr-x   1 root     root          138 Jan 17 15:27 /opt/plexReport/.git

 

/opt/plexReport# git log

WARNING: terminal is not fully functional
commit cd7bae0ea1a76f66adc42cb8debbd3e66ee36449
Author: bstascavage <[email protected]>
Date:   Thu Jan 8 13:50:48 2015 -0500

    Fixed bug where incomplete seasons had every episdoe listed

commit 56d2b35c70db8cb31d01eb44b2a97b6545f126e8
Author: bstascavage <[email protected]>
Date:   Mon Jan 5 11:36:49 2015 -0500

    Changed thetvdb API call.  Fixes #33

commit 69afc71786a54ed133bd50246c7e8402efcf5675
Merge: 32e7922 8c9eda9
Author: Brian <[email protected]>
Date:   Mon Dec 29 15:53:44 2014 -0500

    Merge pull request #31 from bstascavage/episode-fix

    Added check to ensure newest episode is on the Plex.  Fixes #27

commit 8c9eda9307b526e2c6c53fbff3faea5b6d419d62
Author: bstascavage <[email protected]>
Date:   Mon Dec 29 15:42:10 2014 -0500

    Added check to ensure newest episode is on the Plex

commit 32e792257e5d0bd7aabf220edf45edb9e17c3b4d
Merge: 5cf4b4f 4c6d4b6
Author: bstascavage <[email protected]>
Date:   Mon Dec 22 14:36:25 2014 -0500

  • Author

Thanks for helping with this. Results:

 

find  / -type d -name ".git" -ls

 18930    0 drwxr-xr-x   1 root     root          138 Jan 17 15:27 /opt/plexReport/.git

 

/opt/plexReport# git log

WARNING: terminal is not fully functional
commit cd7bae0ea1a76f66adc42cb8debbd3e66ee36449
Author: bstascavage <[email protected]>
Date:   Thu Jan 8 13:50:48 2015 -0500

    Fixed bug where incomplete seasons had every episdoe listed

commit 56d2b35c70db8cb31d01eb44b2a97b6545f126e8
Author: bstascavage <[email protected]>
Date:   Mon Jan 5 11:36:49 2015 -0500

 

Do you have Plex Home enabled in plex? If so this build wont work for you as the commits are prior to Plex Home being implemented (the issue I am seeing). You said the cron job fails, does it work without the cron job?

Plex home is disabled as far as I can tell. I'm the only user under Settings in the Users view.

 

The script works fine when I run it manually:

docker exec -it plexReport /opt/plexReport/bin/plexReport.rb

 

The crontab entry looks fine to me too:

docker exec -it plexReport crontab -l
15 11 * * 5 /opt/plexReport/bin/plexReport.rb

 

When I check the cron.log, cron seems to be running, for example:

# cat cron.log
Mar  1 06:47:01 Tower /USR/SBIN/CRON[381]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ))
Mar  1 06:52:01 Tower /USR/SBIN/CRON[385]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ))
Mar  1 07:17:01 Tower /USR/SBIN/CRON[388]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

FYI, I have the same issue.

Test and manually running it works fine.

Cron job doesn't though.

I Don't use Plex home.

 

My GIT version is the same as Dace's

  • 4 weeks later...

So with some recent updates in workings of the program changed. 

 

Steps to Use:

 

1. Remove previous versions of docker if existed

2. SSH in to your unRAID box and run the setup script. This will setup a few things and walk you through the config.

docker exec -it plexReport /opt/plexReport/initial_setup.sh

3. edit the config.yaml file adding in your recipients_email (more info about the config here)

4. run the test to see if it works

docker exec -it plexReport plexreport -t

 

Note: My gmail did flag the e-mails as spam, so check your spam folder.

  • Author

So with some recent updates in workings of the program changed. 

 

Steps to Use:

 

1. Remove previous versions of docker if existed

2. SSH in to your unRAID box and run the setup script. This will setup a few things and walk you through the config.

docker exec -it plexReport /opt/plexReport/initial_setup.sh

3. edit the config.yaml file adding in your recipients_email (more info about the config here)

4. run the test to see if it works

docker exec -it plexReport plexreport -t

 

Note: My gmail did flag the e-mails as spam, so check your spam folder.

 

First, thank you for getting it updated. When I run the test it fails with this:

 

root@Hades:~# docker exec -it plexReport plexreport -t
2015/04/03 12:53:56 docker-exec: failed to exec: exec: "plexreport": executable file not found in $PATH

 

I followed the steps above, so I ran the script etc etc. Below are the results from the script:

 

root@Hades:~# docker exec -it plexReport /opt/plexReport/initial_setup.sh
Creating plexreport library at /var/lib/plexReport
Creating plexreport conf directory at /etc/plexReport
Moving plexreport and plexreport-setup to /usr/local/sbin
Moving plexreport libraries to /var/lib/plexreport
Moving email_body.erb to /etc/plexreport
/bin/cp: cannot copy a directory, ‘etc/plexReport’, into itself, ‘/etc/plexReport/plexReport’
Creating /etc/plexreport/config.yaml
Creating /var/log/plexReport.log
Installing ruby gem dependency
Successfully installed bundler-1.9.2
1 gem installed
Installing ri documentation for bundler-1.9.2...
Installing RDoc documentation for bundler-1.9.2...
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Could not locate Gemfile or .bundle/ directory
Running /usr/local/sbin/plexreport-setup
/opt/plexReport/initial_setup.sh: line 31: /usr/local/sbin/plexreport-setup: No such file or directory
What day do you want to run the script on? (Put 0 for Sunday, 1 for Monday, etc...)
5
What hour should the script run? (00-23)
17
What minute in that hour should the script run? (00-59)
30
Adding /usr/local/sbin/plexreport to crontab
Setup complete!

So with some recent updates in workings of the program changed. 

 

Steps to Use:

 

1. Remove previous versions of docker if existed

2. SSH in to your unRAID box and run the setup script. This will setup a few things and walk you through the config.

docker exec -it plexReport /opt/plexReport/initial_setup.sh

3. edit the config.yaml file adding in your recipients_email (more info about the config here)

4. run the test to see if it works

docker exec -it plexReport plexreport -t

 

Note: My gmail did flag the e-mails as spam, so check your spam folder.

 

First, thank you for getting it updated. When I run the test it fails with this:

 

root@Hades:~# docker exec -it plexReport plexreport -t
2015/04/03 12:53:56 docker-exec: failed to exec: exec: "plexreport": executable file not found in $PATH

 

I followed the steps above, so I ran the script etc etc. Below are the results from the script:

 

root@Hades:~# docker exec -it plexReport /opt/plexReport/initial_setup.sh
Creating plexreport library at /var/lib/plexReport
Creating plexreport conf directory at /etc/plexReport
Moving plexreport and plexreport-setup to /usr/local/sbin
Moving plexreport libraries to /var/lib/plexreport
Moving email_body.erb to /etc/plexreport
/bin/cp: cannot copy a directory, ‘etc/plexReport’, into itself, ‘/etc/plexReport/plexReport’
Creating /etc/plexreport/config.yaml
Creating /var/log/plexReport.log
Installing ruby gem dependency
Successfully installed bundler-1.9.2
1 gem installed
Installing ri documentation for bundler-1.9.2...
Installing RDoc documentation for bundler-1.9.2...
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Could not locate Gemfile or .bundle/ directory
Running /usr/local/sbin/plexreport-setup
/opt/plexReport/initial_setup.sh: line 31: /usr/local/sbin/plexreport-setup: No such file or directory
What day do you want to run the script on? (Put 0 for Sunday, 1 for Monday, etc...)
5
What hour should the script run? (00-23)
17
What minute in that hour should the script run? (00-59)
30
Adding /usr/local/sbin/plexreport to crontab
Setup complete!

 

The path isn't added until AFTER that script is run.  Running the test again.

  • Author

The path isn't added until AFTER that script is run.  Running the test again.

 

I ran the order you provided, sorry I just posted my forum post out of order :)

 

Is this an issue possibly because the script is trying to use two directories with the same name, one plexreport and one plexReport?

 

Creating plexreport library at /var/lib/plexReport

Moving plexreport libraries to /var/lib/plexreport

The path isn't added until AFTER that script is run.  Running the test again.

 

I ran the order you provided, sorry I just posted my forum post out of order :)

 

Is this an issue possibly because the script is trying to use two directories with the same name, one plexreport and one plexReport?

 

Creating plexreport library at /var/lib/plexReport

Moving plexreport libraries to /var/lib/plexreport

 

weird.  I just don't get the inconsistency of my install vs yours.  Let me remove everything and re-install.

  • Author

The path isn't added until AFTER that script is run.  Running the test again.

 

I ran the order you provided, sorry I just posted my forum post out of order :)

 

Is this an issue possibly because the script is trying to use two directories with the same name, one plexreport and one plexReport?

 

Creating plexreport library at /var/lib/plexReport

Moving plexreport libraries to /var/lib/plexreport

 

weird.  I just don't get the inconsistency of my install vs yours.  Let me remove everything and re-install.

 

i assume it wouldn't matter but i am on 6.0 14b.. Tried a whole new image file, same error. Haha, my unRAID is broken.

  • Author

The path isn't added until AFTER that script is run.  Running the test again.

 

running the test still returns the same error I was initially getting, however if I force a path to where the plexreport file is stored (or so I think I am finding) I get a new error, not sure it helps or not:

 

Original:

docker exec -it plexReport /bin/plexreport -t

Error:

2015/04/10 11:03:45 docker-exec: failed to exec: exec: "/bin/plexreport": stat /bin/plexreport: no such file or directory

 

Forced Path to EXE:

docker exec -it plexReport /opt/plexReport/bin/plexreport -t

Error:

/opt/plexReport/bin/plexreport:14:in `require_relative': cannot load such file -- /var/lib/plexReport/plex (LoadError)
        from /opt/plexReport/bin/plexreport:14:in `<main>'

  • Author

Haven't had time to take a look again.. hopefully soon :)

 

All good, figured I was just so messed up you gave up on me hahaha :)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.