H
Homarr5d ago
Rezst

Tdarr integration - Empty statistics tab

Hey there, I have a Tdarr instance running and have added the integration to Homarr. In the widget on the dashboard I can see the Workers, Queue and Health checks but my "Statistics" tab always displays Empty I know that the widget only updates if I refresh the page, but it seems like no info is being pulled from Tdarr I have tested if the API works and if I use the Tdarr API I do recieve the data back curl -X POST http://192.168.2.186:8265/api/v2/stats/get-pies -H "Accept: application/json, text/plain, /" -H "Content-Type: application/json" -d '{"data":{"libraryId":""}}' My logs in Homarr itself also display no Error or Warnings for the Tdarr integration I'm wondering if I am doing something wrong? For the integration I've just added the local IP of the Tdarr server I hope the images I've attached can help find a problem in my setup
No description
No description
No description
No description
No description
Solution:
Thanks for debugging and sorry for the late reply. Can you submit a bug report on GitHub? Alternatively, since you debugged it so deeply, you may also contribute a fix if you're willing to. Thank you!...
Jump to solution
8 Replies
Cakey Bot
Cakey Bot5d ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Rezst
RezstOP5d ago
Homarr Version: v1.16.0 Config: docker-compose
version: "3"
#---------------------------------------------------------------------#
# Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:v1.16.0
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /home/pi/homarr/appdata:/appdata
environment:
- SECRET_ENCRYPTION_KEY={REDACTED}
ports:
- '7575:7575'
version: "3"
#---------------------------------------------------------------------#
# Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:v1.16.0
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /home/pi/homarr/appdata:/appdata
environment:
- SECRET_ENCRYPTION_KEY={REDACTED}
ports:
- '7575:7575'
Rezst
RezstOP5d ago
I've done a bit more debugging and it seems to me there is a bug somewhere The API calls made in the source code are all working when I try them as docker exec https://github.com/homarr-labs/homarr/blob/dev/packages/integrations/src/media-transcoding/tdarr-integration.ts The statistics call returns all but the pie data
curl -X POST http://192.168.2.186:8265/api/v2/cruddb -H "Accept: application/json, text/plain, /" -H "Content-Type: application/json" -d '{"data":{"collection":"StatisticsJSONDB", "mode":"getById", "docID":"statistics"}}'
curl -X POST http://192.168.2.186:8265/api/v2/cruddb -H "Accept: application/json, text/plain, /" -H "Content-Type: application/json" -d '{"data":{"collection":"StatisticsJSONDB", "mode":"getById", "docID":"statistics"}}'
The issue might be in that the "pies" data is empty when calling "/cruddb" instead of "stats/get-pies"
GitHub
homarr/packages/integrations/src/media-transcoding/tdarr-integratio...
A modern and easy to use dashboard. 14+ integrations. 10K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration. - homarr-labs/homarr
No description
Rezst
RezstOP5d ago
Seems like the Tdarr API has changed since the Homarr integration was added: https://github.com/HaveAGitGat/Tdarr/issues/1072 the old API used in the Homarr integration does not work anymore
GitHub
Library Stats API Changes · Issue #1072 · HaveAGitGat/Tdarr
First, thank you for Tdarr! It's great and I use it myself. I am unsure where to create this since it is not technically a bug but hope it fits here. Describe the issue I help maintain a small ...
Solution
Manicraft1001
Manicraft10015d ago
Thanks for debugging and sorry for the late reply. Can you submit a bug report on GitHub? Alternatively, since you debugged it so deeply, you may also contribute a fix if you're willing to. Thank you!
Rezst
RezstOP5d ago
I've never actually done a PR for any open source project, but I will try and figure it out. This seems like a good entry issue to make a first PR
Manicraft1001
Manicraft10015d ago
You'll have to create an issue anyway. Are you familiar with Node.js at all then? Fixing this will require programming knowledge. Also, Can I mark this issue as resolved, since we do not track issues on Discord?
Rezst
RezstOP5d ago
Yeah I'm familiar with Node.js / programming in general so I think it will be fine. You can close this here I'll open an issue on GitHub

Did you find this page helpful?