-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Color code events in timeline based on priority #687
Comments
@ivelin I will take this up and submit a PR when implemented. |
@ivelin There's a missing link here |
@ivelin I'm going through this gradually, and a fix for this feature request still seems unclear to me.
If this will be a fix to this issue, then this issue should have been opened in the edge repository. On the second hand, should the priority level be sent to the edge-device from the PWA? |
Here it is. We can move this switch to the ambianic-ui/src/views/Timeline.vue Line 396 in 1c96143
|
Yes, this will involve updates on both edge and UI. We need a separate As an initial step, we can add the suggested We can create follow-up feature requests that allow users to do several things via the UI:
Thoughts?
|
I am resuming work on this. |
Breaking it down into smaller PRs is fine, but each has to add a meaningful improvement that is well tested. Tests should demonstrate clearly how the change is expected to work and be used by other upcoming PRs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is your feature request related to a problem? Please describe.
Currently all events show with blue / INFO color in timeline. Whether a person was detected or a fall was detected, the color coding of the circular event icon in the upper left corner is the same. See screenshot.
Ability to filter events based on priority would be also helpful for notifications.
Describe the solution you'd like
It would be desirable to color code event icons based on priority values: INFO, WARNING so its easier for users to spot more important events faster.
See example JSON payloads of events sent from an edge device. Notice the priority parameter.
The PWA code is already designed to color code icons based on event priority level (see this).
However the edge device code always logs events at info level (see this).
The event level is then picked up by the event formatter and saved in the timeline event yaml log file (see this).
As an initial step, we can add a
priority
argument to the edge pipeline configuration yaml, that sets the default priority level for each type of detection event. For example:Then the event logger in
store.py
can save each event at the configured priority / log level, which should result in the correct color coding in the UI.Here is the corresponding ambianic-edge issue.
Describe alternatives you've considered
A more advanced version of this feature would allow users to edit the default priority level for various types of events. For example for certain scenarios person detection maybe just at INFO level (counting people appearances in a living room), but in others it may be a WARNING priority (people breaching of a security perimeter at night).
Additional context
Yet another feature to consider is the ability to mute events under a certain priority threshold. For example a user may only want to be notified about WARNING level events and not INFO events.
The text was updated successfully, but these errors were encountered: