Read the statement by Michael Teeuw here.
Compliments remotefile
-
Hey, I got some problems with using my remote file for complements. I do now know why i wont load my .json file.
Here are some of the code used:Config.js ... { module: 'compliments', position: 'buttom', config: { updateInterval: 5 * 60 * 100, remoteFile: "compliments.json", } }, ...compliments.json { "anytime" : [ "Some Text", "Another text", ], "morning" : [ "Morning text", "Another Morning text", ], ... }When I open the devoloper console in the MagicMirror application, I get this text out and I do not see where my code should make the issue.

I do hope that someone can help me, since I do not know where the issue happens.
-
@alhen18 the remotefile is supposed to start
“compliments”:{
}use one of the online json validators to make sure its valid
-
@sdetweil Thanks, for the respons, I do not have any problem getting a remote .json file to work, I have tried with yours : https://raw.githubusercontent.com/sdetweil/testcompliments/main/mycompliments.json
I think that I will just post mine on GitHub and there by also making it easier to edit in it at a later time :)
-
@alhen18 then what was the problem u reported?
-
The real problem is that i cant get it to load from a local folder
-
@alhen18 local folder has to.be in modules tree
http://localhost:8080/modules/???/whatever.json
-
@sdetweil It is also places under /modules/default/compliments/file.json
And the .json file is build as i would construct a .json fil at any other given point
-
@alhen18 i dont understand. you say it doesnt work, but then describe how to make it work
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