question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Config Support]: MQTT events outside the zone

See original GitHub issue

Describe the problem you are having

I have MQTT events (frigate/events [new]) on “zone_right” for the object “person” however not traceable, because they don’t show up in the webinterface under “Events” either.

From my point of view, it is difficult to understand where these come from if they are not recorded in the web interface. For me it seems like detections outside the zone.

Version

0.11.1-2EADA21

Frigate config file

mqtt:
  host: 127.0.0.1
  user: mosquitto
  password: ""

detectors:
  coral:
    type: edgetpu
    device: usb

record:
  enabled: True
  events:
    pre_capture: 30
    retain:
      default: 3
      mode: all
    required_zones:
      - zone_left
      - zone_right

snapshots:
  enabled: True
  clean_copy: True
  timestamp: False
  bounding_box: True

  required_zones:
    - zone_left
    - zone_right

detect:
  width: 1920
  height: 1080

rtmp:
  enabled: False

objects:
  track:
    - person
    - cat
    - dog

  filters:
    person:
      max_area: 100000

cameras:
  garden_left:
    ffmpeg:
      inputs:
        - path: rtsps://192.168.1.1:7441/S7DIsRUQTSqcDAN4?enableSrtp
          roles:
            - detect

    zones:
      zone_left:
        coordinates: 1612,0,1582,285,1535,585,1920,729,1920,1080,0,1080,0,0

  garden_right:
    ffmpeg:
      inputs:
        - path: rtsps://192.168.1.1:7441/aEPrEiyvbopt7xCZ?enableSrtp
          roles:
            - detect

    zones:
      zone_right:
        coordinates: 1832,1080,0,1080,0,882,36,855,180,719,1709,817

Relevant log output

[2022-12-13 13:21:44] detector.coral                 INFO    : Starting detection process: 224
[2022-12-13 13:21:44] frigate.app                    INFO    : Output process started: 226
[2022-12-13 13:21:44] ws4py                          INFO    : Using epoll
[2022-12-13 13:21:44] frigate.app                    INFO    : Camera processor started for garden_left: 232
[2022-12-13 13:21:44] frigate.app                    INFO    : Camera processor started for garden_right: 235
[2022-12-13 13:21:44] frigate.app                    INFO    : Capture process started for garden_left: 237
[2022-12-13 13:21:44] frigate.app                    INFO    : Capture process started for garden_right: 241
[2022-12-13 13:21:44] ws4py                          INFO    : Using epoll
[2022-12-13 13:21:45] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60084]
[2022-12-13 13:21:44] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2022-12-13 13:21:46] frigate.edgetpu                INFO    : TPU found
[2022-12-13 13:21:46] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60084]
[2022-12-13 13:21:46] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60090]
[2022-12-13 13:21:48] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60090]
[2022-12-13 13:21:48] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:5002 | Remote => 127.0.0.1:60102]
[2022-12-13 13:21:49] ws4py                          INFO    : Managing websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:38590]
[2022-12-13 13:21:50] ws4py                          INFO    : Terminating websocket [Local => 127.0.0.1:8082 | Remote => 127.0.0.1:38590]

Frigate stats

{"detection_fps":3.5,"detectors":{"coral":{"detection_start":0.0,"inference_speed":12.98,"pid":224}},"garden_left":{"camera_fps":5.0,"capture_pid":237,"detection_fps":0.0,"pid":232,"process_fps":5.0,"skipped_fps":0.0},"garden_right":{"camera_fps":5.0,"capture_pid":241,"detection_fps":3.5,"pid":235,"process_fps":5.0,"skipped_fps":0.0},"service":{"latest_version":"0.11.1","storage":{"/dev/shm":{"free":126.9,"mount_type":"tmpfs","total":134.2,"used":7.3},"/media/frigate/clips":{"free":91103.3,"mount_type":"ext4","total":124625.0,"used":27143.8},"/media/frigate/recordings":{"free":91103.3,"mount_type":"ext4","total":124625.0,"used":27143.8},"/tmp/cache":{"free":987.4,"mount_type":"tmpfs","total":1000.0,"used":12.6}},"temperatures":{},"uptime":6714,"version":"0.11.1-2eada21"}}

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
NickM-27commented, Dec 13, 2022

You can check what I do in my guide but I wouldn’t rely on that implicit behavior when there’s multiple zone based variables already there https://github.com/blakeblackshear/frigate/discussions/2898

0reactions
dennisoderwaldcommented, Dec 13, 2022

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Config Support]: Required Zones bypassed only with MQTT ...
I've set the person filter as threshold 0.8 in Zones and set required_zones in MQTT, Snapshots, and record,events.
Read more >
The Guide to MQTT Broker - Catchpoint Systems
Learn about MQTT brokers, compare the technologies, and understand the best practices and security considerations.
Read more >
Tutorial: Interact with local IoT devices over MQTT
You can complete this tutorial to configure a core device to interact with local IoT devices, called client devices, that connect to the...
Read more >
Publishing over the MQTT bridge - Cloud IoT Core
Long-term support (LTS) domains let you use one TLS configuration for an extended period of time. You can set up an MQTT client...
Read more >
MQTT Sensor - Home Assistant
Temporal mismatches between the state and the attribute data may occur if both the state and the attributes are changed simultaneously by the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found