[Support] Ninthwalker - NowShowing


Recommended Posts

Amazing! I love the new admin page!

A couple things...

1. If you're using gmail, make sure to make an "app password" for Now Showing or it won't work: https://myaccount.google.com/security

Also, I had this issue with V1 as well, and I notice that you have something similar as an issue in Github; but mine is a bit different...

When viewing the web page on mobile, the curtains background gets very stretched. It shows it's original size instead of one constrained for mobile. So it only shows the top-middle of the curtains which is a very dark section of the image.

I tested by replacing 'img/background.jpeg' with another image of the same size. It also shows stretched and pixellated.
I'd try to fix the css but I'm not very familiar with how to do that.

 

Great job!

Link to comment
24 minutes ago, RevelRob said:

Amazing! I love the new admin page!

A couple things...

1. If you're using gmail, make sure to make an "app password" for Now Showing or it won't work: https://myaccount.google.com/security

Also, I had this issue with V1 as well, and I notice that you have something similar as an issue in Github; but mine is a bit different...

When viewing the web page on mobile, the curtains background gets very stretched. It shows it's original size instead of one constrained for mobile. So it only shows the top-middle of the curtains which is a very dark section of the image.

I tested by replacing 'img/background.jpeg' with another image of the same size. It also shows stretched and pixellated.
I'd try to fix the css but I'm not very familiar with how to do that.

 

Great job!

 

Glad you like it.

 

The Gmail part is known, I have a wiki page talking about it for users that need help on Github.

As for the second part, the mobile image quirk is going to be fixed before the full release of v2.

Just putting the final touches on v2 and was even able to add in a couple other features like Tautulli statistics and log viewing.

 

 

 

Link to comment

I want make a reverse proxy

 

I edit the file "default" under /appdata/letsencrypt/nginx/site-conf

 

    location /nowshowing/ {
        include /config/nginx/proxy.conf;
      proxy_pass http://192.168.178.21:6678;
    }

 

but it don't work. Can someone help me please?

Link to comment
5 hours ago, suender said:

I want make a reverse proxy

 

I edit the file "default" under /appdata/letsencrypt/nginx/site-conf

 

    location /nowshowing/ {
        include /config/nginx/proxy.conf;
      proxy_pass http://192.168.178.21:6678;
    }

 

but it don't work. Can someone help me please?

 

Try adding another slash after the port. See if that works for you. 

 

proxy_pass http://192.168.12.56:6878/;

Link to comment

I installed the new version of NowShowing2 after removing version 1. I also ran the appdata cleanup plugin before the new install. Everything worked well. The one exception was the webpage. It did not update during the test initially. I re-ran with option web only and this time it updated the webpage. I also wanted to tell you that I excluded several of my "other" plex directories and they were filtered out. This is really cool, thanks for the hard work. 

Link to comment
25 minutes ago, llwhite said:

I installed the new version of NowShowing2 after removing version 1. I also ran the appdata cleanup plugin before the new install. Everything worked well. The one exception was the webpage. It did not update during the test initially. I re-ran with option web only and this time it updated the webpage. I also wanted to tell you that I excluded several of my "other" plex directories and they were filtered out. This is really cool, thanks for the hard work. 

 

Great, thanks a lot for the feedback. 

I’ve noticed after the first report runs, the webpage still seems to not show it. But if I do a CTRL+F5 (hard refresh) to clear the cache it shows the updated page. 

 

Not sure if there is a way to clear the cache so it shows it without hard-refreshing the first time, but I’ll look into it. Thanks again!

Link to comment
11 hours ago, suender said:

I want make a reverse proxy

 

I edit the file "default" under /appdata/letsencrypt/nginx/site-conf

 

    location /nowshowing/ {
        include /config/nginx/proxy.conf;
      proxy_pass http://192.168.178.21:6678;
    }

 

but it don't work. Can someone help me please?

 

Did you purposely change the port on the docker? Default is 6878 not 6678.

Link to comment

NowShowing v2 is officially released!

 

Thank you to those that helped beta test. 

 

Please do a a full re-install for v2 final release. After that, updates can be done via the normal way in the Docker Settings page in unRIAD. 

 

v2 adds the following features/enhancements:

 

  • Same great Email/webpage for Plex recently added as v1
  • All new Web Interface for settings and customization
  • Library Filtering!
  • New user Setup Wizard
  • Announcement Emails
  • Easy Plex token retrieval
  • Most email providers supported
  • BCC users instead of multiple emails
  • Password protected with Fail2ban support
  • On-Demand and Test reports
  • Tautulli Statistics integration
  • Web Log Viewer
  • Better logging 
  • Minor text fixes

Installation:

NowShowing v2 is a complete redesign so is not backwards compatable with the original v1 docker. 

 

When you search community applications, you will see a new NowShowing v2 app. Install that to a new appdata volume and configure using the new web interface.

 

Note: The original v1 will remain in community apps for a while, but will no longer be supported. All new features are being added to v2. It’s recommended for everyone to switch to the new v2. Thanks all!

 

 

 

  • Like 1
Link to comment

I removed it along with v1 and started net new... I ran the appdata cleanup plugin to make sure all was gone.   Before I cleaned up, I took screenshots of my v2 beta settings and while I was at it, I copied my v1 advanced.yaml file to a safe location.   Took an extra min or so, but everything is up and running on the new v2... I like the integration of stats from Tautulli within the email.   Very nice!

Edited by luisv
Link to comment
26 minutes ago, wgstarks said:

Is it alright to keep the appdata from v2 beta?

If you were trying out the v2 before the final release then you’ll need to do a fresh install. The main config file was updated to allow for Tautulli integration and a system put in place to handle future updates.

 

If you don’t care about keeping any settings in your current appdata, the easiest way is to:

delete the /cfg/advanced.yaml file in your appdata dir. 

 

Then you can just do a force update and it will overwrite all files thinking it’s a fresh install. 

 

If you do want to keep the appdata info,  you can install the app again from your template or community apps and point it to a different appdata directory name. 

 

 

Edited by ninthwalker
Link to comment
3 minutes ago, luisv said:

I removed it along with v1 and started net new... I ran the appdata cleanup plugin to make sure all was gone.   Before I cleaned up, I took screenshots of my v2 beta settings and while I was at it, I copied my v1 advanced.yaml file to a safe location.   Took an extra min or ss, but everything is up and running on the new v2... I like the integration of stats from Tautulli within the email.   Very nice!

 

Glad you like it.

 

Future updates now can take place like normal via the Docker settings page. It will detect what version you are on and if a new one is available first make a full backup (placed in your appdata install dir) and then install the latest version.

 

advanced.yaml file will always be kept in-tact. Some users modify the .erb files for more customization and those may be updated for new features at some update. 

 

So the backup was added in case those gets overwritten the user can go in and find the ones they modified. 

 

 

Link to comment

I'm having issues with getting Tautulli integration working.

 

I have Tautulli accessible via  nginx proxied docker container.

I tried FQDN, port of 443 and https enabled with the proper API key and the API enabled in Tautulli.

This produced an error in the nowshowing log:

Tautulli Statistics failed. Check settings/Tautulli app is running.
execution expired["/usr/lib/ruby/2.3.0/net/http.rb:880:in `initialize'", "/usr/lib/ruby/2.3.0/net/http.rb:880:in `open'", "/usr/lib/ruby/2.3.0/net/http.rb:880:in `block in connect'", "/usr/lib/ruby/2.3.0/timeout.rb:101:in `timeout'", "/usr/lib/ruby/2.3.0/net/http.rb:878:in `connect'", "/usr/lib/ruby/2.3.0/net/http.rb:863:in `do_start'", "/usr/lib/ruby/2.3.0/net/http.rb:852:in `start'", "/usr/lib/ruby/2.3.0/net/http.rb:1384:in `request'", "/usr/lib/ruby/gems/2.3.0/gems/httparty-0.13.1/lib/httparty/request.rb:93:in `perform'", "/usr/lib/ruby/gems/2.3.0/gems/httparty-0.13.1/lib/httparty.rb:521:in `perform_request'", "/usr/lib/ruby/gems/2.3.0/gems/httparty-0.13.1/lib/httparty.rb:457:in `get'", "/var/lib/nowshowing/tautulli.rb:52:in `get_popular_stats'", "/usr/local/sbin/emailreport:384:in `main'", "/usr/local/sbin/emailreport:420:in `<main>'"]

 

I then went directly to Tautulli on the standard port with https unchecked which produced:

 Tautulli Statistics failed. Check settings/Tautulli app is running.
undefined method `[]' for nil:NilClass["/var/lib/nowshowing/tautulli.rb:69:in `get_popular_stats'", "/usr/local/sbin/emailreport:384:in `main'", 

 

