Skip to content

[Feature Request] Include snapshot/screenshot path in MQTT event payloads #449

Description

@dev-rfc

Currently, I am trying to migrate my NVR integration from AgentDVR to LightNVR. In my current setup, when an event occurs, I receive an MQTT notification and use the snapshot path provided in the payload to automatically send the event image to a Telegram channel.

While LightNVR successfully sends the MQTT alerts, the payload does not seem to include a path or URL to the specific screenshot/snapshot of the captured event. Without this, I cannot fully replicate my automation to receive the photos alongside the alerts.

It would be amazing if the MQTT event payload could include a field with the local path or a relative URL to the screenshot generated by the event (e.g., "snapshot_path": "/path/to/snapshot.jpg").

This would allow users to easily fetch the image and forward it to external services like Telegram, Home Assistant, Discord, etc.

I looked into the documentation to see if there was a way to predict the filename or fetch it via a standard API query right after the MQTT message arrives, but having it directly in the MQTT payload would be the most reliable and real-time approach.

This feature would make it much easier for users migrating from other NVR solutions (like AgentDVR or Frigate) who rely heavily on rich notifications (text + image) via MQTT.

Thank you for the great work on LightNVR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions