homer icon indicating copy to clipboard operation
homer copied to clipboard

Sabnzbd Stats Support

Open fmunteanu opened this issue 2 years ago • 1 comments

Thank you for the great and simple product, do you plan adding support for Sabnzbd Stats?

fmunteanu avatar Aug 05 '22 06:08 fmunteanu

No, if you want crap like that get Heimdall. We don't need to add bloat to this.

ochompsky avatar Aug 09 '22 03:08 ochompsky

It would be nice to be able to see these stats as well.

SABnzbd does have API documentation that may prove useful if it's to be implemented.

No, if you want crap like that get Heimdall. We don't need to add bloat to this.

qBittorrent has this kind of integration. It would be logical to have the same kind of functionality for another popular download client as well.

image

SkilledAlpaca avatar Nov 19 '22 00:11 SkilledAlpaca

I just added a PR for SABnzbd support to show the number of slots occupied (number of downloads).

mbentley avatar Nov 19 '22 00:11 mbentley

I'd add more metrics but I figured that I could start with some the basics as just a simple download queue number was easy enough. More data could be scraped, probably without too much trouble but I am not great as CSS formatting so that might be a bit harder for me.

mbentley avatar Nov 19 '22 00:11 mbentley

Nice job, thank you for the quick fix! Download queue is a very good start. @bastienwirtz can you please merge the PR?

fmunteanu avatar Nov 19 '22 07:11 fmunteanu

I also just added another change to add an optional interval to update the value after looking at the qTorrent custom service. I might be able to re-use some code from the qTorrent example to get the download speed from SABnzbd but I might not be able to get to that until next week.

I also might try to add update intervals for a few other custom services as well as it was really straight forward.

mbentley avatar Nov 19 '22 10:11 mbentley

@bastienwirtz when do you plan to release the new version, including the merged changes?

fmunteanu avatar Nov 30 '22 01:11 fmunteanu

You got it @fmunteanu :) https://github.com/bastienwirtz/homer/releases/tag/v22.11.2

bastienwirtz avatar Nov 30 '22 08:11 bastienwirtz

@mbentley thank you for the beautiful work. I installed the v22.11.2 and everything works as expected. Do you have any planned improvements?

fmunteanu avatar Dec 02 '22 15:12 fmunteanu

I had been messing around with a few things locally, such as getting the download speed but I was struggling with where exactly to put it. The nice thing is that you get quite a bit of useful information from the same API call. My question would be what information, outside of download speed, may be useful, if anything.

mbentley avatar Dec 02 '22 15:12 mbentley

You plan to add it under the name, I presume, like qBittorrent? I think is enough, it will be uniform with other tools. I like that you have the number of downloads into upper right corner, like the rest of tools.

fmunteanu avatar Dec 02 '22 15:12 fmunteanu

Yeah, that would be the most likely location. I hadn't taken the time to look at what anything else was doing outside of qBittorrent though.

mbentley avatar Dec 02 '22 16:12 mbentley

If you just copy the qBittorrent style, it would be easy to implement, I think. Anything else might be overkill, number of downloads and speed is perfect.

fmunteanu avatar Dec 02 '22 21:12 fmunteanu

I was really hoping Homer would offer these types of "at a glance" details such as download speed, how much is in queue, etc, so it could be a viable alternative to Heimdall.

1337Reaper avatar Jun 24 '23 06:06 1337Reaper

I was playing with this a bit this morning and I am not sure about implementing it the same way as qBittorrent. At least for me, I have text under each service. I am not sure if @bastienwirtz would be OK with an implementation like this but it's fairly basic to be able to put the speed in another corner like this:

4 colums: screenshot 2023-06-24 at 10 29 12 AM

3 columns: screenshot 2023-06-24 at 10 28 46 AM

I was also thinking of adding a config option to disable the speed:

rateDisabled: true

Which then it would just look as it is today: screenshot 2023-06-24 at 10 33 15 AM

mbentley avatar Jun 24 '23 14:06 mbentley

I created https://github.com/bastienwirtz/homer/pull/661 for at least getting feedback.

mbentley avatar Jun 24 '23 14:06 mbentley