No description
Find a file
aunefyren 3381249172 Warning when library ID's are not set & Fixed cache age bug
If you gather stats without providing ID for said library you are now warned in the admin config.
Fixed a bug where the "optional" cache age-limit would not work if 0 or empty.
2021-10-04 14:57:28 +02:00
.idea Cache reuse of server-wide stats, fixed footer, trimming string 2021-04-20 11:55:11 +02:00
api Warning when library ID's are not set & Fixed cache age bug 2021-10-04 14:57:28 +02:00
assets Warning when library ID's are not set & Fixed cache age bug 2021-10-04 14:57:28 +02:00
config Re-adding config files 2021-05-16 22:00:40 +02:00
.gitattributes Initial commit 2020-12-19 17:04:43 +01:00
.gitignore Username support & Sensitive info warning in README 2021-10-04 14:26:50 +02:00
.htaccess Caching, admin page, username search, flexible results 2021-03-08 19:45:06 +01:00
admin.html Username support & Sensitive info warning in README 2021-10-04 14:26:50 +02:00
admin.js Warning when library ID's are not set & Fixed cache age bug 2021-10-04 14:57:28 +02:00
caching.html Caching, admin page, username search, flexible results 2021-03-08 19:45:06 +01:00
caching.js Username support & Sensitive info warning in README 2021-10-04 14:26:50 +02:00
CODE_OF_CONDUCT.md Added code of conduct 2021-03-10 00:50:23 +01:00
get_config.js Username support & Sensitive info warning in README 2021-10-04 14:26:50 +02:00
get_functions.js Caching, admin page, username search, flexible results 2021-03-08 19:45:06 +01:00
get_stats.js Added music, more options, fixed logs 2021-10-02 01:21:18 +02:00
index.html Caching of server-wide stats improved, fixed merging error 2021-08-11 17:34:25 +02:00
index.js Remove error when searching 2021-03-09 16:22:41 +01:00
README.md Username support & Sensitive info warning in README 2021-10-04 14:26:50 +02:00
set_config.js Username support & Sensitive info warning in README 2021-10-04 14:26:50 +02:00

Plex Wrapped

Introduction

A website-based platform and API for collecting Plex user stats within a set timeframe using Tautulli. The data is displayed as a stat-summary, sort of like Spotify Wrapped. Yes, you need Tautulli to have been running beforehand and currently for this to work.

alt text

Features

  • Custom timeframes
  • Movies, shows & music
  • Caching of results
  • Friendly, dynamic display for statistics with nice illustrations
  • Email and username search
  • Admin page with authentication for settings
  • Pre-caching of user-sets

alt text

Credit

alt text

Instructions

This is a web-based platform. Place it in a webserver like Apache or Nginx and make sure it processes PHP content.

There are multiple settings you must configure! They will be stored in config/config.json, but can be configured easily at your-domain-or-ip/admin.html.

PHP will have issues with this API based on the results you want. If you have a large time frame for your wrapped period and there are a huge amount of Tautulli entries you can have multiple issues. In your php.ini file you may have to change:

  • max_execution_time=enough seconds for the script to finish
  • memory_limit=enough M for the script to handle JSON data
  • max_input_time=enough seconds for the script to parse JSON data

You need to give PHP permission to read and write to files in the directory called config.

The config directory contains sensitive information that must be accessed by PHP scripts! There is an .htaccess file included that is effective with Apache, but if you are using Nginx you must add a directory deny in your Nginx configuration!

The cache is stored in config/cache.json, but can be cleared using the admin menu.

Your password is hashed and stored in the config/config.json.

If you visit your-domain-or-ip/caching.html you can do a pre-caching of a set of users. This is very useful if you want to prepare for a lot of traffic.

Need help?

If you have any issues feel free to contact me. I am always trying to improve the project. If I can't, many people on several forums (including /r/plex) might be able to assist you.

Goodybye.