LED color based on bandwidth usage

Hello, thanks for this mod, I like this bandwidth dependent coloring.

Could you pelase outsource the treshold and color config out of the code into the config file --> /etc/config/omnia-led-colors. I think it belongs there, and people wouldn’t wonder where to adjust colors.
So it could be look like:

config led wan
option colorfunction 'dualbandwidth’
option interface 'eth1’
option limit_in 90000000
option limit_out 15000000
option Drange 5% white # 0-5%
option Drange 30% green # 5-45%
option Drange 60% yellow #45-90%
option Drange 100% red #90%-
option Urange 50% blue
option Urange 90% purple

if upload and download happen at the same time maybe they could be blinkings, showing rapidly the upload and download colors.

3 Likes