Skip to content
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

how to feetch default config programmatically for app integration? #1511

Closed
2 tasks done
ihaddy opened this issue Oct 27, 2023 · 3 comments
Closed
2 tasks done

how to feetch default config programmatically for app integration? #1511

ihaddy opened this issue Oct 27, 2023 · 3 comments
Labels
🤔 Idea Tell us your ideas

Comments

@ihaddy
Copy link

ihaddy commented Oct 27, 2023

Description

Hello! Awesome app!

A while ago I wrote a node/express app that autodiscovers new dockerized/non-dockerized webservers/webapps on a network and adds them to organizr v2 and id like to make it work with homarr now that ive switched to using this app, but i'm hiting a road block in trying to get the currently in use config.

So i may have missed it or i may be doing something incorrectly as i've admittedly never worked with trpc before this app, but when i was inspecting the code i say a config.byName method that i thought i could invoke like the config.all method via get request and return the config object, however when attempting it i get

{ error: { json: { message: "No "query"-procedure on path "config.byName"", code: -32004, data: { code: "NOT_FOUND", httpStatus: 404, path: "config.byName", zodError: null } } } }

would you guys be able to point me in the direction? If there's not a direct endpoint to return the currently selected config object so i can programmaticall add or subtract apps to it, is there any other way you'd recommend going about this?

The goal is to ultimately have my network scanning program be able to dynamically add or remove apps to homarr in the case that i create or remove new docker/kubernetes containers or nginx webservers from my network, and if there's interest in it i would definitely open source it!

Please tick the boxes

@ihaddy ihaddy added the 🤔 Idea Tell us your ideas label Oct 27, 2023
@ajnart
Copy link
Owner

ajnart commented Nov 11, 2023

Hello, sorry for the late reply. At the moment this is quite tricky since we are using tRPC but I could look into it.
Since you have programming experience, wouldn’t you like to help us achieve #1468 via #67 or another method ?
It would be a lot easier to have the feature you’ve described already in homarr and we’d love to see new contributors

Copy link

Hello 👋, this issue has been open for 60 without activity. Please close this issue if it's no longer relevant or has been resolved. Still relevant? Simply reply and I'll mark it as active.

@Meierschlumpf
Copy link
Collaborator

Moved to homarr-labs/homarr#2482

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Homarr Kanban Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Idea Tell us your ideas
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants