Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook: add event information #411

Open
GrinchUA opened this issue Mar 25, 2021 · 2 comments
Open

Webhook: add event information #411

GrinchUA opened this issue Mar 25, 2021 · 2 comments
Assignees
Labels
Milestone

Comments

@GrinchUA
Copy link

$event = data::getObject('Media', 'id', $argv[2]);

The function contains information about the event, why not send it to the webhook, this information will be useful for processing.

@curtishall
Copy link
Member

I agree it would be useful. If you want something sooner we accept PRs, otherwise I'll keep it in mind for after the 3.1 stable release.

@kala13x
Copy link
Contributor

kala13x commented Apr 16, 2021

Hi, testing has shown that mailer.php already sends detailed information about the event to the webhook, this is the example of the raw content of mentioned information:

{
  "event_name": "motion_event",
  "event_datetime": "2021-04-17T02:08:59+04:00",
  "device_id": "2",
  "device_name": "TestCam",
  "dvr_name": "Bluecherry DVR v3"
} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants