Capitalize the Frigate word (#5044)

This commit is contained in:
Felipe Santos
2023-01-13 10:18:15 -03:00
committed by GitHub
parent cf2466c8c1
commit 95596b39fd
23 changed files with 41 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
"""Handle communication between frigate and other applications."""
"""Handle communication between Frigate and other applications."""
import logging
@@ -29,7 +29,7 @@ class Communicator(ABC):
class Dispatcher:
"""Handle communication between frigate and communicators."""
"""Handle communication between Frigate and communicators."""
def __init__(
self,

View File

@@ -747,7 +747,7 @@ def config_save():
jsonify(
{
"success": False,
"message": f"Could not write config file, be sure that frigate has write permission on the config file.",
"message": f"Could not write config file, be sure that Frigate has write permission on the config file.",
}
),
400,
@@ -756,8 +756,8 @@ def config_save():
try:
restart_frigate()
except Exception as e:
logging.error(f"Error restarting frigate: {e}")
return "Config successfully saved, unable to restart frigate", 200
logging.error(f"Error restarting Frigate: {e}")
return "Config successfully saved, unable to restart Frigate", 200
return "Config successfully saved, restarting...", 200

View File

@@ -148,7 +148,7 @@ class BirdsEyeFrameManager:
self.yuv_shape = (height * 3 // 2, width)
self.frame = np.ndarray(self.yuv_shape, dtype=np.uint8)
# initialize the frame as black and with the frigate logo
# initialize the frame as black and with the Frigate logo
self.blank_frame = np.zeros(self.yuv_shape, np.uint8)
self.blank_frame[:] = 128
self.blank_frame[0 : self.frame_shape[0], 0 : self.frame_shape[1]] = 16
@@ -176,7 +176,7 @@ class BirdsEyeFrameManager:
x_offset : x_offset + transparent_layer.shape[0],
] = transparent_layer
else:
logger.warning("Unable to read frigate logo")
logger.warning("Unable to read Frigate logo")
self.frame[:] = self.blank_frame

View File

@@ -36,7 +36,7 @@ class FrigateWatchdog(threading.Thread):
detector.detect_process is not None
and not detector.detect_process.is_alive()
):
logger.info("Detection appears to have stopped. Exiting frigate...")
logger.info("Detection appears to have stopped. Exiting Frigate...")
restart_frigate()
logger.info(f"Exiting watchdog...")