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

Create API endpoint to query if camera is reachable #1498

Open
PetePeter opened this issue Dec 4, 2024 · 1 comment
Open

Create API endpoint to query if camera is reachable #1498

PetePeter opened this issue Dec 4, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@PetePeter
Copy link

PetePeter commented Dec 4, 2024

I'd like to setup a HA automation to try reset a smartswitch that my camera is plugged in to, in case it sees my camera as being unreachable.

So, i tried

http://lipaddress:1984/api/frame.jpeg?src=alfresco_hi

in curl when the camera is off.
and .... go2rtc returns 200 with a content length of 0.
It should return a different http code, such as 204.

Alternatively, please make a new end point to check for camera reachable or not.

Thank you

@PetePeter
Copy link
Author

workaround. use the frame.mp4 endpoint which returns 500 when camera not available

@AlexxIT AlexxIT added the enhancement New feature or request label Dec 4, 2024
@AlexxIT AlexxIT self-assigned this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants