[QUESTION] How to make a "top-5 most received events from a device type" widget
Hi all. I want to create a widget that shows the top 5 most frequent events from devices of a specific device type. Each event sent by the device includes an eventNumber. I’d like to display the top 5 eventNumber values that occur the most.
I tried using the Timeseries Table widget with the COUNT aggregator, but it only gives me the total count without any categorization (or maybe I’m missing something).
Can anyone help me with this, giving me some directions to handle this case?
Hi. Please describe this request in as much detail as possible. What do you mean by event type?
Our ThingsBoard Edge instance receives data from devices in the format { ..., eventNumber: someNumber, ... }. The eventNumber corresponds to an enum from the device’s event list.
Each time the device reports a different event, it sends a different eventNumber. I want to create a widget that shows the top N most frequent eventNumber values, along with the count of how many times each one has occurred, in a period.
Please let me know if anything is unclear. Thanks!
There is no such default widget for this purpose. You will need to create a custom widget
Thanks alot! So the best direction is to make a custom widget? I want to keep it working with thingsboard flow and easy to extends with other devices too
So the best direction is to make a custom widget?
I see no other options.
We're letting you know that this issue, labeled as "help wanted", has been open for a while. This label is used to seek support from the GitHub community, especially for issues that fall outside the scope of the ThingsBoard support team's expertise. Unfortunately, there hasn't been any community input or progress on this issue over the month(s). We're closing this ticket to keep our repository well-maintained and focused on active issues. We appreciate your patience and understanding.