I regenerated the API key on Taululli to see if that was the issue and it wasnt..same errors.

 

2nd issue, I can't save some of the check boxes in Stats. I've attempted from multiple browsers and incognito mode, etc. They will not stay checked.

 

image.png.c3f98f057f74f171dcfb9ced29d53304.png

 

 

It would appear to me that NowShowing IS hitting the Tautulli server because I see this in the Tautulli API log:


2018-04-09 22:31:26    DEBUG    Tautulli APIv2 :: Cleaned kwargs: {'stats_type': u'0', 'time_range': u'1'}
2018-04-09 22:31:26    DEBUG    Tautulli APIv2 :: API called with kwargs: {'cmd': u'get_home_stats', 'apikey': u'********94', 'stats_type': u'0', 'time_range': u'1'}
2018-04-09 21:03:00    DEBUG    
Tautulli APIv2 :: Cleaned kwargs: {}

 

 

I am more than willing to PM you my Tautulli and NowShowing Info so you can attempt to hit it if it would be helpful.

 

Thanks!

-RX

Edited by RXWatcher
Link to comment
11 hours ago, RXWatcher said:

I'm having issues with getting Tautulli integration working.

 

I have Tautulli accessible via  nginx proxied docker container.

I tried FQDN, port of 443 and https enabled with the proper API key and the API enabled in Tautulli.

This produced an error in the nowshowing log:

Tautulli Statistics failed. Check settings/Tautulli app is running.
execution expired["/usr/lib/ruby/2.3.0/net/http.rb:880:in `initialize'", "/usr/lib/ruby/2.3.0/net/http.rb:880:in `open'", "/usr/lib/ruby/2.3.0/net/http.rb:880:in `block in connect'", "/usr/lib/ruby/2.3.0/timeout.rb:101:in `timeout'", "/usr/lib/ruby/2.3.0/net/http.rb:878:in `connect'", "/usr/lib/ruby/2.3.0/net/http.rb:863:in `do_start'", "/usr/lib/ruby/2.3.0/net/http.rb:852:in `start'", "/usr/lib/ruby/2.3.0/net/http.rb:1384:in `request'", "/usr/lib/ruby/gems/2.3.0/gems/httparty-0.13.1/lib/httparty/request.rb:93:in `perform'", "/usr/lib/ruby/gems/2.3.0/gems/httparty-0.13.1/lib/httparty.rb:521:in `perform_request'", "/usr/lib/ruby/gems/2.3.0/gems/httparty-0.13.1/lib/httparty.rb:457:in `get'", "/var/lib/nowshowing/tautulli.rb:52:in `get_popular_stats'", "/usr/local/sbin/emailreport:384:in `main'", "/usr/local/sbin/emailreport:420:in `<main>'"]

 

I then went directly to Tautulli on the standard port with https unchecked which produced:

 Tautulli Statistics failed. Check settings/Tautulli app is running.
undefined method `[]' for nil:NilClass["/var/lib/nowshowing/tautulli.rb:69:in `get_popular_stats'", "/usr/local/sbin/emailreport:384:in `main'", 

 

I regenerated the API key on Taululli to see if that was the issue and it wasnt..same errors.

 

2nd issue, I can't save some of the check boxes in Stats. I've attempted from multiple browsers and incognito mode, etc. They will not stay checked.

 

image.png.c3f98f057f74f171dcfb9ced29d53304.png

 

 

It would appear to me that NowShowing IS hitting the Tautulli server because I see this in the Tautulli API log:


2018-04-09 22:31:26    DEBUG    Tautulli APIv2 :: Cleaned kwargs: {'stats_type': u'0', 'time_range': u'1'}
2018-04-09 22:31:26    DEBUG    Tautulli APIv2 :: API called with kwargs: {'cmd': u'get_home_stats', 'apikey': u'********94', 'stats_type': u'0', 'time_range': u'1'}
2018-04-09 21:03:00    DEBUG    
Tautulli APIv2 :: Cleaned kwargs: {}

 

 

I am more than willing to PM you my Tautulli and NowShowing Info so you can attempt to hit it if it would be helpful.

 

Thanks!

-RX

 

Please post your Tautulli configuration page from NowShowing.

Link to comment
2 hours ago, wgstarks said:

