A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
where can i set a colour for up/down in MMM-ServerStatus?
-
@chris47803 the module uses a template and does this
{% for host in pingResults %} {% if host.isAlive %} <span style="color: {{ config.upColor }};" class="fas fa-{{ config.upSymbol }}"></span> {{ host.name }} {{ config.upText }} {% else %} <span style="color: {{ config.downColor }};" class="fas fa-{{ config.downSymbol }}"></span> {{ host.name }} {{ config.downText }} {% endif %} <br /> {% endfor %}
-
I got it. The color is for symbols only
Thank you
{ module: "MMM-ServerStatus", header: "Netzwerk", // Can be anything you want, or blank position: "top_right", // Choose a position config: { upColor: "#00ff00", downColor: "#ff0000", upSymbol: "globe", downSymbol: "globe", hosts: [ // For example { ip: "192.168.2.2", name: "Fritz!Box"}, { ip: "192.168.2.1", name: "Huelsen DC"}, { ip: "192.168.2.5", name: "NAS 542"}, { ip: "192.168.2.24", name: "Christian PC"},
-
@chris47803 ah
-
Is there a way to left-align the device/network names and right-align the status? current view looks centred
.
-
Solved, i figured it out but going through how it works on other modules. Just incase anyone else needs to know this is what I added to custom.css
.MMM-ServerStatus table td { text-align: left !important; }
-
Hey @miniashman great having your information here. That solved partwise my color problem, but I have shown my device, the colored icon and additional the word UP.
I can’t find how to get rid of this word. I haven’t it in my config :angry_face:{ module: "MMM-ServerStatus", header: "", position: "top_center", config: { upSymbol: "thumbs-up", downColor: "#ff0000", upColor: "#00ff00", downColor: "thumbs-down", hosts: [ { name: "door-bell", ip: "192.168.0.6" }, ], }, },
Any help for me?
-