Jump to content

New Statistics plugin


reggi

Recommended Posts

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 :)

 

57472627ec1fa_Screenshot_1.png

 

 

Thanks!

 

Reggi

Statistics.zip

Edited by reggi
  • Like 27
Link to comment
Share on other sites

Koleckai Silvestri

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 by Koleckai Silvestri
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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

Koleckai Silvestri

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

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 by CBers
Link to comment
Share on other sites

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

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

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

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

 

 

574dbff2652e8_Screenshot_4.png

 

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

  • Like 3
Link to comment
Share on other sites

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

 

 

574dbff2652e8_Screenshot_4.png

 

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

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

  • Like 1
Link to comment
Share on other sites

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

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

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

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

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

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

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

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 by reggi
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...