Read the statement by Michael Teeuw here.
MMM-Compliments doesn't load
-
@anthony Your json needs to look like this:
{ "anytime" : [ ".....", "....." ], "morning": [ ".....", "....." ] .... }
Nothing else…
If you want you can post your config.js entry and the json file here or via pm. But it’s important you understand how it needs to look and why.
-
@lavolp3
FIXED! Thank you very much for your help. -
@anthony can u mark your problem resolved please
-
@sdetweil
Whatever module you use (default compliments or MMM-Compliments for not crowding your config.js with a big array you can create a json file containing the array with the compliments you want and save it in your compliments folder. After that you must edit your config.js for the compliments module to target that json you created by adding the lineremoteFile: "your_file's_name.json",
under theconfig: {
. If you don’t have a programm to create the .json file you can do it on line. -
I understand… but this shows as not solved…
click the 3 dots to the right of one of your posts, select ‘mark this post as the correct answer’.
I cannot, as you are the topic owner -
@sdetweil
My mistake. Sorry. I will Mark the topic as solved right now! Thank you. -
classes: ‘small’,
remoteFile: ‘xxxxx.json’,
updateInterval: 126060*1000,Is that all you need to do to partition config.js?
As that is a top tip and ‘small’ ? remoteFile: can that be a local folder such as the corresponding modules folder?
-
@stuartiannaylor yes that’s all you need in the config part.
The module entry looks like this for me:
}, { //disabled: true, module: "compliments", position: "lower_third", config: { classes: 'small', remoteFile: 'xxxxxxx.json', updateInterval: 12*60*60*1000, } },
As that is a top tip and ‘small’ ?
Dont know what you mean with that. I think you don’t need to give it a class but with this class you can determine the size of the text.remoteFile is a file, not a folder. But it can be anywhere, however if it’s not in the module directory you ned to give the absolute path “/home/pi/…”