Read the statement by Michael Teeuw here.
Modules again.....
-
Hello everyone again. Like i said in my last post, this is a school project. I am trying to add the “MagicMirror-QuoteCatalog” but of course I have 1 simple mistake that I cannot find. This is what I have:
{ module: "MagicMirror-QuoteCatalog", header: "The Quote Catalog", position: "bottom_left", config: { timeFormat: int 60 fadeSpeed: int 5 } },If anyone could help me out again, that would be great, thank you!
Note from admin: Please use Markdown on code snippets for easier reading!
-
@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 5the 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login