bretswinney 20 Posted April 5, 2020 Author Share Posted April 5, 2020 Not sure how it is picking the order tho? My color order does not matchup with the alpha list Link to comment Share on other sites More sharing options...
TeamB 2349 Posted April 5, 2020 Share Posted April 5, 2020 (edited) It takes your full Emby server user list sorted alphabetically: ["AHH_IT","Admin","Ashley Minton","Ashley Swinney","Beckham","Bret","Drew","Garry","KK","Kamdyn","Micah & Noah","Mullinsrobert","Patrice","Tyler","Vincent83","jeluna979","jpluna"] then starts assigned colours form your colour palette list: ["#ff0000","#ffff00","#85da00","#7d002b","#00007e","#d67000","#00b27a","#8d00ff","#ff008a","#008080","#d82b23","#85c1ff","#0000ff","#ff00ff","#00ff00"] It builds a map for all your users from Emby to a colour, when it reaches the end of your colour palette list it loops back arround to the start: {"AHH_IT":"#ff0000","Admin":"#ffff00","Ashley Minton":"#85da00","Ashley Swinney":"#7d002b","Beckham":"#00007e","Bret":"#d67000","Drew":"#00b27a","Garry":"#8d00ff","KK":"#ff008a","Kamdyn":"#008080","Micah & Noah":"#d82b23","Mullinsrobert":"#85c1ff","Patrice":"#0000ff","Tyler":"#ff00ff","Vincent83":"#00ff00","jeluna979":"#ff0000","jpluna":"#ffff00"} So in the above example AHH_IT get colour #ff0000 and the next user Admin gets #ffff00 all the way up to jeluna979 and then it loops back the the first colour again.This way unless you add or remove a user from Emby your users will always be the same colour even if they dont appread in the usage data for that date period.Glad it is working, I will release it. Edited April 5, 2020 by TeamB Link to comment Share on other sites More sharing options...
bretswinney 20 Posted April 5, 2020 Author Share Posted April 5, 2020 It takes your full Emby server user list sorted alphabetically: ["AHH_IT","Admin","Ashley Minton","Ashley Swinney","Beckham","Bret","Drew","Garry","KK","Kamdyn","Micah & Noah","Mullinsrobert","Patrice","Tyler","Vincent83","jeluna979","jpluna"] then starts assigned colours form your colour palette list: ["#ff0000","#ffff00","#85da00","#7d002b","#00007e","#d67000","#00b27a","#8d00ff","#ff008a","#008080","#d82b23","#85c1ff","#0000ff","#ff00ff","#00ff00"] It builds a map for all your users from Emby to a colour, when it reaches the end of your colour palette list it loops back arround to the start: {"AHH_IT":"#ff0000","Admin":"#ffff00","Ashley Minton":"#85da00","Ashley Swinney":"#7d002b","Beckham":"#00007e","Bret":"#d67000","Drew":"#00b27a","Garry":"#8d00ff","KK":"#ff008a","Kamdyn":"#008080","Micah & Noah":"#d82b23","Mullinsrobert":"#85c1ff","Patrice":"#0000ff","Tyler":"#ff00ff","Vincent83":"#00ff00","jeluna979":"#ff0000","jpluna":"#ffff00"} So in the above example AHH_IT get colour #ff0000 and the next user Admin gets #ffff00 all the way up to jeluna979 and then it loops back the the first colour again. This way unless you add or remove a user from Emby your users will always be the same colour even if they dont appread in the usage data for that date period. Glad it is working, I will release it. Ok that makes sense! Thanks so much! Link to comment Share on other sites More sharing options...
jlficken 3 Posted April 5, 2020 Share Posted April 5, 2020 It appears that the latest update that came thru this morning for this plugin broke the reporting again as I have no stats now for today. It was working fine before last nights update. Link to comment Share on other sites More sharing options...
Happy2Play 8140 Posted April 6, 2020 Share Posted April 6, 2020 It appears that the latest update that came thru this morning for this plugin broke the reporting again as I have no stats now for today. It was working fine before last nights update. I just played a trailer and it was captured by the plugin. So I see everything that was reported before the update and the item I played after the update. Version 4.5.0.4 beta Version 1.6.10.7 Link to comment Share on other sites More sharing options...
jlficken 3 Posted April 6, 2020 Share Posted April 6, 2020 (edited) I just played a trailer and it was captured by the plugin. So I see everything that was reported before the update and the item I played after the update. Version 4.5.0.4 beta Version 1.6.10.7 I'm on 4.4.1.0 and 1.6.10.7 currently. Nothing has been captured since the update occurred at 3:45AM today. ETA: It looks like the Summary tab now shows some things after restarting Emby, however, none of the other tabs show anything form today (graph, users, etc.). ETA 2: I guess ignore this as it appears that restarting Emby must have fixed it as now there's info in the graph. I'll keep an eye on it. Sorry for the false alarm! Edited April 6, 2020 by jlficken 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now