Dpinger Gateway Monitor
-
I just found out that dennypage is the author/creator of dpinger (amongst his numerous other skills e.g. NUT) So this is a question for dennypage (or anyone who knows how to edit scripts, which I do not).
Is there any way to get rid of the blue block on the Gateway monitor?
I was hoping to have the output "Online" in green letters with no background blue block. Not sure if dennypage has other colors with different outputs e.g. "Offline" in red letters.
I know, this is all looks vs function, but I thought it would look much nicer.
Thanks
-
@FrankZappa Sorry, didn't see your post earlier.
While I am the author of dpinger, I did not write the supporting PHP code that displays the status. That PHP code actually predates dpinger.
Looking at the file /usr/local/www/status_gateways.php, there is no simple option to turn it off. However, the color and style should be coming from the webConfigurator theme defined in System / General Setup.
Probably the easiest thing to do would be to copy one of the existing CSS files in /usr/local/www/css/ and then modify it to your taste. I can't guide you much there... I'm even less of a CSS guy than a PHP guy.
-
@dennypage Thanks. I'll play around with it. Hopefully, I dont break anything (which I'm prone to do)
-
@FrankZappa Dennypage, thanks for the advice. I was able to edit the CSS file you referenced above and changed the color from the ugly blue (#009688) to a nicer green (#33EF0E). What I would really like to do is get rid of the colored box and just have the color of the letters coded e.g. online = green letters and offline = red letters.
Anyway, for those of you interested in changing the color on the blue box in pfSense dark theme (which is probably just me), you need to edit lines 178, 337, and 343 in /usr/local/www/css/pfSense-dark.css. If you use a different theme, you will not have the same line numbers and it may be a different color on your Gateway widget. Change the background-color to whatever CSS code color you'd like (https://www.quackit.com/css/css_color_codes.cfm).
I will play around with the CSS code to see if I can get rid of the box completely.
Many thanks to dennypage.