mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-13 13:47:36 +02:00
Added a basic 200 response to the root / URL for health check integrations (e.g. docker-compose)
This commit is contained in:
parent
9803c8ee59
commit
8e98f8e9c0
5
detect_objects.py
Normal file → Executable file
5
detect_objects.py
Normal file → Executable file
@ -81,6 +81,11 @@ def main():
|
|||||||
return Response(imagestream(camera_name),
|
return Response(imagestream(camera_name),
|
||||||
mimetype='multipart/x-mixed-replace; boundary=frame')
|
mimetype='multipart/x-mixed-replace; boundary=frame')
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def ishealthy():
|
||||||
|
# return a healh
|
||||||
|
return "Frigate is running. Alive and healthy!"
|
||||||
|
|
||||||
def imagestream(camera_name):
|
def imagestream(camera_name):
|
||||||
while True:
|
while True:
|
||||||
# max out at 5 FPS
|
# max out at 5 FPS
|
||||||
|
Loading…
Reference in New Issue
Block a user