Just updated to the v2 stable. No problems so far, but I am curious about what appears to be a missing image in the admin page-

 

SafariScreenSnapz089.jpg.f3a1b090df9bcf79ce81950cc38f901a.jpg

 

Am I missing something?

 

Should be pulling it from whatever was set in Plex on your account. I'll have to check with ninthwalker to see if it updates upon changing.

Link to comment
4 hours ago, GroxyPod said:

 

Please post your Tautulli configuration page from NowShowing.

 

image.thumb.png.cd1b64fc7b2ba0d8723175e6c09a2267.png

 

Tautulli config:

 

image.png.3b79760fab8abbbd9476da9672bcb9e9.png

 

 

 

I've narrowed this down to a bug in NowShowing's tautulli.rb file.  If I ONLY enable Library Totals then the error goes away. It's specific to check boxes like Popular Movies. The error I'm now getting when I have Popular Movies checked:

 

undefined method `[]' for nil:NilClass["/var/lib/nowshowing/tautulli.rb:57:in `get_popular_stats'", "/usr/local/sbin/emailreport:384:in `main'", "/usr/local/sbin/emailreport:420:in `<main>'"]
 

If I only have Library Totals checked then the stats section does get added to the email but it's blank..ie: not pulling stats but the error also goes away.

 

I've also determined that when you check the checkboxes and submit, it's getting written to the advanced.yaml however the data isnt being re-read. If I do a Ctrl-F5 to reload the screens and go back in, it's not being re-read from the yaml file and thus doesnt know about the changes. I can see the changes in the yaml once I submit them but it's like NowShowing doesnt know about them.

 

Another issue is it's timing out talking to Tautulli going through a proxy...most of my detective work was bypassing the proxy and talking to tautulli directly as I get timeout errors when going through the proxy.

 

 

 

Edited by RXWatcher
Link to comment
5 hours ago, RXWatcher said:

 

I've narrowed this down to a bug in NowShowing's tautulli.rb file.  If I ONLY enable Library Totals then the error goes away. It's specific to check boxes like Popular Movies. The error I'm now getting when I have Popular Movies checked:

 

undefined method `[]' for nil:NilClass["/var/lib/nowshowing/tautulli.rb:57:in `get_popular_stats'", "/usr/local/sbin/emailreport:384:in `main'", "/usr/local/sbin/emailreport:420:in `<main>'"]
 

If I only have Library Totals checked then the stats section does get added to the email but it's blank..ie: not pulling stats but the error also goes away.

 

I've also determined that when you check the checkboxes and submit, it's getting written to the advanced.yaml however the data isnt being re-read. If I do a Ctrl-F5 to reload the screens and go back in, it's not being re-read from the yaml file and thus doesnt know about the changes. I can see the changes in the yaml once I submit them but it's like NowShowing doesnt know about them.

 

Another issue is it's timing out talking to Tautulli going through a proxy...most of my detective work was bypassing the proxy and talking to tautulli directly as I get timeout errors when going through the proxy.

 

 

 

 

Appreciate your troubleshooting steps.

If you take your api key your url and put it in this url below and paste that into your browser, does it return a JSON page of info from Tautulli?

Try direct and also through your proxy url. Let me know.

 

https://plexpy.yourdomain.com:443/api/v2?apikey=YourAPIkeyHere&cmd=get_home_stats&time_range=7&stats_type=0

 

 

For the checkboxes not refreshing, I haven't been able to reproduce this.

I found my typo for this bug. Will be pushed in my next small bugfix update.

 

 

I run a nginx reverse proxy as well, so I will have to test a bit more to see if i can make mine timeout getting stats through that.

Thanks again.

 

Edited by ninthwalker
Link to comment
On 4/10/2018 at 6:34 AM, wgstarks said:

Just updated to the v2 stable. No problems so far, but I am curious about what appears to be a missing image in the admin page-

 

 

It downloads the avatar from plex, which uses gravatar.

It does this on each successful token retrieval.

 

I have a field where a user can enter in their own token, instead of authenticating.

If they do that I don't do a plex.tv api call, so it wouldn't download the avatar image. Although if no image is found, it should just not show anything there. I will add a default blank avatar.png file so that should prevent any browser broken error's i suppose.

Unless maybe that's what a broken gravatar imaga downloads as. If you look at this path, is there an avatar.png file? Does it have that '?' as it's image?

 

appdata config path: www/img/avatar.png

 

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.