reggi 409 Posted May 26, 2016 Share Posted May 26, 2016 (edited) Announcement: As of today (30/04/2018), I will no longer update this plugin. Only fix it when there is a Nuget Package update needed. This is because I'm working on a standalone statistics server. Here you can find the main forum thread for EmbyStat. If you have any ideas, design layouts, development knownledge feel free to participate there or on the github repo Thanks everyone for all the support, testing and patience that made this plugin grown. But I think to get even better and more statistics, a standalone server is the way to go. ------------------------------------------ ------------------------------------------ Hi everyone, The last few days I made a small statistics plugin for Emby server because I always was missing a few statistics of my collection. At this stage, it's very basic but I will continue the development step by step. I'm running the plugin on Emby-server version 3.0.5971.0 version 0.0.12.0 (working on Emby 3.2.14.0) version 0.0.11.8 version 0.0.11.3 version 0.0.11.0 version 0.0.10.0 version 0.0.0.9 version 0.0.0.7 version 0.0.0.6 version 0.0.0.5 version 0.0.0.4 (also 0.0.4.1) version 0.0.0.3 version 0.0.0.2 Features: - Every user can get his own statistics - 14 statistics are shown at this moment - backdrops are random movie backdrops Next - A basic styling (normal text) - More statistics (Genre graphs, ...) - UI update If you have the time feel free to test the plugin, the dll is included in the zip file. I would love to hear what you guys think about it. Any remarks, idea's, bugs, layout changes, new stats, ... are welcome Thanks! Reggi Statistics.zip Edited April 30, 2018 by reggi 27 Link to comment Share on other sites More sharing options...
Doonga 17 Posted May 26, 2016 Share Posted May 26, 2016 This looks promising, I'll give it a shot soon. Thanks! Link to comment Share on other sites More sharing options...
Koleckai Silvestri 1150 Posted May 26, 2016 Share Posted May 26, 2016 (edited) Nice.. The plugin works well for me. I have been asking for statistics like these for a couple of years now. Thanks for providing them. Wish I could change the date format to something I am more used to but that isn't a blocker. Edited May 26, 2016 by Koleckai Silvestri Link to comment Share on other sites More sharing options...
CBers 6771 Posted May 26, 2016 Share Posted May 26, 2016 Nice work reggi. Link to comment Share on other sites More sharing options...
MSattler 387 Posted May 26, 2016 Share Posted May 26, 2016 Nice work reggi. It would be nice to get overall usage statistics. Like # of movies watched, per day, per week, per month etc. # of movies watcher per user, etc. 1 Link to comment Share on other sites More sharing options...
MSattler 387 Posted May 26, 2016 Share Posted May 26, 2016 Would it be possible to adjust the dates to the US standard, and have the user decide? Link to comment Share on other sites More sharing options...
CBers 6771 Posted May 26, 2016 Share Posted May 26, 2016 OK, I've just downloaded the DLL, copied it to my plugins folder and restarted Emby server, but where do I go to access the stats please? 2016-05-26 21:29:51.1736 Info App: Loading Statistics, Version=1.0.5989.26099, Culture=neutral, PublicKeyToken=null Link to comment Share on other sites More sharing options...
Koleckai Silvestri 1150 Posted May 26, 2016 Share Posted May 26, 2016 OK, I've just downloaded the DLL, copied it to my plugins folder and restarted Emby server, but where do I go to access the stats please? 2016-05-26 21:29:51.1736 Info App: Loading Statistics, Version=1.0.5989.26099, Culture=neutral, PublicKeyToken=null In the Emby Dashboard, go to Plugins and select Statistics. Link to comment Share on other sites More sharing options...
CBers 6771 Posted May 26, 2016 Share Posted May 26, 2016 (edited) In the Emby Dashboard, go to Plugins and select Statistics.Thanks Koleckai. @@reggi - might be an idea to put it as a TAB under Users? . Edited May 26, 2016 by CBers Link to comment Share on other sites More sharing options...
reggi 409 Posted May 26, 2016 Author Share Posted May 26, 2016 Thanks for the replies!! It would be nice to get overall usage statistics. Like # of movies watched, per day, per week, per month etc. # of movies watcher per user, etc. Thanks, I'll try to add a horizontal bar graph to see the usage stats. Would it be possible to adjust the dates to the US standard, and have the user decide? At the moment I hardcoded the date transformation. Good idea to change it to a dynamic string. Thanks Koleckai.@@reggi - might be an idea to put it as a TAB under Users?. CBers, any idea how I can make my plugin visible as a tab in the left menu bar? I'll keep you all posted! Link to comment Share on other sites More sharing options...
ebr 14913 Posted May 26, 2016 Share Posted May 26, 2016 Thanks Koleckai. @@reggi - might be an idea to put it as a TAB under Users? . That isn't possible at this time. Link to comment Share on other sites More sharing options...
MSattler 387 Posted May 27, 2016 Share Posted May 27, 2016 That isn't possible at this time. should just make the build in statistics/reporting be a plugin, so we can remove it if we want and replace it with something that suits certain folks better? Link to comment Share on other sites More sharing options...
reggi 409 Posted May 31, 2016 Author Share Posted May 31, 2016 Hi guys, I have a new update for you all. Changelog - Reduced number of API calls - Added 2 new graphs - view count of last 20 weeks - views per day I will need to add some more styling to the graphs - value displayed in the bar - sizing - ... Let me know what you think Statistics 0.0.1.zip 3 Link to comment Share on other sites More sharing options...
MSattler 387 Posted May 31, 2016 Share Posted May 31, 2016 Hi guys, I have a new update for you all. Changelog - Reduced number of API calls - Added 2 new graphs - view count of last 20 weeks - views per day I will need to add some more styling to the graphs - value displayed in the bar - sizing - ... Let me know what you think So the views per week is per user? Anyway I can see total views of all users? Link to comment Share on other sites More sharing options...
reggi 409 Posted May 31, 2016 Author Share Posted May 31, 2016 Both charts are indeed for the selected user only. I don't know yet how I can keep the UI clean when I add graphs for a total view of all users. Maybe I can add some tabs or separate pages (one for totals and one with a dropdown for users) Thanks for the tip 1 Link to comment Share on other sites More sharing options...
Pais 115 Posted June 1, 2016 Share Posted June 1, 2016 I like this. Well done. Link to comment Share on other sites More sharing options...
ozchef 2 Posted June 1, 2016 Share Posted June 1, 2016 Good job Link to comment Share on other sites More sharing options...
MSattler 387 Posted June 1, 2016 Share Posted June 1, 2016 Both charts are indeed for the selected user only. I don't know yet how I can keep the UI clean when I add graphs for a total view of all users. Maybe I can add some tabs or separate pages (one for totals and one with a dropdown for users) Thanks for the tip Would it be possibly to add a selection in the user drop down for "All users"? And then just go ahead and display the charts, and data. Link to comment Share on other sites More sharing options...
MSattler 387 Posted June 1, 2016 Share Posted June 1, 2016 One other suggestion, it appears in cases where playback fails, it counts towards playback. For instance one user hit play, playback failed, and they hit play again, and it worked. Under their stats it shows the movie as being watched twice. Link to comment Share on other sites More sharing options...
ebr 14913 Posted June 1, 2016 Share Posted June 1, 2016 One other suggestion, it appears in cases where playback fails, it counts towards playback. For instance one user hit play, playback failed, and they hit play again, and it worked. Under their stats it shows the movie as being watched twice. There isn't going to be anything this plug-in can do about that. Link to comment Share on other sites More sharing options...
MSattler 387 Posted June 1, 2016 Share Posted June 1, 2016 There isn't going to be anything this plug-in can do about that. Well, you can if you look for a matching stopped playing entry...... Link to comment Share on other sites More sharing options...
ebr 14913 Posted June 1, 2016 Share Posted June 1, 2016 Well, you can if you look for a matching stopped playing entry...... I was assuming he was just going by the playcount number the server tracks. The problem with trying to match things like starts and stops is that, in this sessionless world in which we now live, that isn't necessarily going to add up to accurate results either. Also, a lot of the apps have to actually stop and start items in order to seek when transcoding. So, playcounts are going to be impacted by that as well. Link to comment Share on other sites More sharing options...
Luke 37068 Posted June 1, 2016 Share Posted June 1, 2016 If they are reporting correctly by only sending start and stop events based on user playback starting/stopping, then playcount shouldn't be artificially incremented. if they're not then yes that would happen. Link to comment Share on other sites More sharing options...
ebr 14913 Posted June 1, 2016 Share Posted June 1, 2016 Do we increment the playcount on the start or the stop? Almost seems like it should be the stop... Link to comment Share on other sites More sharing options...
reggi 409 Posted June 1, 2016 Author Share Posted June 1, 2016 (edited) One other suggestion, it appears in cases where playback fails, it counts towards playback. For instance one user hit play, playback failed, and they hit play again, and it worked. Under their stats it shows the movie as being watched twice. Thanks for the suggestion. But as ebr wrote already, I only can count the Played dates of a movie. I can always make a distinct selection but then if you watch a movie today and also next month it will be counted as 1. There is also another problem with the statistics. When you hit the played button of a movie/episode/season, Emby will not set a PlayedDate (because he simply can't know when you viewed it obviously). So it will be counted as played in the total count, but you will never see it appear in the "Views per week" or "Views per day of the week" graphs. Do we increment the playcount on the start or the stop? Almost seems like it should be the stop... I'm tring to find it in the Emby repo. But still have to figure out the architecture of the solution first Edited June 1, 2016 by reggi 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