-
Notifications
You must be signed in to change notification settings - Fork 183
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
Forwarding Frigate events to Ntfy #635
Merged
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
ac25d51
Forwarding Frigate events to Ntfy: Add baseline material and docs
amotl de00c85
Frigate-to-Ntfy: Fix event publishing example
amotl 30d7bbd
Frigate-to-Ntfy: Add example about publishing and receiving an image
amotl 2fd8c3d
Fix: Don't crash when receiving non-UTF8 payloads
amotl c262364
Frigate-to-Ntfy: Remove debug messages
amotl 274b9a1
Frigate-to-Ntfy: Fix try/except in `frigate_events_filter`
amotl f35ccd1
Frigate-to-Ntfy: Extend example by different inbound event messages
amotl 58f716d
Frigate-to-Ntfy: Fix filter function using serialized rule evaluation
amotl c258840
Improve exception logging in context functions
amotl 3026359
This and that, code formatting
amotl 5eb4c17
[core] Allow processing of binary, non-UTF8 message payloads
amotl 60c6229
[file] Allow writing of binary content
amotl a58f7eb
Frigate-to-Ntfy: Configure `decode_utf8 = False` on `store-jpeg` service
amotl 3fa79ee
[core] Fix JSON decoding and filtering after accepting binary payloads
amotl b93790d
[test] Add end-to-end test for receiving and processing binary data
amotl 1612508
Frigate-to-Ntfy: Naming things
amotl a38d414
Frigate-to-Ntfy: Add `publish.sh` program
amotl 2932acb
Frigate-to-Ntfy: Naming things
amotl f61c3a1
Frigate-to-Ntfy: Refactor `frigate_events` function
amotl 63dda29
Frigate-to-Ntfy: Add `filename_template` option to `apprise-ntfy` svc
amotl 8434441
Chore: This and that
amotl 1bf91d4
Frigate-to-Ntfy: Adjust attachment filename
amotl c4e422a
Frigate-to-Ntfy: Disable sending attachments for now
amotl b6ac3fa
Frigate-to-Ntfy: Add Ntfy service and software test
amotl 0233887
Frigate-to-Ntfy: Assume `frame_time` to be in UTC
amotl b3540c0
Frigate-to-Ntfy: Update to apprise>=1.3.0
amotl d8a2e45
Frigate-to-Ntfy: Decode `frigate/+/+/snapshot` in a generic way
amotl 29e9382
Frigate-to-Ntfy: Also process "update" events
amotl d710460
Frigate-to-Ntfy: Limit notification/alert to specific cameras/zones
amotl 575a345
Frigate-to-Ntfy: Refactor test case files/assets
amotl c32190f
Frigate-to-Ntfy: Improve formatting of outbound title and message
amotl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"before": { | ||
"id": "1680791459.255384-abcdef", | ||
"camera": "camera", | ||
"frame_time": 1680791459.255384, | ||
"snapshot_time": 0, | ||
"label": "car", | ||
"sub_label": null, | ||
"top_score": 0, | ||
"false_positive": true, | ||
"start_time": 1680791459.255384, | ||
"end_time": null, | ||
"current_zones": [], | ||
"entered_zones": [], | ||
"has_clip": false, | ||
"has_snapshot": false | ||
}, | ||
"after": { | ||
"id": "1680791459.255384-abcdef", | ||
"camera": "camera", | ||
"frame_time": 1680791506.638857, | ||
"snapshot_time": 1680791506.638857, | ||
"label": "car", | ||
"sub_label": null, | ||
"false_positive": false, | ||
"start_time": 1680791459.255384, | ||
"end_time": null, | ||
"current_zones": [], | ||
"entered_zones": [ | ||
"zone1" | ||
], | ||
"has_clip": true, | ||
"has_snapshot": true | ||
}, | ||
"type": "end" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"before": { | ||
"id": "1680791459.255384-abcdef", | ||
"camera": "camera", | ||
"frame_time": 1680791459.255384, | ||
"snapshot_time": 0, | ||
"label": "car", | ||
"sub_label": null, | ||
"top_score": 0, | ||
"false_positive": true, | ||
"start_time": 1680791459.255384, | ||
"end_time": null, | ||
"current_zones": [], | ||
"entered_zones": [], | ||
"has_clip": false, | ||
"has_snapshot": false | ||
}, | ||
"after": { | ||
"id": "1680791459.255384-abcdef", | ||
"camera": "camera", | ||
"frame_time": 1680791506.638857, | ||
"snapshot_time": 1680791506.638857, | ||
"label": "car", | ||
"sub_label": null, | ||
"false_positive": true, | ||
"start_time": 1680791459.255384, | ||
"end_time": null, | ||
"current_zones": [], | ||
"entered_zones": [ | ||
"zone1" | ||
], | ||
"has_clip": true, | ||
"has_snapshot": true | ||
}, | ||
"type": "new" | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"before": { | ||
"id": "1680791459.255384-abcdef", | ||
"camera": "camera", | ||
"frame_time": 1680791459.255384, | ||
"snapshot_time": 0, | ||
"label": "car", | ||
"sub_label": null, | ||
"top_score": 0, | ||
"false_positive": true, | ||
"start_time": 1680791459.255384, | ||
"end_time": null, | ||
"current_zones": [], | ||
"entered_zones": [], | ||
"has_clip": false, | ||
"has_snapshot": false | ||
}, | ||
"after": { | ||
"id": "1680791459.255384-abcdef", | ||
"camera": "camera", | ||
"frame_time": 1680791506.638857, | ||
"snapshot_time": 1680791506.638857, | ||
"label": "car", | ||
"sub_label": null, | ||
"false_positive": false, | ||
"start_time": 1680791459.255384, | ||
"end_time": null, | ||
"current_zones": [], | ||
"entered_zones": [ | ||
"zone1" | ||
], | ||
"has_clip": true, | ||
"has_snapshot": true | ||
}, | ||
"type": "new" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this handles both
new
andupdate
. There are 3type
s, ofnew
,update
, andend
, so the filter will handle bothnew
andupdate
if it only excludesend
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Feel free to add any improvements on this detail. I am not so much into those aspects right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I've just added 29e9382 which addresses your suggestion.