homarr
homarr copied to clipboard
how to feetch default config programmatically for app integration?
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
- [X] You've read the docs
- [X] You've checked for duplicate issues
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
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.