-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Feature: Jellystat widget #5185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I have not added any documentation yet because there's a few things I'd like to discuss with a maintainer first. |
|
I have not used homepage/src/components/services/widget/container.jsx Lines 34 to 52 in 0a1bf3b
Is this acceptable or should I look into a way of using widget.fields like every other widget does?
|
shamoon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment about post.
And yes in general this needs to conform with other widgets, using fields etc. how you’ve coded this will break things like translations etc
You can't translate the name of the library, that's part of the problem. |
Ah, ok I kinda get what you mean here, the blocks are determined by the users install. I havent looked in detail yet but what other similar services do is to provide data that is more generic i.e. total up the # of videos / songs / whatever (I dont even know what jellystat is for yet, again havent looked) |
Jellystat is Jellyfin's version of Tautulli. It provides statistics for many aspects of a Jellyfin server, one of which being user playback count. Nothing is stopping me from contributing first a new endpoint to Jellystat and use that here, but there's no guarantee that it will be merged (or when). |
Thats of course your call. I agree it could be nicer / easier to have some kind of overall 'stats' endpoint (many many projects do something like this) but yea I dont know how active / open that project is. |
|
CyferShepard/Jellystat#378 |
|
This is great and yea the code is much cleaner! I guess the only thing is as you said, we should at least wait until the API endpoint is released (and we'll be able to note the min required version in the docs). If it's going to be a few weeks might be better to close this and re-open when ready. Thanks again for the effort on both ends |
|
just curious if this widget should also support streamystats or if that should be it's own fr? |
|
That's a completely different service, unless it has a 100% identical API endpoint (which is extremely unlikely) it's not supported. |
just checked the API, doesn't look like it does. I'll make a separate fr for it :) |
|
@Zlendy just holler when they release your change, this can probably be reopened if it’s not too long from now. Thanks again. |
|
@shamoon The required endpoint landed in the new jellystat release Please reopen this PR so that I can continue working on this feature |
6b7fa49 to
a3c351d
Compare
|
I have rebased this branch to |
380d782 to
1b4391c
Compare
shamoon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, much cleaner. Tiny stuff here
src/utils/config/service-helpers.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be inserted alphabetical (ish) by widget name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to apply this suggestion, but honestly there are far too many widgets in the wrong order to be sure this is what you meant.
833db71b8770678c3c3efffe62286bef034c632e
shamoon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Sorry, but I'm running the version 1.2.0 but I cannot find this widget. Will it be released in a future version? |
|
Yes. Or you can run dev. |
Sorry what do you mean with "run dev" ? could you explain me pls :-) |
|
Change the docker image tag to |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |



Proposed change
Implements #1333
This widget shows the playback count from user-specified libraries in the last
ndays.It uses the API endpoint
http://jellystat.host.or.ip/stats/getViewsByLibraryTypeimplemented in v1.1.16Type of change
Checklist:
Jellystat
Usage
Generate an API key (http://jellystat.host.or.ip/settings)
Add this to
services.yamlScreenshots