Read the statement by Michael Teeuw here.
Is there a Difference between these ???
-
Does config.js see a difference between these?
{
ipAddress: “192.168.178.31”,
name: “QNAP1”,
icon: “database”,
colorStateOnline: “green”,
colorStateOffline: “red”,
},{ ipAddress: “192.168.178.31”, name: “QNAP1”, icon: database", colorStateOnline: “green”, colorStateOffline: “red” },
I only ask because I can not get the color State’s to work.
-
@plainbroke Hi,
please use the code ticks to post code.
Yes there is a difference, you missed a " before database in the second one.
-
@plainbroke To expand on @wishmaster270 comment - To post code, please use the button
that looks like this:that button puts this ``` into your text, allowing you to get code posted like this to make it readable:
{ ipAddress: “192.168.178.31”, name: “QNAP1”, icon: “database”, colorStateOnline: “green”, colorStateOffline: “red”, },
-
@BKeyport however
if u copy/paste from outside a code block backtics
the bad quotes(curved/slanted) are copied, as in your example
and will not be corrected, and will cause problems in config.js
-
@sdetweil (that wasn’t a copy. It was escaped. backslash ` )
-
@BKeyport your post has the bad quotes
that’s all I was saying, even tho in code block -
@sdetweil oh, I C&P’d that. :)
-
@BKeyport yes, that was my point
-
Ok, I get it I did not post it correctly.
What I am trying to get at does it matter if the line is one line of text or does it need to be several lines to make it read correctly in MM? -
@plainbroke the 3backtics of the code block must be on a separate line. start and end