wickedathletes Posted January 16, 2015 Share Posted January 16, 2015 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. Quote Link to comment
smdion Posted January 16, 2015 Share Posted January 16, 2015 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. Quote Link to comment
wickedathletes Posted January 16, 2015 Author Share Posted January 16, 2015 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. Quote Link to comment
smoldersonline Posted January 17, 2015 Share Posted January 17, 2015 +1, that would be sweet. Thank you! Quote Link to comment
interwebtech Posted January 17, 2015 Share Posted January 17, 2015 liking the looks of this one Quote Link to comment
smdion Posted January 17, 2015 Share Posted January 17, 2015 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? Quote Link to comment
Pducharme Posted January 17, 2015 Share Posted January 17, 2015 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? Quote Link to comment
smdion Posted January 17, 2015 Share Posted January 17, 2015 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. Quote Link to comment
smdion Posted January 17, 2015 Share Posted January 17, 2015 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. Quote Link to comment
smdion Posted January 17, 2015 Share Posted January 17, 2015 Okay.. inotify will now watch /config/crons.conf for changes. It will wait 5 seconds then update crontab.... give it a whirl everyone Quote Link to comment
StevenD Posted January 17, 2015 Share Posted January 17, 2015 Plexreport looks awesome! Thank. Ill check out this docker. Quote Link to comment
smdion Posted January 17, 2015 Share Posted January 17, 2015 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 Quote Link to comment
StevenD Posted January 18, 2015 Share Posted January 18, 2015 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! Quote Link to comment
smdion Posted January 18, 2015 Share Posted January 18, 2015 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 Quote Link to comment
StevenD Posted January 18, 2015 Share Posted January 18, 2015 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! Quote Link to comment
wickedathletes Posted January 18, 2015 Author Share Posted January 18, 2015 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>' Quote Link to comment
smoldersonline Posted January 19, 2015 Share Posted January 19, 2015 Thanks a lot for this one! Silly question, but where can I find my Plex API key? Quote Link to comment
wickedathletes Posted January 19, 2015 Author Share Posted January 19, 2015 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. Quote Link to comment
interwebtech Posted January 19, 2015 Share Posted January 19, 2015 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:~# Quote Link to comment
smdion Posted January 19, 2015 Share Posted January 19, 2015 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. Quote Link to comment
wickedathletes Posted February 2, 2015 Author Share Posted February 2, 2015 looks like they just updated the master with a PlexHome fix, does your docker autoupdate or do you need to edit it? Quote Link to comment
smdion Posted February 2, 2015 Share Posted February 2, 2015 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... Quote Link to comment
wickedathletes Posted February 2, 2015 Author Share Posted February 2, 2015 ya, same here Quote Link to comment
wickedathletes Posted February 3, 2015 Author Share Posted February 3, 2015 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? Quote Link to comment
StevenD Posted February 3, 2015 Share Posted February 3, 2015 Are yall using "HOST" and not "BRIDGE" on your Docker? I had to change that to get it to work. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.