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
Add endpoint to restart Frigate #8440
Add endpoint to restart Frigate #8440
Conversation
The only means of restarting Frigate remotely is to issue a restart topic on the server's websocket. It's convenient to also expose this capability via HTTP endpoint.
✅ Deploy Preview for frigate-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Isn't it better to add some magic key in the body of the request? I foresee a lot of browsers reloading this page, resulting in unwanted restarts. |
I see you're using a post request, that will help. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be added to the api page in the docs
This PR:
/api/restart
to restarts Frigate.The only means of restarting Frigate remotely is to issue a restart topic on the server's websocket. It's
convenient to also expose this capability via HTTP endpoint. I'm a Home Assistant user and use Frigate frequently to recast my RTSP feeds. I find that I have to restart occasionally to get the feeds back up. Adding this capability would help me automate restarting Frigate.
Open to any suggestions for a way to restart Frigate restfully if there is a better path.