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: tvheadend stats app - Added by saen acro about 2 years ago
Is it possible to be added some statistic counters
How many clients per hour/day
Top channels
Charts
some SQLite DB
RE: tvheadend stats app - Added by ry ser about 2 years ago
yes that would be possible to have, as every play would be stored, stats can be calculated.
At the moment I'm using postgres as db.
I plan to have top channels, top users and top players for now.
Once I have the stats, charts are the next thing Id like to add, such as concurrent users at a given time, daily stream count, etc.
RE: tvheadend stats app - Added by Jonas Lang about 2 years ago
It would probably suit a user who needs to monitor their bandwidth usage on the network. It certainly looks like an interesting project for TVH.
RE: tvheadend stats app - Added by saen acro about 2 years ago
PostgreSQL is too huge need installation etc.
https://www.sqlite.org/zeroconf.html
https://zetcode.com/php/sqlite3/
EPG in TVH use it already
RE: tvheadend stats app - Added by ry ser about 2 years ago
saen acro wrote:
PostgreSQL is too huge need installation etc.
https://www.sqlite.org/zeroconf.html
https://zetcode.com/php/sqlite3/EPG in TVH use it already
I'm building it in Elixir/Phoenix, I'll look into sqlite, but at the moment I'm building it to be run from docker.
RE: tvheadend stats app - Added by saen acro about 2 years ago
Even better size is hundreds megabytes smaller.
Docker pseudo virtualization why you need this?
.hddddddddddddddddddddddh. saen@wafer
:dddddddddddddddddddddddddd: ----------
/dddddddddddddddddddddddddddd/ OS: Alpine Linux v3.16 i686
+dddddddddddddddddddddddddddddd+ Host: Uknown 1.0
`sdddddddddddddddddddddddddddddddds` Kernel: 5.15.64-0-lts
`ydddddddddddd++hdddddddddddddddddddy` Uptime: 24 days, 6 hours, 40 mins
.hddddddddddd+` `+ddddh:-sdddddddddddh. Packages: 387 (apk)
hdddddddddd+` `+y: .sddddddddddh Shell: bash 5.1.16
ddddddddh+` `//` `.` -sddddddddd Terminal: /dev/pts/0
ddddddh+` `/hddh/` `:s- -sddddddd CPU: Intel Celeron 400MHz (1) @ 400MHz
ddddh+` `/+/dddddh/` `+s- -sddddd GPU: 01:00.0 Trident Microsystems CyberBlade/i1
ddd+` `/o` :dddddddh/` `oy- .yddd Memory: 28MiB / 486MiB
hdddyo+ohddyosdddddddddho+oydddy++ohdddh Disk: SanDisk SDCFX3-4: 1.6GiB / 3.83 GiB
.hddddddddddddddddddddddddddddddddddddh.
`yddddddddddddddddddddddddddddddddddy`
`sdddddddddddddddddddddddddddddddds`
+dddddddddddddddddddddddddddddd+
/dddddddddddddddddddddddddddd/
:dddddddddddddddddddddddddd:
.hddddddddddddddddddddddh.
Where to put Docker crap?
RE: tvheadend stats app - Added by ry ser about 2 years ago
saen acro wrote:
Even better size is hundreds megabytes smaller.
Docker pseudo virtualization why you need this?
[...]
Where to put Docker crap?
Well Im building it for myself, if you don't like it, you don't have to use it.
Also, it doesn't need to run along tvheadend, can be run on any server as it just polls the API.
RE: tvheadend stats app - Added by saen acro about 2 years ago
Take it as constructive criticism.
I prefer to work in real OS,
Not depending on other software layers.
This is always faster and less resource using.
RE: tvheadend stats app - Added by ry ser about 2 years ago
saen acro wrote:
Take it as constructive criticism.
I prefer to work in real OS,
Not depending on other software layers.
This is always faster and less resource using.
ok but dont you see i'm still in early development of a hobby project and you are telling me how I should distribute it, makes no sense at this stage
RE: tvheadend stats app - Added by Jonas Lang about 2 years ago
ry ser wrote:
saen acro wrote:
Take it as constructive criticism.
I prefer to work in real OS,
Not depending on other software layers.
This is always faster and less resource using.ok but dont you see i'm still in early development of a hobby project and you are telling me how I should distribute it, makes no sense at this stage
I really do advise you continue with your efforts. You work in an environment you are comfortable with and remember the fruits of your efforts will benefit you and hopefully others too. Well done.
RE: tvheadend stats app - Added by Flole Systems about 2 years ago
@saen acro: Can you finally stop treating people who build open source software like they owe you something? That behavior is highly inappropriate. If you want something then you're free to create a fork and open a PR or pay the developer to implement it or, if the developer is very very kind they might even do it for free, but you should not expect that at all. If your hardware is not sufficient and you want to use it you need to upgrade your hardware or attempt to optimize the project yourself.
BTW: Calling something "crap" is not constructive.
RE: tvheadend stats app - Added by Jonas Lang about 2 years ago
Flole Systems wrote:
@saen acro: Can you finally stop treating people who build open source software like they owe you something? That behavior is highly inappropriate. If you want something then you're free to create a fork and open a PR or pay the developer to implement it or, if the developer is very very kind they might even do it for free, but you should not expect that at all. If your hardware is not sufficient and you want to use it you need to upgrade your hardware or attempt to optimize the project yourself.
BTW: Calling something "crap" is not constructive.
Thankfully I’m not the only person who finds his behaviour as offensive. This is consistent throughout any posts he decides to comment on recently
I assume there’s currently no moderation on the forum otherwise his comments would have been removed. I had to delete one of my posts as a result of some of his offensive comments he posted.
RE: tvheadend stats app - Added by Flole Systems about 2 years ago
You are right, there is currently almost no moderation on the forum. If you want to volunteer for that it'd be really appreciated. Just please only use post deletion as last resort if someone continues to behave in an inappropriate manner even after asking them nicely to stop it
RE: tvheadend stats app - Added by Jonas Lang about 2 years ago
Of course. I’d never suppress opinion from anyone, positively or negatively. What I can’t tolerate is offensive behaviour.
Everyone who posts here generally have something to offer and these offerings have to be encouraged not dismissed.
Yes I’d gladly offer my time to moderate based on what you have stated.
RE: tvheadend stats app - Added by Flole Systems about 2 years ago
If I'm not mistaken you should be able to delete/edit posts and comments in tickets now. Feel free to delete this post if you want to test if it works properly.
RE: tvheadend stats app - Added by Jonas Lang about 2 years ago
- Flole Systems wrote:
You are right, there is currently almost no moderation on the forum. If you want to volunteer for that it'd be really appreciated. Just please only use post deletion as last resort
RE: tvheadend stats app - Added by Jonas Lang about 2 years ago
Please do. Your project looks very interesting.
RE: tvheadend stats app - Added by saen acro about 2 years ago
Flole Systems wrote:
BTW: Calling something "crap" is not constructive.
The only thing I call CRAP is DOCKER.
This pseudo-virtualization create more problems then anything else.
Network translation, device translation, OS in OS, memory consumption, extreme slow load...
As k8s is effective in big cluster solution, not on single node unit.
Who wants to use it, to use it, I will not.
Product with ry ser create looks promising and useful.
I have given my suggestions.
That someone hasn't read them is another thing.
There is nothing bad to put in:
/usr/share/tvheadend/src/webui/static/
and use it from there.
But this is other FR.
RE: tvheadend stats app - Added by Jonas Lang about 2 years ago
This is not the first instance of your rudeness. You fool nobody. The admin has picked you up on this now and you’re trying to backtrack. In fact you’re even challenging the admin now. Please do not attempt to deny this as there are a number examples of your rudeness recently. You have been warned.
RE: tvheadend stats app - Added by Dave H about 2 years ago
FWIW, I'll offer my opinion. Saen can be pretty rude. But I don't think there's any malice there. It's just opinion without any filters. So yes, I'd like him (?) to be more polite, but I do think his contributions are generally helpful.
Edit: and just to say that personally I share his opinion of Docker
RE: tvheadend stats app - Added by ry ser about 2 years ago
Updated with new progress, lets see what you think!
RE: tvheadend stats app - Added by Flole Systems about 2 years ago
I think it looks a lot better than the interface Tvheadend currently has to offer to be honest. Maybe it's a good starting point for a complete rewrite of the Webinterface, depending on what options the framework used is offering.
RE: tvheadend stats app - Added by Poul Kalff about 2 years ago
Fantastic work, ry ser. Keep it up, tvheadend certainly could use a new webinterface.... I was actually working on one myself, years ago, but never quite completed it. It was also called 'crap' and worse things by Saen Acro, by the way, so don't be discouraged by that... ;-)