mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
improved user experience
This commit is contained in:
parent
d8c3ef7521
commit
31cd2a5541
@ -519,14 +519,14 @@ def clipped(obj, frame_shape):
|
||||
return False
|
||||
|
||||
|
||||
def restart_frigate(mqtt_client, topic_prefix, from_ui = 0):
|
||||
def restart_frigate(mqtt_client, topic_prefix):
|
||||
|
||||
def on_publish(client,userdata,result):
|
||||
time.sleep(0.67)
|
||||
os.kill(os.getpid(), signal.SIGTERM)
|
||||
|
||||
mqtt_client.on_publish = on_publish
|
||||
mqtt_client.publish(f"{topic_prefix}/restarted", int(from_ui))
|
||||
mqtt_client.publish(f"{topic_prefix}/restarted", 1)
|
||||
|
||||
|
||||
class EventsPerSecond:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user