Read the statement by Michael Teeuw here.
where can i set a colour for up/down in MMM-ServerStatus?
-
Hello, I can’t find anything about where I can make this setting.
It’s about this module :
https://github.com/XBCreepinJesus/MMM-ServerStatusChris
-
@chris47803 did u read the README? clearly documents what to do
-
I read it, but I don’t speak English very well. I don’t understand it though.
It says:
|upColor
| String. Set a color for up / online results. This gets passed directly to thecolor
setting of the<span>
tag so it can be anything you can use in HTML / CSS styling (e.g.," green “or” # 00ff00 ").
In which file do I have to enter the color? -
@chris47803 those settings go in the module entry in config.js
-
Thank you.
I understand that, but where exactly do I have to enter what?
Can you please help me?{ module: "MMM-ServerStatus", header: "Network Devices", // Can be anything you want, or blank position: "top_right", // Choose a position config: { 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"}, { ip: "192.168.2.23", name: "Marion PC"}, { ip: "192.168.2.30", name: "Nikolai PC"}, { ip: "192.168.2.34", name: "Wohnzimmer PC"}, { ip: "192.168.2.29", name: "Christian NB"}, { ip: "192.168.2.28", name: "Christian NB"}, { ip: "192.168.2.37", name: "Nikolai NB"}, { ip: "192.168.2.44", name: "Magic Mirror"}, { ip: "192.168.2.27", name: "Christian A40"}, { ip: "192.168.2.38", name: "Christian Tab A7"}, { ip: "192.168.2.31", name: "Nikolai Honor 20 Pro"}, { ip: "192.168.2.36", name: "Nikolai Honor"}, { ip: "192.168.2.25", name: "Christian HTC"}, { ip: "192.168.2.21", name: "Marion A40"}, { ip: "192.168.2.104", name: "Drucker Schwarz"}, { ip: "192.168.2.110", name: "Drucker Farbe"}, { ip: "192.168.2.41", name: "Maxico Luftbefeuchter"}, { ip: "192.168.2.48", name: "LG TV"}, { ip: "192.168.2.35", name: "Link2Home Balkon"}, { ip: "192.168.2.47", name: "Link2Home Schlafzimmer-Licht"}, { ip: "192.168.2.45", name: "Link2Home Strauch"}, { ip: "192.168.2.20", name: "Link2Home Garage"}, { ip: "192.168.2.43", name: "Link2Home-Rose"}, { ip: "192.168.2.32", name: "Unbekannt"}, { ip: "192.168.2.33", name: "Unbekannt"}, { ip: "192.168.2.50", name: "Unbekannt"}, { ip: "192.168.2.40", name: "Unbekannt"}, { ip: "192.168.2.39", name: "Unbekannt"}, { ip: "192.168.2.46", name: "Unbekannt"}, { ip: "192.168.2.26", name: "Unbekannt"} ], }, },
-
@chris47803 anywhere inside the config:{} section of the module.
before or after the list of hosts.
read the ‘how to add modules’ link in my signature below
-
Many thanks for your response. But I can program badly in English and even worse. If I put it this way, Magic Mirror won’t start anymore.
{ module: "MMM-ServerStatus", header: "Network Devices", // Can be anything you want, or blank position: "top_right", // Choose a position config: { upColor: "green", 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"}, { ip: "192.168.2.23", name: "Marion PC"}, { ip: "192.168.2.30", name: "Nikolai PC"},
-
-
[13.03.2021 15:34.45.242] [INFO] Checking file… /home/pi/MagicMirror/config/ config.js
[13.03.2021 15:34.45.360] [ERROR] Your configuration file contains syntax errors :(
[13.03.2021 15:34.45.363] [ERROR] Line 182 col 2 Parsing error: Unexpected token ] -
@chris47803 said in where can i set a colour for up/down in MMM-ServerStatus?:
Line 182 col 2 Parsing error: Unexpected token ]
so, what is on line 181?