frigate
frigate copied to clipboard
FEAT: Notifications In Frigate Frontend
Idea
Per https://github.com/blakeblackshear/frigate/issues/3185#issuecomment-1133664403 It is a good idea for frigate to be able to post certain notifications.
Supported Notification Types (curently)
- recording storage < 10%
- Frigate update is available (current stats and latest GitHub release version comparison)
- camera_fps of cameras and if it is 0.0 assumes there is an ffmpeg error. (This may not be good logic, not 100% sure.)
If anyone has any ideas or thoughts please let me know 👍
Here are some screenshots showing the current UI:

Note that the icon will only show when there ARE notifications returned by the API, otherwise it will not show at all. The yellow color (which is set to always be the color) is intended to convey that there are warnings but if this isn't a good choice then happy to change this.
This is fantastic! Wondering if such information can be sent over via MQTT. HASS can listen to this and send a apple or android notification!. Thoughts?
This is fantastic! Wondering if such information can be sent over via MQTT. HASS can listen to this and send a apple or android notification!. Thoughts?
Thanks! They're not really fired off live right, it's just a calculated list. I'm not sure when HASS would receive them unless it was just a problem sensor that always had a value that HASS fetched
This is what the UI looks like after latest changes:

Considering I just filled up a disk where my recordings live on my server and basically crashed it for a few hours.... id love notifications via the gui! I rarely check in on my server ( sigh.... ) but I check frigate daily for new events.
Good idea :)
Here's a screenshot example for frigate update
Currently it doesn't support clicking / url. I think the Frigate update could point to the releases page, but not sure where the other ones would link to so maybe better to leave that out for now?
I think this is ready for initial review / comments
Also to be clear, I have no preference on if it goes into 0.11
or stays until 0.12
👍
Having the update check / info is great. The link could probably be somewhat dynamic; either go to the releases page or wherever depending on what level of release you are at or stage of development Frigate is at
Having the update check / info is great. The link could probably be somewhat dynamic; either go to the releases page or wherever depending on what level of release you are at or stage of development Frigate is at
Right, that one is easy, but the dead camera, low storage, etc. notifications have no link that would work for all install types
Right, that one is easy, but the dead camera, low storage, etc. notifications have no link that would work for all install types
I see the dead camera notification link taking you to the debug page. It shows all the camera stats.
The low storage, there isn’t anywhere it really can take you link wise, so that would just be purely letting you know I think..
Went ahead and added some tests for the notifications endpoint to make sure the values are what they should be. Could be expanded in another PR to test more endpoints.
Going to go ahead and close this, I think there will be a much better way to do this after the recent changes coming in 0.12
Going to go ahead and close this, I think there will be a much better way to do this after the recent changes coming in 0.12
Any hints on the coming changes?
Going to go ahead and close this, I think there will be a much better way to do this after the recent changes coming in 0.12
Any hints on the coming changes?
No need for hints you can read about it here https://github.com/blakeblackshear/frigate/pull/4055