Project

General

Profile

TVHStats: An activity monitor / history tracker for Tvheadend

Added by ry ser about 2 years ago

Hello,

I'm currently developing a web app to show realtime streams, keep a record of everything that is played and then generate stats using those records.

I love how Tautulli does this for Plex, and I really thought this fits perfectly with tvheadend, to track user behavior, favorite channels, etc.

It is now available to try or contribute on: https://github.com/jbonet/tvhstats

I have released prebuilt docker images so the setup process should now run smoothly. Available at: https://hub.docker.com/r/jbonet4/tvhstats

This is an preview of how it looks. It has now evolved a little bit (not too much):

  • Currently implemented:
  • Active subscriptions with live update .
  • Some stats .
  • History with pagination so its not too heavy.
  • Graphs

Replies (81)

RE: TVHStats: An activity monitor / history tracker for Tvheadend - Added by Kac S about 1 year ago

Hi, I really wanted to try your work as it's exactly what I need. Unfortunately, the address cr.jbonet.xyz/jbonet/tvhstats gives me 502 error when trying to get the stack running.

RE: TVHStats: An activity monitor / history tracker for Tvheadend - Added by ry ser about 1 year ago

Kac S wrote:

Hi, I really wanted to try your work as it's exactly what I need. Unfortunately, the address cr.jbonet.xyz/jbonet/tvhstats gives me 502 error when trying to get the stack running.

Hello, can you try now? The registry was down.

I will publish the images to DockerHub to avoid this issue when I have some time :)

Edit: It is now available at: https://hub.docker.com/r/jbonet4/tvhstats too.

RE: TVHStats: An activity monitor / history tracker for Tvheadend - Added by ry ser about 1 year ago

Kac S wrote:

Hi, I really wanted to try your work as it's exactly what I need. Unfortunately, the address cr.jbonet.xyz/jbonet/tvhstats gives me 502 error when trying to get the stack running.

Were you able to try it?

RE: TVHStats: An activity monitor / history tracker for Tvheadend - Added by Kac S about 1 year ago

ry ser wrote:

Kac S wrote:

Hi, I really wanted to try your work as it's exactly what I need. Unfortunately, the address cr.jbonet.xyz/jbonet/tvhstats gives me 502 error when trying to get the stack running.

Were you able to try it?

Hello, yes, I just tried it.
Docker compose built fine after changing to another host port (default port 8080 is already in use on my host).

Unfortunately, not everything is working for me.
The History and Graphs page are working fine, showing what they supposed to show.

"Home" doesn't show any active streams or statistics, only spinning circle.

My docker compose file looks like this:

services:
  tvhstats:
    image: cr.jbonet.xyz/jbonet/tvhstats:latest
    depends_on:
      - db
    environment:
      - DATABASE_URL=ecto://postgres:postgres@db/tvhstats
      - PHX_HOST=192.168.1.10 # unraid host ip
      - PHX_ALLOWED_HOSTS=192.168.1.10:8181 # not sure what goes here, trying with unraid ip and host port
      - TVHSTATS_TVHEADEND_HOST=192.168.1.89 # tvh server
      - TVHSTATS_TVHEADEND_PORT=9981 # port of tvh server
      - TVHSTATS_TVHEADEND_USE_HTTPS=0
      - TVHSTATS_TVHEADEND_USER=admin #admin user of tvh
      - TVHSTATS_TVHEADEND_PASSWORD=pass #admin pass of tvh
      # Please set a secure string
      - SECRET_KEY_BASE=securestringlongerthan64
      # Optional parameters, these are the default values.
    ports:
      - "8182:80" 

  # Database does not need to be run from docker, added for convenience.
  db:
    image: postgres:latest
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=tvhstats
    volumes:
      - db:/var/lib/postgresql/data
volumes:
  db:

I'm running it via docker compose on my unraid server

RE: TVHStats: An activity monitor / history tracker for Tvheadend - Added by ry ser about 1 year ago

Kac S wrote:

ry ser wrote:

Kac S wrote:

Hi, I really wanted to try your work as it's exactly what I need. Unfortunately, the address cr.jbonet.xyz/jbonet/tvhstats gives me 502 error when trying to get the stack running.

Were you able to try it?

Hello, yes, I just tried it.
Docker compose built fine after changing to another host port (default port 8080 is already in use on my host).

Unfortunately, not everything is working for me.
The History and Graphs page are working fine, showing what they supposed to show.

"Home" doesn't show any active streams or statistics, only spinning circle.

My docker compose file looks like this:

[...]

I'm running it via docker compose on my unraid server

Could you create an issue on github so we can discuss it better?

Post any logs you have, if there are errors, also the allowed hosts should be the address you use to access the service, so I guess it would be 192.168.1.10:8182

RE: TVHStats: An activity monitor / history tracker for Tvheadend - Added by Kac S about 1 year ago

Thanks for quick response.
No need to open an issue, "8181" was a typo. After changing to correct port (8182) everything seems to be working as expected.

I'm going to use your app for statistic purposes, as this is a feature that is missing from tvheadend.
Thanks for developing and looking forward to future updates!

(76-81/81)