aunefyren / wrapperr

Website based application that summarizes Plex statistics from a given period and displays it in a nice format. Similar to the Spotify Wrapped concept.
314 stars 22 forks source link

add option to get stats from pseudo (whithout plex.tv connection) #22

Closed JamesDAdams closed 2 years ago

JamesDAdams commented 2 years ago

Hi,

i would like an option to get stats from a user pseudo, for don't use the plex.tv server.

Thanks

aunefyren commented 2 years ago

user pseudo

Hi, I would love to implement some changes for you, but I don't really understand the request. Could you give a detailed explaination of what a user pseudo is and how you want stats to be gathered from it?

JamesDAdams commented 2 years ago

Make sure that instead of connecting to plex.tv, we type the nickname of a user who is connected to the plex server.

just with the username we can retrieve the stats from tautulli.

This feature would be really good for people like me who want to be able to use their services without internet.

sucr4m commented 2 years ago

heh, funny enough thats how it worked before. you might wanna get 2.0 just to try that.

also a little less funny the plex auth only tells me "Plex Auth did not respond." so having a switch to let the admin chose what to use would be nice.

BrianLindner commented 2 years ago

I too would add to the "request ability to run offline for specific users" option... I did try to v2.0.0 and while it does work, it obviously wont have the latest features/enhancements/updates :-(

Maybe a config for which "mode" to run the User selection in: Plex Auth, or email/username search...

my reason to request that ability:

aunefyren commented 2 years ago

Generating pre-reports for people.. as may not want to run Plex-Wrapped with outside user access. Could pre-run, and print to PDF for saving, etc (on my own)

I am considering some form of premade generation/saving/email-implementation either way, but I absolutely understand adding an option to disable Plex Auth is a good idea.

aunefyren commented 2 years ago

also a little less funny the plex auth only tells me "Plex Auth did not respond." so having a switch to let the admin chose what to use would be nice.

That's not good! Do you think it's your setup/Plex Servers being weird, or does my code need some tweaking?

sucr4m commented 2 years ago

idk what it was but since then i moved my plex to unraid and your wrapper docker container is working fine. thanks for asking.

i do wonder though.. im just reading myself into docker and unraid for now but it seems with your container you are using your own php file right? the php,ini-production one? why arent you upping the numbers for execution time and memory limit out of the box? it seems like such a small tweak..

also while im not sure if this is the right place but reading through the changelogs i do seem to be missing half the functionality? where do i find the links? how do i create them?

and last but not least despite selecting server wide stats its not showing any. i have tried my admin acc which i use to watch everything and a guest acc that didnt have any watches. both dont show them though.

aunefyren commented 2 years ago

why arent you upping the numbers for execution time and memory limit out of the box? it seems like such a small tweak..

That is a fair point, and definitely something I might consider. The issue is what the settings should be tweaked to as this is dependent on what period is customized, the data available in Tautulli and the capacity of the machine. It is unique for every user.

missing half the functionality? where do i find the links? how do i create them?

Checking 'Allow shareable link creation' in 'Wrapperr settings' means users can click Share page on the bottom of their stat page. Sorry if this was not clear. Any more functionality that seems missing?

selecting server wide stats its not showing any. i have tried my admin acc which i use to watch everything and a guest acc that didnt have any watches. both dont show them though.

Someone else reported this too, so it seems to be a bug that showed up recently. At least no one has mentioned it before to my knowledge.

sucr4m commented 2 years ago

i had it turned on from the start. But its not showing at the bottom. Maybe there is some small error cutting off the page since like mentioned before, server wide stuff isnt there either. i cant speak for the versions inbetween since i directly jumped from 2.0 on windows to 2.2.1 on docker.

aunefyren commented 2 years ago

i had it turned on from the start. But its not showing at the bottom. Maybe there is some small error cutting off the page since like mentioned before, server wide stuff isnt there either. i cant speak for the versions inbetween since i directly jumped from 2.0 on windows to 2.2.1 on docker.

Yeah, I see both server-wide and the outro section (which contains the 'share' button) is missing. Any JS errors in the browsers console?

sucr4m commented 2 years ago

something like this?

Uncaught TypeError: Cannot read properties of undefined (reading 'toString')
    at number_with_spaces (functions.js:182:19)
    at seconds_to_seconds (functions.js:175:26)
    at seconds_to_time (get_stats.js:971:20)
    at load_users (get_stats.js:788:36)
    at load_page (get_stats.js:103:9)
    at XMLHttpRequest.xhttp.onreadystatechange (get_stats.js:49:17)
aunefyren commented 2 years ago

something like this?

Uncaught TypeError: Cannot read properties of undefined (reading 'toString')
    at number_with_spaces (functions.js:182:19)
    at seconds_to_seconds (functions.js:175:26)
    at seconds_to_time (get_stats.js:971:20)
    at load_users (get_stats.js:788:36)
    at load_page (get_stats.js:103:9)
    at XMLHttpRequest.xhttp.onreadystatechange (get_stats.js:49:17)

Yes, thank you! I now have a clue about what might be causing this :)

sucr4m commented 2 years ago

yo, just wanted to report back: you managed to fix it. nice work. you still have that thing though where it doesnt combine partial plays while tautulli shows it correct. i mentioned it once on reddit i think.

aunefyren commented 2 years ago

yo, just wanted to report back: you managed to fix it. nice work. you still have that thing though where it doesnt combine partial plays while tautulli shows it correct. i mentioned it once on reddit i think.

Thank you! I investigated the issue and it seems to be based on how Tautulli does grouping. It has been added to the FAQ in the README.

aunefyren commented 2 years ago

Added to v2.2.4