1
23.7 Legacy Series / Interface color
« on: January 01, 2024, 01:53:36 pm »
Hello,
I'm new to this forum and already read a lot, but did not find an answer on my actual question.
I want to change the color of the interfaces in the traffic graphs widget; like others before:
https://forum.opnsense.org/index.php?topic=32307.msg156131#msg156131
https://forum.opnsense.org/index.php?topic=6845.msg29747#msg29747
unfortunately these threads were not answered.
I found the code where I can change the color (/usr/local/www/widgets/widgets/traffic_graphs.widget.php) and I already did, but this "patch" is not update resistant. I see in the code, that the interfaces have a color stored in a database. But I did not get what database it is. Excuse my lack of knowledge but I'm not a programmer and I mostly struggle on these jumps into other code (require etc).
So perhaps here is someone who has the knowledge and is willing to help me and as the links above shows also others who want to customize these graphs.
So the question is which database is used to get the interfaces color in the traffic graph widget and how can this be changed? Thanks a lot.
I'm new to this forum and already read a lot, but did not find an answer on my actual question.
I want to change the color of the interfaces in the traffic graphs widget; like others before:
https://forum.opnsense.org/index.php?topic=32307.msg156131#msg156131
https://forum.opnsense.org/index.php?topic=6845.msg29747#msg29747
unfortunately these threads were not answered.
I found the code where I can change the color (/usr/local/www/widgets/widgets/traffic_graphs.widget.php) and I already did, but this "patch" is not update resistant. I see in the code, that the interfaces have a color stored in a database. But I did not get what database it is. Excuse my lack of knowledge but I'm not a programmer and I mostly struggle on these jumps into other code (require etc).
So perhaps here is someone who has the knowledge and is willing to help me and as the links above shows also others who want to customize these graphs.
So the question is which database is used to get the interfaces color in the traffic graph widget and how can this be changed? Thanks a lot.