Jump to content


Photo

Developing a standalone embystat server

emby statistics server

  • Please log in to reply
611 replies to this topic

#21 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 428 posts
  • Local time: 05:44 AM
  • LocationAntwerp, Belgium

Posted 18 April 2018 - 03:21 PM

Fount it! :) 

Looks cool indeed. I was thinking of including real-time watch info as well into the statistics server. For this I do need to create a new Emby plugin that will connect with the local EmbyStat server.


  • PenkethBoy likes this

#22 the-dumb1 OFFLINE  

the-dumb1

    Advanced Member

  • Members
  • 114 posts
  • Local time: 11:44 PM

Posted 27 April 2018 - 05:21 PM

@reggi, I was able to download your code from github and start looking at it.  I really like what you've done and I was attempting to augment it by adding statistics for tags and persons.  Ultimately, I'd like to have a "tag cloud" but really am more interested in being able to list all "persons" both textually and graphically.

 

I don't really know where to start; I've been trying to replicate your MovesPage.html and C# code ... but think I'm coming up short.  A little rusty on coding but am willing to work to help.

 

Can you provide some pointers?



#23 adrianwi OFFLINE  

adrianwi

    Advanced Member

  • Members
  • 381 posts
  • Local time: 04:44 AM
  • LocationScotland

Posted 27 April 2018 - 06:17 PM

If you've not seen PlexPy, now named Tautulli, then you really should check it out > http://tautulli.com

 

It's probably the single biggest thing I miss about Plex as it could tell me pretty much anything about what was being played or who was accessing the server.  The fact that it was free (although I did make a donation) and looked fantastic was just a bonus.

 

If you could create something like that for emby I'm sure you'd have lots of people willing to support it.


Edited by adrianwi, 27 April 2018 - 06:17 PM.

  • heciruam likes this

#24 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16605 posts
  • Local time: 08:44 PM
  • LocationWashington State

Posted 27 April 2018 - 06:28 PM

If you've not seen PlexPy, now named Tautulli, then you really should check it out > http://tautulli.com

 

It's probably the single biggest thing I miss about Plex as it could tell me pretty much anything about what was being played or who was accessing the server.  The fact that it was free (although I did make a donation) and looked fantastic was just a bonus.

 

If you could create something like that for emby I'm sure you'd have lots of people willing to support it.

 

Did you see post 11 and 12?  :)


Edited by Happy2Play, 27 April 2018 - 06:29 PM.

  • heciruam likes this

#25 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142604 posts
  • Local time: 11:44 PM

Posted 27 April 2018 - 06:33 PM

We will help with whatever api support is needed.


  • reggi, Maximus Naxsus, heciruam and 1 other like this

#26 adrianwi OFFLINE  

adrianwi

    Advanced Member

  • Members
  • 381 posts
  • Local time: 04:44 AM
  • LocationScotland

Posted 28 April 2018 - 02:12 AM

Did you see post 11 and 12?  :)

 

No :)  I think a trick is being missed here, though, as surely taking the open source code of Tautulli and modifying for emby would be easier than trying to write something from scratch?

 

That said, I couldn't do it!


Edited by adrianwi, 28 April 2018 - 02:12 AM.


#27 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 428 posts
  • Local time: 05:44 AM
  • LocationAntwerp, Belgium

Posted 28 April 2018 - 06:35 PM

@timid1

Thanks for wanting to help me with the development. But because you speak of the moviesPage.html I presume you have opened the "statistics" plugin repo. If you want to help out with the EmbyStat server development you need the following repo: https://github.com/m...regni/EmbyStatΒ 

I will not update the statistics plugin myself because the development of EmbyStat will have my priority now.

 

If you want to help me with EmbyStat send me a PM and I will explain a bit the work I have done so far. I'm intended to add indeed a lot of stats and details for the people (actors, writers, directors). Can you explain a bit to me what you mean with "Ultimately, I'd like to have a "tag cloud""

 

@Luke

Thanks for the support, I'll let you know when I'm missing an API call. But for now, the existing API looks good to me. I do intend to create an "EmbyStat plugin" as well for Emby so I can track all events (start media, stop, add user, update, shutdown, ...). If you have a better idea to track these events I'll be more then happy to listen.

 

@adrianwi

I did have a look at the Tautulli software. But since I'm not a Python developer and the database structure of Emby is totally different I prefer to start with a clean project and start my way to a full-blown statistics server. This will take longer to develop the first release but will be better in the long run. If you do have some ideas for the UI please feel free to comment because I'm not a designer myself :) Check post 15 for some screens.


  • anthonws likes this

#28 manolodf OFFLINE  

manolodf

    Advanced Member

  • Members
  • 39 posts
  • Local time: 10:44 PM

Posted 05 May 2018 - 02:03 PM

Have you guys seen this?  https://www.reddit.c...ar_to_tautulli/

 

Here is github:  https://github.com/d...exicjedi/JorumΒ 

 

It seems to be the same concept, trying to get a EmbyPy (Plexpy now Tautulli) 


Edited by manolodf, 05 May 2018 - 02:09 PM.

  • adrianwi likes this

#29 adrianwi OFFLINE  

