skrashevich / hassio-addons

15 stars 20 forks source link

Addon dies after some minutes #2

Closed jmtatsch closed 1 year ago

jmtatsch commented 1 year ago

Hi,

I migrated from a docker-composed launched version of the former double-take developer to your hassio addon. The services mqtt, compreface and frigate are green. Unfortunately double take dies after maybe a minute while leaving not really helpful logs (at least for me):

info: Double Take v1.13.10
verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
verbose: api listening on :3000
info: MQTT: connected
info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
verbose: Incominng event from frigate: {"before": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289864.928865, "snapshot": {"frame_time": 1688289863.901216, "box": [1017, 346, 1060, 399], "area": 2279, "region": [960, 292, 1120, 452], "score": 0.7265625, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.734375, "box": [1021, 348, 1059, 399], "area": 1938, "ratio": 0.7450980392156863, "region": [959, 292, 1119, 452], "stationary": true, "motionless_count": 51, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289895.733236, "snapshot": {"frame_time": 1688289895.733236, "box": [1021, 346, 1062, 399], "area": 2173, "region": [969, 265, 1129, 425], "score": 0.83203125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.83203125, "box": [1021, 346, 1062, 399], "area": 2173, "ratio": 0.7735849056603774, "region": [969, 265, 1129, 425], "stationary": true, "motionless_count": 201, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
verbose: 1688287439.639335-3ewtbm - bird label not in (person)

Is some config of mine outdated?

skrashevich commented 1 year ago

It's logs from HA interface (Addon -> Logs tab) or from Double-Take Web interface? And what do you mean by "Dies" - does it restart or stop working until it is manually restarted?

jmtatsch commented 1 year ago

From docker logs which is the same as Addon -> Logs I think.

jmtatsch commented 1 year ago

It stops working. Every time I use the shortcut on the HA sidemenu I get "Add-on is not running. Please start it first". Watchdog is enabled though.

skrashevich commented 1 year ago

Please, show raw contents of your's double-take config.yml file (don't forget to hide passwords), I'll try to reproduce this error. Also, maybe there's something interesting in the supervisor's logs or system dmesg? maybe DT process is killed by OOM killer, for example?

jmtatsch commented 1 year ago

Supervisor logs

23-07-02 11:22:05 INFO (SyncWorker_15) [supervisor.docker.interface] Cleaning addon_0a217ee8_double-take application
23-07-02 11:22:05 INFO (SyncWorker_15) [supervisor.docker.addon] Starting Docker add-on 0a217ee8/amd64-addon-double-take with version 1.13.10
23-07-02 11:22:21 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Double Take is failed, restarting...
23-07-02 11:22:21 INFO (SyncWorker_10) [supervisor.docker.interface] Cleaning addon_0a217ee8_double-take application
23-07-02 11:22:22 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on 0a217ee8/amd64-addon-double-take with version 1.13.10
23-07-02 11:22:27 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-07-02 11:22:27 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-07-02 11:22:27 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-07-02 11:22:27 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-07-02 11:22:33 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-07-02 11:22:34 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-07-02 11:22:34 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-07-02 11:22:39 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Double Take is failed, restarting...
23-07-02 11:22:39 INFO (SyncWorker_12) [supervisor.docker.interface] Cleaning addon_0a217ee8_double-take application
23-07-02 11:22:39 INFO (SyncWorker_8) [supervisor.docker.addon] Starting Docker add-on 0a217ee8/amd64-addon-double-take with version 1.13.10
23-07-02 11:22:40 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.2:3000 ssl:default [Connect call failed ('172.30.33.2', 3000)]
23-07-02 11:22:44 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
23-07-02 11:22:54 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Double Take is failed, restarting...
23-07-02 11:22:54 INFO (SyncWorker_4) [supervisor.docker.interface] Cleaning addon_0a217ee8_double-take application
23-07-02 11:22:54 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on 0a217ee8/amd64-addon-double-take with version 1.13.10
23-07-02 11:22:54 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.33.2:3000 ssl:default [Connect call failed ('172.30.33.2', 3000)]
23-07-02 11:23:10 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Double Take is failed, restarting...
jmtatsch commented 1 year ago

Logs inside double take:

23-07-02 11:23:44 verbose: Incominng event from frigate: {"before": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289764.306315, "snapshot": {"frame_time": 1688289764.306315, "box": [1020, 347, 1059, 398], "area": 1989, "region": [957, 290, 1117, 450], "score": 0.734375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.734375, "box": [1020, 347, 1059, 398], "area": 1989, "ratio": 0.7647058823529411, "region": [957, 290, 1117, 450], "stationary": true, "motionless_count": 1851, "position_changes": 3, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289824.289494, "snapshot": {"frame_time": 1688289824.289494, "box": [1016, 346, 1060, 398], "area": 2288, "region": [960, 292, 1120, 452], "score": 0.68359375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.68359375, "box": [1016, 346, 1060, 398], "area": 2288, "ratio": 0.8461538461538461, "region": [960, 292, 1120, 452], "stationary": true, "motionless_count": 2151, "position_changes": 3, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 11:23:44 verbose: 1688287439.639335-3ewtbm - bird label not in (person)
23-07-02 11:23:58 info: Double Take v1.13.10
23-07-02 11:23:58 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-02 11:23:58 verbose: api listening on :3000
23-07-02 11:23:58 info: MQTT: connected
23-07-02 11:23:58 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-02 11:24:04 verbose: Incominng event from frigate: {"before": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289824.289494, "snapshot": {"frame_time": 1688289824.289494, "box": [1016, 346, 1060, 398], "area": 2288, "region": [960, 292, 1120, 452], "score": 0.68359375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.68359375, "box": [1016, 346, 1060, 398], "area": 2288, "ratio": 0.8461538461538461, "region": [960, 292, 1120, 452], "stationary": true, "motionless_count": 2151, "position_changes": 3, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289844.561474, "snapshot": {"frame_time": 1688289844.561474, "box": [998, 345, 1060, 399], "area": 3348, "region": [958, 294, 1118, 454], "score": 0.5234375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.5234375, "box": [998, 345, 1060, 399], "area": 3348, "ratio": 1.1481481481481481, "region": [958, 294, 1118, 454], "stationary": true, "motionless_count": 2251, "position_changes": 3, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 11:24:04 verbose: 1688287439.639335-3ewtbm - bird label not in (person)
23-07-02 11:24:14 info: Double Take v1.13.10
23-07-02 11:24:14 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-02 11:24:14 verbose: api listening on :3000
23-07-02 11:24:14 info: MQTT: connected
23-07-02 11:24:14 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-02 11:24:19 verbose: Incominng event from frigate: {"before": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289854.290218, "snapshot": {"frame_time": 1688289854.290218, "box": [980, 343, 1059, 399], "area": 4424, "region": [948, 292, 1108, 452], "score": 0.59765625, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.59765625, "box": [980, 343, 1059, 399], "area": 4424, "ratio": 1.4107142857142858, "region": [948, 292, 1108, 452], "stationary": false, "motionless_count": 0, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289859.322184, "snapshot": {"frame_time": 1688289854.480454, "box": [1009, 346, 1059, 399], "area": 2650, "region": [944, 291, 1104, 451], "score": 0.67578125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.6953125, "box": [1020, 347, 1060, 399], "area": 2080, "ratio": 0.7692307692307693, "region": [959, 293, 1119, 453], "stationary": false, "motionless_count": 23, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 11:24:19 verbose: 1688287439.639335-3ewtbm - bird label not in (person)
23-07-02 11:24:24 verbose: Incominng event from frigate: {"before": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289859.322184, "snapshot": {"frame_time": 1688289854.480454, "box": [1009, 346, 1059, 399], "area": 2650, "region": [944, 291, 1104, 451], "score": 0.67578125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.6953125, "box": [1020, 347, 1060, 399], "area": 2080, "ratio": 0.7692307692307693, "region": [959, 293, 1119, 453], "stationary": false, "motionless_count": 23, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289864.367607, "snapshot": {"frame_time": 1688289863.901216, "box": [1017, 346, 1060, 399], "area": 2279, "region": [960, 292, 1120, 452], "score": 0.7265625, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.734375, "box": [1021, 347, 1060, 399], "area": 2028, "ratio": 0.75, "region": [959, 292, 1119, 452], "stationary": false, "motionless_count": 47, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 11:24:24 verbose: 1688287439.639335-3ewtbm - bird label not in (person)
23-07-02 11:24:25 verbose: Incominng event from frigate: {"before": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289864.367607, "snapshot": {"frame_time": 1688289863.901216, "box": [1017, 346, 1060, 399], "area": 2279, "region": [960, 292, 1120, 452], "score": 0.7265625, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.734375, "box": [1021, 347, 1060, 399], "area": 2028, "ratio": 0.75, "region": [959, 292, 1119, 452], "stationary": false, "motionless_count": 47, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289864.928865, "snapshot": {"frame_time": 1688289863.901216, "box": [1017, 346, 1060, 399], "area": 2279, "region": [960, 292, 1120, 452], "score": 0.7265625, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.734375, "box": [1021, 348, 1059, 399], "area": 1938, "ratio": 0.7450980392156863, "region": [959, 292, 1119, 452], "stationary": true, "motionless_count": 51, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 11:24:25 verbose: 1688287439.639335-3ewtbm - bird label not in (person)
23-07-02 11:24:30 info: Double Take v1.13.10
23-07-02 11:24:30 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-02 11:24:31 verbose: api listening on :3000
23-07-02 11:24:31 info: MQTT: connected
23-07-02 11:24:31 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-02 11:24:34 verbose: Incominng event from frigate: {"before": {"id": "1688289287.773782-lwo18x", "camera": "vorne_1", "frame_time": 1688289814.282004, "snapshot": {"frame_time": 1688289751.540136, "box": [644, 390, 663, 412], "area": 418, "region": [577, 331, 737, 491], "score": 0.67578125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.74609375, "false_positive": false, "start_time": 1688289287.773782, "end_time": null, "score": 0.640625, "box": [644, 391, 661, 412], "area": 357, "ratio": 0.8095238095238095, "region": [572, 321, 732, 481], "stationary": true, "motionless_count": 2582, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688289287.773782-lwo18x", "camera": "vorne_1", "frame_time": 1688289874.535583, "snapshot": {"frame_time": 1688289751.540136, "box": [644, 390, 663, 412], "area": 418, "region": [577, 331, 737, 491], "score": 0.67578125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.74609375, "false_positive": false, "start_time": 1688289287.773782, "end_time": null, "score": 0.546875, "box": [644, 391, 661, 412], "area": 357, "ratio": 0.8095238095238095, "region": [572, 321, 732, 481], "stationary": true, "motionless_count": 2881, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 11:24:34 verbose: 1688289287.773782-lwo18x - bird label not in (person)
23-07-02 11:24:47 info: Double Take v1.13.10
23-07-02 11:24:47 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-02 11:24:47 verbose: api listening on :3000
23-07-02 11:24:47 info: MQTT: connected
23-07-02 11:24:47 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-02 11:24:55 verbose: Incominng event from frigate: {"before": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289864.928865, "snapshot": {"frame_time": 1688289863.901216, "box": [1017, 346, 1060, 399], "area": 2279, "region": [960, 292, 1120, 452], "score": 0.7265625, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.734375, "box": [1021, 348, 1059, 399], "area": 1938, "ratio": 0.7450980392156863, "region": [959, 292, 1119, 452], "stationary": true, "motionless_count": 51, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688287439.639335-3ewtbm", "camera": "vorne_1", "frame_time": 1688289895.733236, "snapshot": {"frame_time": 1688289895.733236, "box": [1021, 346, 1062, 399], "area": 2173, "region": [969, 265, 1129, 425], "score": 0.83203125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8203125, "false_positive": false, "start_time": 1688287439.639335, "end_time": null, "score": 0.83203125, "box": [1021, 346, 1062, 399], "area": 2173, "ratio": 0.7735849056603774, "region": [969, 265, 1129, 425], "stationary": true, "motionless_count": 201, "position_changes": 4, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 11:24:55 verbose: 1688287439.639335-3ewtbm - bird label not in (person)
23-07-02 15:38:30 info: Double Take v1.13.10
23-07-02 15:38:30 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-02 15:38:31 verbose: api listening on :3000
23-07-02 15:38:31 info: MQTT: connected
23-07-02 15:38:31 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-02 15:38:32 verbose: Incominng event from frigate: {"before": {"id": "1688304170.370813-ua5r9o", "camera": "vorne_1", "frame_time": 1688305103.600426, "snapshot": {"frame_time": 1688305100.208154, "box": [1014, 347, 1059, 398], "area": 2295, "region": [946, 293, 1106, 453], "score": 0.70703125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8046875, "false_positive": false, "start_time": 1688304170.370813, "end_time": null, "score": 0.59765625, "box": [1017, 347, 1059, 399], "area": 2184, "ratio": 0.8076923076923077, "region": [953, 293, 1113, 453], "stationary": false, "motionless_count": 2, "position_changes": 8, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688304170.370813-ua5r9o", "camera": "vorne_1", "frame_time": 1688305111.020367, "snapshot": {"frame_time": 1688305111.020367, "box": [1014, 345, 1062, 400], "area": 2640, "region": [989, 325, 1181, 517], "score": 0.55859375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8046875, "false_positive": false, "start_time": 1688304170.370813, "end_time": null, "score": 0.55859375, "box": [1014, 345, 1062, 400], "area": 2640, "ratio": 0.8727272727272727, "region": [989, 325, 1181, 517], "stationary": false, "motionless_count": 7, "position_changes": 8, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:32 verbose: 1688304170.370813-ua5r9o - bird label not in (person)
23-07-02 15:38:34 verbose: Incominng event from frigate: {"before": {"id": "1688300121.02353-i749vh", "camera": "vorne_1", "frame_time": 1688305051.05114, "snapshot": {"frame_time": 1688304645.253892, "box": [1565, 483, 1574, 496], "area": 117, "region": [1512, 432, 1672, 592], "score": 0.76953125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.76953125, "false_positive": false, "start_time": 1688300121.02353, "end_time": null, "score": 0.62890625, "box": [1565, 483, 1573, 493], "area": 80, "ratio": 0.8, "region": [1457, 370, 1617, 530], "stationary": true, "motionless_count": 309, "position_changes": 18, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688300121.02353-i749vh", "camera": "vorne_1", "frame_time": 1688305112.397041, "snapshot": {"frame_time": 1688304645.253892, "box": [1565, 483, 1574, 496], "area": 117, "region": [1512, 432, 1672, 592], "score": 0.76953125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.76953125, "false_positive": false, "start_time": 1688300121.02353, "end_time": null, "score": 0.68359375, "box": [1565, 483, 1573, 498], "area": 120, "ratio": 0.5333333333333333, "region": [1456, 370, 1616, 530], "stationary": true, "motionless_count": 383, "position_changes": 18, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:34 verbose: 1688300121.02353-i749vh - bird label not in (person)
23-07-02 15:38:36 verbose: Incominng event from frigate: {"before": {"id": "1688304846.059591-posf3b", "camera": "vorne_1", "frame_time": 1688305109.032583, "snapshot": {"frame_time": 1688305109.032583, "box": [1132, 533, 1320, 682], "area": 28012, "region": [1127, 483, 1335, 691], "score": 0.57421875, "attributes": []}, "label": "car", "sub_label": null, "top_score": 0.701171875, "false_positive": false, "start_time": 1688304846.059591, "end_time": null, "score": 0.57421875, "box": [1132, 533, 1320, 682], "area": 28012, "ratio": 1.261744966442953, "region": [1127, 483, 1335, 691], "stationary": false, "motionless_count": 6, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688304846.059591-posf3b", "camera": "vorne_1", "frame_time": 1688305114.020307, "snapshot": {"frame_time": 1688305114.020307, "box": [1131, 535, 1335, 730], "area": 39780, "region": [1107, 501, 1347, 741], "score": 0.53515625, "attributes": []}, "label": "car", "sub_label": null, "top_score": 0.701171875, "false_positive": false, "start_time": 1688304846.059591, "end_time": null, "score": 0.53515625, "box": [1131, 535, 1335, 730], "area": 39780, "ratio": 1.0461538461538462, "region": [1107, 501, 1347, 741], "stationary": false, "motionless_count": 11, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:36 verbose: 1688304846.059591-posf3b - car label not in (person)
23-07-02 15:38:37 verbose: Incominng event from frigate: {"before": {"id": "1688304170.370813-ua5r9o", "camera": "vorne_1", "frame_time": 1688305111.020367, "snapshot": {"frame_time": 1688305111.020367, "box": [1014, 345, 1062, 400], "area": 2640, "region": [989, 325, 1181, 517], "score": 0.55859375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8046875, "false_positive": false, "start_time": 1688304170.370813, "end_time": null, "score": 0.55859375, "box": [1014, 345, 1062, 400], "area": 2640, "ratio": 0.8727272727272727, "region": [989, 325, 1181, 517], "stationary": false, "motionless_count": 7, "position_changes": 8, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688304170.370813-ua5r9o", "camera": "vorne_1", "frame_time": 1688305113.616066, "snapshot": {"frame_time": 1688305111.831176, "box": [1018, 346, 1058, 399], "area": 2120, "region": [954, 292, 1114, 452], "score": 0.7890625, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8046875, "false_positive": false, "start_time": 1688304170.370813, "end_time": null, "score": 0.75390625, "box": [1020, 349, 1061, 399], "area": 2050, "ratio": 0.82, "region": [967, 260, 1127, 420], "stationary": false, "motionless_count": 9, "position_changes": 8, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:37 verbose: 1688304170.370813-ua5r9o - bird label not in (person)
23-07-02 15:38:40 verbose: Incominng event from frigate: {"before": {"id": "1688304846.059591-posf3b", "camera": "vorne_1", "frame_time": 1688305114.020307, "snapshot": {"frame_time": 1688305114.020307, "box": [1131, 535, 1335, 730], "area": 39780, "region": [1107, 501, 1347, 741], "score": 0.53515625, "attributes": []}, "label": "car", "sub_label": null, "top_score": 0.701171875, "false_positive": false, "start_time": 1688304846.059591, "end_time": null, "score": 0.53515625, "box": [1131, 535, 1335, 730], "area": 39780, "ratio": 1.0461538461538462, "region": [1107, 501, 1347, 741], "stationary": false, "motionless_count": 11, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688304846.059591-posf3b", "camera": "vorne_1", "frame_time": 1688305119.64448, "snapshot": {"frame_time": 1688305119.64448, "box": [1128, 532, 1321, 679], "area": 28371, "region": [1104, 421, 1368, 685], "score": 0.6171875, "attributes": []}, "label": "car", "sub_label": null, "top_score": 0.701171875, "false_positive": false, "start_time": 1688304846.059591, "end_time": null, "score": 0.6171875, "box": [1128, 532, 1321, 679], "area": 28371, "ratio": 1.3129251700680271, "region": [1104, 421, 1368, 685], "stationary": false, "motionless_count": 1, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:40 verbose: 1688304846.059591-posf3b - car label not in (person)
23-07-02 15:38:41 verbose: Incominng event from frigate: {"before": {"id": "1688300278.91941-up7tu3", "camera": "vorne_1", "frame_time": 1688305059.390592, "snapshot": {"frame_time": 1688304872.116311, "box": [1500, 407, 1523, 443], "area": 828, "region": [1377, 408, 1537, 568], "score": 0.68359375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.76171875, "false_positive": false, "start_time": 1688300278.91941, "end_time": null, "score": 0.5859375, "box": [1502, 401, 1523, 442], "area": 861, "ratio": 0.5121951219512195, "region": [1457, 370, 1617, 530], "stationary": true, "motionless_count": 13267, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688300278.91941-up7tu3", "camera": "vorne_1", "frame_time": 1688305120.042201, "snapshot": {"frame_time": 1688304872.116311, "box": [1500, 407, 1523, 443], "area": 828, "region": [1377, 408, 1537, 568], "score": 0.68359375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.76171875, "false_positive": false, "start_time": 1688300278.91941, "end_time": null, "score": 0.68359375, "box": [1501, 409, 1523, 445], "area": 792, "ratio": 0.6111111111111112, "region": [1378, 407, 1538, 567], "stationary": true, "motionless_count": 13348, "position_changes": 1, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:41 verbose: 1688300278.91941-up7tu3 - bird label not in (person)
23-07-02 15:38:41 verbose: Incominng event from frigate: {"before": {"id": "1688304559.428397-puc4cl", "camera": "vorne_1", "frame_time": 1688305059.390592, "snapshot": {"frame_time": 1688304994.851528, "box": [1531, 622, 1586, 680], "area": 3190, "region": [1507, 568, 1667, 728], "score": 0.6953125, "attributes": []}, "label": "dog", "sub_label": null, "top_score": 0.75390625, "false_positive": false, "start_time": 1688304559.428397, "end_time": null, "score": 0.546875, "box": [1546, 623, 1585, 678], "area": 2145, "ratio": 0.7090909090909091, "region": [1482, 571, 1642, 731], "stationary": true, "motionless_count": 107, "position_changes": 2, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688304559.428397-puc4cl", "camera": "vorne_1", "frame_time": 1688305120.042201, "snapshot": {"frame_time": 1688304994.851528, "box": [1531, 622, 1586, 680], "area": 3190, "region": [1507, 568, 1667, 728], "score": 0.6953125, "attributes": []}, "label": "dog", "sub_label": null, "top_score": 0.75390625, "false_positive": false, "start_time": 1688304559.428397, "end_time": null, "score": 0.5859375, "box": [1539, 622, 1585, 682], "area": 2760, "ratio": 0.7666666666666667, "region": [1501, 608, 1685, 792], "stationary": true, "motionless_count": 188, "position_changes": 2, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:41 verbose: 1688304559.428397-puc4cl - dog label not in (person)
23-07-02 15:38:43 verbose: Incominng event from frigate: {"before": {"id": "1688304170.370813-ua5r9o", "camera": "vorne_1", "frame_time": 1688305113.616066, "snapshot": {"frame_time": 1688305111.831176, "box": [1018, 346, 1058, 399], "area": 2120, "region": [954, 292, 1114, 452], "score": 0.7890625, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8046875, "false_positive": false, "start_time": 1688304170.370813, "end_time": null, "score": 0.75390625, "box": [1020, 349, 1061, 399], "area": 2050, "ratio": 0.82, "region": [967, 260, 1127, 420], "stationary": false, "motionless_count": 9, "position_changes": 8, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688304170.370813-ua5r9o", "camera": "vorne_1", "frame_time": 1688305121.314244, "snapshot": {"frame_time": 1688305120.404398, "box": [1018, 348, 1059, 401], "area": 2173, "region": [952, 292, 1112, 452], "score": 0.8203125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8046875, "false_positive": false, "start_time": 1688304170.370813, "end_time": null, "score": 0.640625, "box": [1019, 346, 1060, 401], "area": 2255, "ratio": 0.7454545454545455, "region": [957, 293, 1117, 453], "stationary": false, "motionless_count": 3, "position_changes": 8, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:43 verbose: 1688304170.370813-ua5r9o - bird label not in (person)
23-07-02 15:38:47 info: Double Take v1.13.10
23-07-02 15:38:47 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-02 15:38:47 verbose: api listening on :3000
23-07-02 15:38:47 info: MQTT: connected
23-07-02 15:38:47 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-02 15:38:48 verbose: Incominng event from frigate: {"before": {"id": "1688304170.370813-ua5r9o", "camera": "vorne_1", "frame_time": 1688305121.314244, "snapshot": {"frame_time": 1688305120.404398, "box": [1018, 348, 1059, 401], "area": 2173, "region": [952, 292, 1112, 452], "score": 0.8203125, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8046875, "false_positive": false, "start_time": 1688304170.370813, "end_time": null, "score": 0.640625, "box": [1019, 346, 1060, 401], "area": 2255, "ratio": 0.7454545454545455, "region": [957, 293, 1117, 453], "stationary": false, "motionless_count": 3, "position_changes": 8, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "after": {"id": "1688304170.370813-ua5r9o", "camera": "vorne_1", "frame_time": 1688305126.252027, "snapshot": {"frame_time": 1688305125.634831, "box": [1021, 348, 1060, 401], "area": 2067, "region": [952, 291, 1112, 451], "score": 0.734375, "attributes": []}, "label": "bird", "sub_label": null, "top_score": 0.8046875, "false_positive": false, "start_time": 1688304170.370813, "end_time": null, "score": 0.59765625, "box": [1018, 346, 1060, 400], "area": 2268, "ratio": 0.7777777777777778, "region": [957, 291, 1117, 451], "stationary": false, "motionless_count": 2, "position_changes": 8, "current_zones": [], "entered_zones": [], "has_clip": true, "has_snapshot": true, "attributes": [], "current_attributes": []}, "type": "update"}
23-07-02 15:38:48 verbose: 1688304170.370813-ua5r9o - bird label not in (person)
jmtatsch commented 1 year ago

Config

# Double Take
# Learn more at https://github.com/skrashevich/double-take/#configuration
# log settings (default: shown below)
# options: silent, error, warn, info, http, verbose, debug, silly
logs:
  level: verbose

detectors:
  compreface:
    url: http://192.168.179.5:8000
    key: !secret compreface_key
    timeout: 15
    det_prob_threshold: 0.75
    face_plugins: mask,gender,age

cameras:

  camera:
    detect:
      match:
        save: true # save matches
        confidence: 92 # confidence to be a good match (depends on which provider you use)
        min_area: 3000 # min area of face box to have a good match
      unknown:
        min_area: 1500 # min area to keep an unknown match
        confidence: 85 # less than this confidence is considered "unknown"

mqtt:
  host: addon_core_mosquitto
  username: !secret mqtt_user
  password: !secret mqtt_password
  client_id: doubletake

  # topics for mqtt
  topics:
    frigate: frigate/events
    homeassistant: homeassistant
    matches: double-take/matches
    cameras: double-take/cameras

frigate:

  url: http://192.168.179.80:8001 # frigate host
  update_sub_labels: true # frigate 0.11+ option to include names in frigate events

  events:

    camera:
      attempts:
        latest: 16 # number of "latest" frigate snapshots to try to find face in
        snapshot: 16 # number of event frigate snapshots to try to find face in
        mqtt: true # whether or not to use mqtt snapshots
      image:
        height: 640 # set this to the detect height of your frigate camera
jmtatsch commented 1 year ago

nothing in dmesg, plenty of RAM

skrashevich commented 1 year ago

23-07-02 11:22:54 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Double Take is failed, restarting...

add-on has been killed by HA watchdog

jmtatsch commented 1 year ago

So why is the add-on killed by HA watchdog?

skrashevich commented 1 year ago

perhaps, double-take answers slowly, than watchdog expect I made some changes to the add-on watchdog configuration. Try uninstalling the add-on, deleting the repository and adding them again. Double-take version will remains unchanged, so changes only in add-on metadata

jmtatsch commented 1 year ago

Followed your instructions. Here are the logs from inside the add-on again:

 theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-07 21:08:14 verbose: api listening on :3000
23-07-07 21:08:14 info: MQTT: connected
23-07-07 21:08:14 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-07 21:08:30 info: Double Take v1.13.10
23-07-07 21:08:30 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-07 21:08:30 verbose: api listening on :3000
23-07-07 21:08:30 info: MQTT: connected
23-07-07 21:08:30 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-07 21:09:41 info: Double Take v1.13.10
23-07-07 21:09:41 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-07 21:09:42 verbose: api listening on :3000
23-07-07 21:09:42 info: MQTT: connected
23-07-07 21:09:42 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-07 21:15:52 info: Double Take v1.13.10
23-07-07 21:15:52 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-07 21:15:52 verbose: api listening on :3000
23-07-07 21:15:52 info: MQTT: connected
23-07-07 21:15:52 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-07 21:16:05 error: Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
23-07-07 21:17:16 info: Double Take v1.13.10
23-07-07 21:17:16 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-07 21:17:16 verbose: api listening on :3000
23-07-07 21:17:16 info: MQTT: connected
23-07-07 21:17:16 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-07 21:17:37 info: Double Take v1.13.10
23-07-07 21:17:37 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-07 21:17:38 verbose: api listening on :3000
23-07-07 21:17:38 info: MQTT: connected
23-07-07 21:17:38 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot
23-07-07 21:18:36 info: Double Take v1.13.10
23-07-07 21:18:36 verbose: {
  telemetry: false,
  auth: false,
  detect: {
    match: {
      save: true,
      base64: false,
      confidence: 60,
      purge: 168,
      min_area: 10000
    },
    unknown: {
      save: true,
      base64: false,
      confidence: 40,
      purge: 8,
      min_area: 0
    }
  },
  time: { timezone: 'UTC' },
  frigate: {
    attempts: { latest: 10, snapshot: 10, mqtt: true, delay: 0 },
    image: { height: 500 },
    labels: [ 'person' ],
    update_sub_labels: true,
    stop_on_match: true,
    min_area: 0,
    url: 'http://192.168.179.80:8001',
    events: { camera: [Object] }
  },
  mqtt: {
    protocol: 'mqtt',
    tls: {},
    topics: {
      frigate: 'frigate/events',
      matches: 'double-take/matches',
      cameras: 'double-take/cameras',
      homeassistant: 'homeassistant'
    },
    host: 'addon_core_mosquitto',
    username: 'mqtt-user',
    password: '********',
    client_id: 'doubletake'
  },
  logs: { level: 'verbose' },
  ui: {
    path: '',
    theme: 'bootstrap4-dark-blue',
    editor: { theme: 'nord_dark' },
    logs: { lines: 500 },
    pagination: { limit: 50 },
    thumbnails: { quality: 95, width: 500 }
  },
  server: { port: 3000 },
  detectors: {
    compreface: {
      det_prob_threshold: 0.75,
      timeout: 15,
      opencv_face_required: false,
      url: 'http://192.168.179.5:8000',
      key: '********',
      face_plugins: 'mask,gender,age'
    }
  },
  cameras: { camera: { detect: [Object] } },
  storage: {
    path: '/config/double-take',
    config: { path: '/config/double-take' },
    secrets: { path: '/config', extension: 'yaml' },
    media: { path: '/media/double-take' },
    tmp: { path: '/dev/shm/double-take' }
  },
  version: '1.13.10'
}
23-07-07 21:18:37 verbose: api listening on :3000
23-07-07 21:18:37 info: MQTT: connected
23-07-07 21:18:37 info: MQTT: subscribed to frigate/events, frigate/+/person/snapshot

Also one thing that might be related I get two "request failed with status code 502" from compreface.

jmtatsch commented 1 year ago

Now with 1.13.11 the issue appears to be fixed. Thank you!.