vnstat dashboard widget

Started by dirtyfreebooter, March 19, 2026, 12:54:20 AM

Previous topic - Next topic
looking for feedback on this vnstat dashboard widget.

screenshots: https://imgur.com/a/6QKI3a3

couple of questions:

  • at first i put the interface/period(daily/monthly/yearly) in widget preferences, but then thought it was nice to be able to interact with it more. no other dashboard widget though have interactive html elements..
  • i am not sure what the best way to enumerate all the interfaces is. there are a bunch of interfaces that are nonsense. i am enumerating the interfaces that come from vnstat data, not the interfaces from opnsense. not sure which list to pick at the authority. if you removed an interface and wanted to look at historical data, using the interfaces in vnstat data seems correct...

open to any other thoughts, suggestions, best practices.


This looks good!

Would it be possible as well to show transfer rate?

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
N355 - i226-V | AQC113C | 16G | 500G - PROD

PRXMX
N5105 - i226-V | 2x8G | 512G - NODE #1
N100 - i226-V | 16G | 1T - NODE #2

Quote from: Seimus on March 19, 2026, 01:08:48 PMThis looks good!

Would it be possible as well to show transfer rate?

Regards,
S.

yep, i can add that.

That would be be great.

It may seem stupid but I miss to see per interface transfer rates.

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
N355 - i226-V | AQC113C | 16G | 500G - PROD

PRXMX
N5105 - i226-V | 2x8G | 512G - NODE #1
N100 - i226-V | 16G | 1T - NODE #2

yea sounds good. i am going to do a PR soon, but i wanted to get some initial feedback on visual pieces, so thanks.

At least from my point of view the visual aspect is very good.
Its simple and eye catching. Basically providing a simple understanding of whats going on. It looks very natural as well to the other widgets.

For the transfer rates, if you could do bit/s as well pps I would be thankful. PPS is a metric important to troubleshooting for performance, and lot of time omitted and forgotten.

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
N355 - i226-V | AQC113C | 16G | 500G - PROD

PRXMX
N5105 - i226-V | 2x8G | 512G - NODE #1
N100 - i226-V | 16G | 1T - NODE #2