From 8e98f8e9c0136d7573f69d1c96a49c4ea8dd0880 Mon Sep 17 00:00:00 2001 From: ivelin Date: Thu, 22 Aug 2019 12:03:10 -0500 Subject: [PATCH] Added a basic 200 response to the root / URL for health check integrations (e.g. docker-compose) --- detect_objects.py | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 detect_objects.py diff --git a/detect_objects.py b/detect_objects.py old mode 100644 new mode 100755 index a3dfb2215..83bd65062 --- a/detect_objects.py +++ b/detect_objects.py @@ -81,6 +81,11 @@ def main(): return Response(imagestream(camera_name), 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): while True: # max out at 5 FPS