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.

0.9-RC3 - If "roles" is enabled on the camera - the feature is enabled

See original GitHub issue

Describe what you are trying to accomplish and why in non technical terms

record:
  enabled: true

Was removed as a global with the release of RC3. Now it needs to be enabled with every camera. Will frigate even work if recording isn’t enabled?

Would it be possible to “just enable” it if it is stated as a role in the camera instead of having to declare it twice, per camera?

Describe the solution you’d like Cleaner and consistent config file.

Describe alternatives you’ve considered Rework what´s global and what’s camera specific, in general. Or, I am all ears, there might be a caveat or a reason for this function that I have overlooked. 😃

Additional context Add any other context or screenshots about the feature request here. Logs

2021-09-13T05:55:32.584507000Z [2021-09-13 07:55:32] frigate.app                    WARNING : Camera cam9_uppfart has record assigned to an input, but record is not enabled.
2021-09-13T05:55:32.584663000Z [2021-09-13 07:55:32] frigate.app                    WARNING : Camera cam1_framsidan has record assigned to an input, but record is not enabled.
2021-09-13T05:55:32.584812000Z [2021-09-13 07:55:32] frigate.app                    WARNING : Camera cam2_baksidan has record assigned to an input, but record is not enabled.
2021-09-13T05:55:32.584939000Z [2021-09-13 07:55:32] frigate.app                    WARNING : Camera cam3_framsidan has record assigned to an input, but record is not enabled.
2021-09-13T05:55:32.585032000Z [2021-09-13 07:55:32] frigate.app                    WARNING : Camera cam6_baksidan has record assigned to an input, but record is not enabled.
2021-09-13T05:55:32.585110000Z [2021-09-13 07:55:32] frigate.app                    WARNING : Camera cam10_baksidan has record assigned to an input, but record is not enabled.

Config example

cameras:
  cam9_uppfart:
    ffmpeg:
      inputs:
        - path: rtsp://ipaddr:8554/cam9_ch1
          roles:
            - detect
            - record
#            - rtmp
    detect:
      enabled: True
    record:
      enabled: True
    rtmp:
      enabled: False
    snapshots:
      enabled: True
  cam3_framsidan:
    ffmpeg:
      inputs:
        - path: rtsp://ipaddr:8554/cam3_ch1
          roles:
            - detect
            - record
#            - rtmp
    detect:
      enabled: True
    record:
      enabled: True
    rtmp:
      enabled: False
    snapshots:
      enabled: True
...
...

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dziobsoncommented, Sep 13, 2021

I can also see that the event option is also not available

Error parsing config: 1 validation error for FrigateConfig record -> events -> enabled extra fields not permitted (type=value_error.extra)

record: enabled: True retain_days: 5 events: enabled: True max_seconds: 300 pre_capture: 5 post_capture: 10 required_zones: [] retain: default: 30

0reactions
tubalainencommented, Sep 14, 2021

Well, I surrender. Looks like its just me thinking that the logic is “backwards”. There must some smartness behind it that I do not see or understand.

So when I declare a role (detect, record, rtmp) per camera I also need to “enable” that function/role hence its by default disabled. Ok.

EDIT - Sorry, “Detect” and “Record” can be “enabled” as a global setting. If also stated as a role for the camera accordingly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"user manual" | Manualzz
2.1 Signing In for a New Account In case the “Not a member” feature is enabled (if this feature is not enabled you...
Read more >
Development tools - Read the Docs
This is the file that controls the basics of how sphinx runs when you run a build. Here you can do this like:...
Read more >
Fedora 26 compose report: 20170619.n.0 changes - s390x - Fedora ...
Also enable Kerberos and LDAP support too. ... libteam: Add team_get_port_enabled function - teamd: check port link_up when a port is added with...
Read more >
python - QGIS Plugins planet
MovingPandas now supports local coordinates. MovingPandas 0.9rc3 has just been released, including important fixes for local coordinate support. Sports ...
Read more >
Untitled
Detect LVs active on remote nodes by querying locks if supported. ... updates: * enable IB support * explicitly define built-in features at...
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