January 16, 201511 yr I was wondering if anyone had tried making a plugin or docker for the PlexReport application (https://github.com/bstascavage/plexReport) or PlexNotify (http://www.plexnotify.com/). Would love to implement this if possible.
January 16, 201511 yr PlexReport looks pretty simple to setup, I'll take a stab at it in a bit. PlexNotify is Windows only, so that won't work.
January 16, 201511 yr Author PlexReport looks pretty simple to setup, I'll take a stab at it in a bit. PlexNotify is Windows only, so that won't work. ya, I noticed that after I added it to my post (well noticed it was a windows service). Thanks for any work on the PlexReport one, it would be much appreciated, feel free to use me as a beta tester as well if you need help.
January 17, 201511 yr Have it just about ready. Only problem I see is adjusting the cron if someone wants to run it daily or weekly or twice a day. How often would you want the e-mail going out?
January 17, 201511 yr Have it just about ready. Only problem I see is adjusting the cron if someone wants to run it daily or weekly or twice a day. How often would you want the e-mail going out? Maybe you could have a Watchdog looking for a Cron.txt file on the /config and people can add the cron they want on 1st line. Then, your script could read the txt and set the Cron accordingly?
January 17, 201511 yr Okay... I have it up and running in my beta repo with the example CRON settings from the git page. To change cron: docker exec -it plexReport crontab -e and pick option 3 for /usr/bin/vim.tiny to edit it.
January 17, 201511 yr Have it just about ready. Only problem I see is adjusting the cron if someone wants to run it daily or weekly or twice a day. How often would you want the e-mail going out? Maybe you could have a Watchdog looking for a Cron.txt file on the /config and people can add the cron they want on 1st line. Then, your script could read the txt and set the Cron accordingly? Thats not a bad idea.. i'll play around with inotify.
January 17, 201511 yr Okay.. inotify will now watch /config/crons.conf for changes. It will wait 5 seconds then update crontab.... give it a whirl everyone
January 17, 201511 yr I'm running into this issue right now.... https://forums.plex.tv/index.php/topic/130354-plexreport-a-weekly-summary-of-your-plex-server/page-5#entry824461
January 18, 201511 yr Not sure what Im doing wrong. I'm unable to use plexReport.rb to manually send an email and test. This is all I get in the log: *** Running /etc/my_init.d/firstrun.sh... Using existing config file. Using existing cron file. *** Running /etc/rc.local... *** Booting runit daemon... *** Runit started as PID 10 Setting up watches. Watches established. The command finished successfully!
January 18, 201511 yr Not sure what Im doing wrong. I'm unable to use plexReport.rb to manually send an email and test. This is all I get in the log: *** Running /etc/my_init.d/firstrun.sh... Using existing config file. Using existing cron file. *** Running /etc/rc.local... *** Booting runit daemon... *** Runit started as PID 10 Setting up watches. Watches established. The command finished successfully! My understanding of the program is its just a ruby script that is called by cron how often as you set it. The default command does not send the test. You can use docker exec if you want. docker exec -it plexReport /opt/plexReport/bin/plexReport.rb --test-email
January 18, 201511 yr Not sure what Im doing wrong. I'm unable to use plexReport.rb to manually send an email and test. This is all I get in the log: *** Running /etc/my_init.d/firstrun.sh... Using existing config file. Using existing cron file. *** Running /etc/rc.local... *** Booting runit daemon... *** Runit started as PID 10 Setting up watches. Watches established. The command finished successfully! My understanding of the program is its just a ruby script that is called by cron how often as you set it. The default command does not send the test. You can use docker exec if you want. docker exec -it plexReport /opt/plexReport/bin/plexReport.rb --test-email That worked! Thanks!
January 18, 201511 yr Author So I suppose getting the below error means all is well but we just need to wait for the full update to allow Plex Home? C:/plexReport/bin/plexReport.rb:92:in `getMovies': undefined method `[]' for nil :NilClass (NoMethodError) from C:/plexReport/bin/plexReport.rb:321:in `main' from C:/plexReport/bin/plexReport.rb:340:in `<main>'
January 19, 201511 yr Thanks a lot for this one! Silly question, but where can I find my Plex API key?
January 19, 201511 yr Author Thanks a lot for this one! Silly question, but where can I find my Plex API key? go here: https://plex.tv/devices.xml and search for your device name, it is the 'token' field.
January 19, 201511 yr I'm not using Plex Home but still get the same error when trying to test. Tower login: root Password: Linux 3.17.4-unRAID. Last login: Thu Jan 1 17:38:12 -0800 2015 on /dev/pts/0 from Toshiba.ftrdhcpuse r.net. root@Tower:~# docker exec -it plexReport /opt/plexReport/bin/plexReport.rb --tes t-email /opt/plexReport/bin/plexReport.rb:92:in `getMovies': undefined method `[]' for n il:NilClass (NoMethodError) from /opt/plexReport/bin/plexReport.rb:321:in `main' from /opt/plexReport/bin/plexReport.rb:340:in `<main>' root@Tower:~#
January 19, 201511 yr I'm not using Plex Home but still get the same error when trying to test. Tower login: root Password: Linux 3.17.4-unRAID. Last login: Thu Jan 1 17:38:12 -0800 2015 on /dev/pts/0 from Toshiba.ftrdhcpuse r.net. root@Tower:~# docker exec -it plexReport /opt/plexReport/bin/plexReport.rb --tes t-email /opt/plexReport/bin/plexReport.rb:92:in `getMovies': undefined method `[]' for n il:NilClass (NoMethodError) from /opt/plexReport/bin/plexReport.rb:321:in `main' from /opt/plexReport/bin/plexReport.rb:340:in `<main>' root@Tower:~# I'm getting that as well.. when you run in verbose and look at the logs its a authentication issue... so I think it is all related.
February 2, 201511 yr Author looks like they just updated the master with a PlexHome fix, does your docker autoupdate or do you need to edit it?
February 2, 201511 yr looks like they just updated the master with a PlexHome fix, does your docker autoupdate or do you need to edit it? It only pulls from GIT. So a delete and a redownload will get the newest version EDIT: Update still doesn't work for me...
February 3, 201511 yr Author ya, same here His reply is we aren't using the right pull... is there a way I can tell what git pull down we got?
February 3, 201511 yr Are yall using "HOST" and not "BRIDGE" on your Docker? I had to change that to get it to work.
Archived
This topic is now archived and is closed to further replies.