[Support]: Is there a way to detect if a stream or snapshot is down in go2rtc rest interface #10118
-
Describe the problem you are havingI want to run a python stats script using the go2rtc rest interface availabe at the url "http://:5000/api/go2rtc/streams by parsing the json and processing it. I am looking for something similar to what is in the go2rtc web interrface as a 1 or 0 to indicate the stream state. Does this exist in the current interface? Version0.13.2-6476f8a Frigate config filenot important Relevant log outputnot important FFprobe output from your cameranot important Frigate statsNo response Operating systemOther Linux Install methodDocker Compose Coral versionUSB Network connectionWired Camera make and modelnot important Any other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There's a Frigate REST API endpoint for cameras at |
Beta Was this translation helpful? Give feedback.
-
great, thanks. I see it on the rest api and I just pulled up MQTT explorer and see it is being sent to my Mosquito instance as well. The MQTT stuff might be the way to go. I can massage it with NodeRed into domoticz messages and pull it into a device. I don't use HA, just frigate. |
Beta Was this translation helpful? Give feedback.
There's a Frigate REST API endpoint for cameras at
GET /api/stats
that can be used to accomplish something similar using thecamera_fps
attribute (i.e. a value of zero (0) would suggest a problem with the camera or input stream).https://docs.frigate.video/integrations/api/#get-apistats