API to send POSTs from Homepage? Or way to run local scripts? #3456
Replies: 4 comments
-
Thanks for posting a discussion about homepage here on GitHub. Homepage now uses a fancy new AI tool thanks to our friends at Glime, so the answer below is the AI bot's attempt to answer your question. If you feel it's sufficient you can mark the answer and close this post, otherwise feel free to leave it open of course! Thanks for using Homepage! ❤️ It seems like you're trying to configure a custom API call within the Homepage dashboard to trigger an Rclone sync operation. Based on the information you've provided, there are a few things to consider:
- Tools:
- Copy Server:
href: http://my-nas:3000/triggerRcloneSync
icon: https://path.to/icon.png
Unfortunately, without direct support for custom API POST requests within Homepage, you'll need to implement an intermediary service to achieve your goal. If you're not comfortable setting up such a service, you might need to consider other dashboard solutions that support custom scripts or API calls directly. This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
Okay, did not expect that detailed bot response about my exact question 😂 This thread now becomes a question about whether there are any out-of-the box APIs that can be the middleman between Homepage and Rclone. Updating the title. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically closed due to inactivity. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
-
This discussion 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. |
Beta Was this translation helpful? Give feedback.
-
Description
Edit: See the bot response down below. I'm now looking for recommendations on an API service to use with Homepage to turn its GET requests into POST to Rclone. OR, any ways in Homepage to click a link and run a local script on my NAS.
Hi, could really use some help with this. I've asked in several places, including the Discord. I use Rclone to copy a remote server to my NAS, where homepage is installed. I want to be able to run the copy from homepage.
I looked at using OliveTin to just run scripts right on my NAS, but that means adding another dashboard and it's more than I need.
Use case: On homepage, click a link to run a custom API call: a POST to rclone's sync endpoint with a few custom params and basic authentication (required for the call). This works in Postman and returns a jobid, after which the copy runs.
I don't expect anyone to read the Rclone docs to help me, but here's the working cURL.
And here's my
services.yaml
which I'm definitely messing up:That gets me this in the console:
That's obviously never going to work since it's running a GET and endpoint=null, but I don't know how to fix it.
Thanks for any help!
homepage version
v0.8.13
Installation method
Docker
Configuration
No response
Container Logs
No response
Browser Logs
No response
Troubleshooting
N/A
Beta Was this translation helpful? Give feedback.
All reactions