adrianwi

    Advanced Member

  • Members
  • 381 posts
  • Local time: 04:44 AM
  • LocationScotland

Posted 06 May 2018 - 05:25 AM

Thanks for posting this.  I've had a look and whilst it has some way to go to show the information Tautulli (aka PlexPy) provides, it's a good start.

 

Will be watching both with interest...



#30 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142604 posts
  • Local time: 11:44 PM

Posted 06 May 2018 - 10:35 AM

If you guys want to let those developers know that i can help with whatever api support they need, that would be great. Thanks.


  • manolodf likes this

#31 adrianwi OFFLINE  

adrianwi

    Advanced Member

  • Members
  • 381 posts
  • Local time: 04:44 AM
  • LocationScotland

Posted 06 May 2018 - 11:05 AM

Done!



#32 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 428 posts
  • Local time: 05:44 AM
  • LocationAntwerp, Belgium

Posted 06 May 2018 - 11:39 AM

Thanks for the link! I contacted the guy, making two systems is maybe a waste of time instead of building one together. 

 

Anyway, I do have a first version you guys can test out. It is really still in alpha phase (you have been warned).

You can find the code at https://github.com/mregni/EmbyStat

 

If you want to run it you can do so by running this docker image: docker run -p <port>:80 uping/embystat:latest-win

At the moment only for windows, but I'm creating an Ubuntu server as we speak so I can build a Linux docker image asap.

 

Link to docker hub: https://hub.docker.c...uping/embystat/

 

At the moment only static info is displayed. If you run the tool, after finishing the wizard, go to Tasks and run the movie sync task. 

When this is finished go to movies and you will see some stats about them (the graph you see is just test data, sorry about that)

 

if you find a bug, feel free to create a GitHub issue for it, or post it here in the forum.


Edited by reggi, 06 May 2018 - 12:15 PM.

  • heciruam likes this

#33 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3434 posts
  • Local time: 04:44 AM
  • LocationWarrington,UK

Posted 06 May 2018 - 02:56 PM

so there is only a docker version - no windows version to test?



#34 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 428 posts
  • Local time: 05:44 AM
  • LocationAntwerp, Belgium

Posted 06 May 2018 - 03:13 PM

There is a windows version to test, but you need dotnet installed or a IIS (express) server.

Problem with running it with Kestrel is that it will keep a very ugly command prompt open. So I do prefer running it in IIS. Just don't forget if running in IIS to set the .NET CLR VERSION of your app pool to "No Managed Code".

 

 

To run in with dotnet open a command window in the folder and run "dotnet EmbyStat.Web.dll". At the moment it will run on port 5000, haven't been able to change it with --server-urls parameter for some reason.

I included both x86 and x64

 

I haven't found a way to make a windows installer for a .NET CORE app. But I'm still researching this path!

 

Ow yes, at the moment there is no update system implemented. So when there is an update later on, the database will be cleared with your statistics. This also is on my high priority list!

Attached Files



#35 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3434 posts
  • Local time: 04:44 AM
  • LocationWarrington,UK

Posted 06 May 2018 - 03:53 PM

@reggi ok thanks

 

how do you tell it which emby server to get info from (not tried to run it yet) as i have 3 live at the moment?



#36 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 428 posts
  • Local time: 05:44 AM
  • LocationAntwerp, Belgium

Posted 06 May 2018 - 03:54 PM

When you first start the server it will run a wizard. There you can specify the ur, username, and password for your Emby connection. 

The password itself will not be saved anywhere, it's just needed to get an authentication token from Emby.


Edited by reggi, 06 May 2018 - 03:55 PM.


#37 manolodf OFFLINE  

manolodf

    Advanced Member

  • Members
  • 39 posts
  • Local time: 10:44 PM

Posted 07 May 2018 - 02:28 PM

If you guys want to let those developers know that i can help with whatever api support they need, that would be great. Thanks.


I had messaged the guy on Reddit and actually told him exactly that you were more than willing to help with any API and linked him to this thread.

Hopefully some good will come out of it
  • Maximus Naxsus likes this

#38 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142604 posts
  • Local time: 11:44 PM

Posted 07 May 2018 - 02:41 PM

Ok thanks for doing that.



#39 jaketame OFFLINE  

jaketame

    Advanced Member

  • Members
  • 195 posts
  • Local time: 04:44 AM

Posted 22 June 2018 - 01:30 AM

How you getting on with these? need any testers? Thanks!


  • reggi likes this

#40 reggi OFFLINE  

reggi

    Advanced Member

  • Members
  • 428 posts
  • Local time: 05:44 AM
  • LocationAntwerp, Belgium

Posted 23 June 2018 - 03:59 PM

@jaketame

 

I had to stop the development for 2 weeks, but next week I will start working on the project again.

At this moment, I have the basic movies and shows stats included in the statistics server. Next steps are getting all useful events from Emby (over WebSocket) and make stats about that data.

But the biggest issue at the moment is that I don't have an update framework in the server. I will need to create that first before starting some beta tests. 

 

I'll keep you all posted when I get the updating working!


  • candyman likes this





Also tagged with one or more of these keywords: emby, statistics, server

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users