frigate icon indicating copy to clipboard operation
frigate copied to clipboard

FEAT: Notifications In Frigate Frontend

Open NickM-27 opened this issue 2 years ago • 12 comments

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 👍

NickM-27 avatar May 21 '22 20:05 NickM-27

Here are some screenshots showing the current UI:

Screen Shot 2022-05-22 at 10 19 38 AM

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.

NickM-27 avatar May 22 '22 16:05 NickM-27

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?

Raphael909 avatar May 23 '22 11:05 Raphael909

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

NickM-27 avatar May 23 '22 11:05 NickM-27

This is what the UI looks like after latest changes:

Screen Shot 2022-05-23 at 8 18 44 AM

NickM-27 avatar May 23 '22 14:05 NickM-27

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.

coldkevin avatar May 26 '22 06:05 coldkevin

Good idea :)

DrSpaldo avatar May 31 '22 21:05 DrSpaldo

Here's a screenshot example for frigate update

Screen Shot 2022-05-31 at 16 02 47 PM

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?

NickM-27 avatar May 31 '22 22:05 NickM-27

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 👍

NickM-27 avatar May 31 '22 22:05 NickM-27

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

DrSpaldo avatar May 31 '22 22:05 DrSpaldo

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

NickM-27 avatar May 31 '22 22:05 NickM-27

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..

DrSpaldo avatar Jun 01 '22 12:06 DrSpaldo

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.

NickM-27 avatar Jun 10 '22 23:06 NickM-27

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

NickM-27 avatar Nov 23 '22 13:11 NickM-27

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?

DrSpaldo avatar Nov 24 '22 13:11 DrSpaldo

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

NickM-27 avatar Nov 24 '22 13:11 NickM-27