Read the statement by Michael Teeuw here.
Modules again.....
-
@brenj said in Modules again.....:
Try this:
{ module: "MagicMirror-QuoteCatalog", header: "The Quote Catalog", position: "bottom_left", config: { timeFormat: 60, fadeSpeed: 5 } },
-
-
Weird, I didn’t see your answer until after I submitted mine!
-
@justjim1220 said in Modules again.....:
Weird, I didn’t see your answer until after I submitted mine!
I was in stealth mode. ;-)
P.S. Your answer was only partially correct. ;-)
-
@brenj said in Modules again.....:
timeFormat: int 60 fadeSpeed: int 5
the json data model is if text, then the data is quoted foo:“something”, if numeric, the data is not quoted, bar:60
no ‘int’
-
@brenj You definitely need some JSLint: https://www.jslint.com/
:winking_face:
-
Haha, I need to pay closer attention…:smiling_face_with_sunglasses:
-
Or lay off the booze. ;-)
-
BWAAHHAAAAHAHAHAHAHA!!!
If only I was able to drink… LMAO!
Having so many health problems and being on a buttload of meds, I’m almost afraid to drink!!!
Although, with this Meniere’s Disease, I’m pretty sure everyone thinks I am a drunk. I have to balance and in a state of extreme vertigo 24/7… :face_with_stuck-out_tongue_winking_eye: :dizzy_face: :confused_face: :upside-down_face:
-
@sdetweil Actualy JSON requires quotation of the key and of the value (if the value is a string)
Example of a JSON file:
{ "string": "This is a string", "bool": true, "int", 1, "float": 3.14, "arrayOfStrings": [ "string1", "string2" ], "arrayOfInts": [ 1, 2 ] }
The same can be used in a Javascript file, but as an object. You can also throw away the quotation of the keys.