@skr I am working on that now.
@strawberry-3-141 has some good information in this project:
https://forum.magicmirror.builders/topic/240/soccer-standings
I am struggling with the CORS at the moment but it is solvable…
@skr I am working on that now.
@strawberry-3-141 has some good information in this project:
https://forum.magicmirror.builders/topic/240/soccer-standings
I am struggling with the CORS at the moment but it is solvable…
@schlachtkreuzer6
Because it worked with you as it should be, so I changed my whole MM installation.
I did manage to keep the compliments unchanged too.
:D I am happy …
@strawberry-3-141 @yawns thanks guys. Your info helped me too a lot!
@schlachtkreuzer6
You have tried many things, we can see it.
Maybe you cleanup the mess a little.
IN de config/confg.js remove the complete “config” from “module”: “compliments”.
"config": {
"compliments": {
So the config.js looks like this (for your compliment module)
{
module: "compliments",
position: "lower_third"
},
then in the compliments.js you default sould look like this:
defaults: {
updateInterval: 30000,
remoteFile: "~/MagicMirror/modules/default/compliments/compliments.json",
fadeSpeed: 4000
},
It should run.
#@schlachtkreuzer6
If MM is showing the default compliments, where are they?
Please post the complete defaults from your compliments.js AND
the complete part of the json for compliments from your config.js.
also post your jsonfile where to get your custom compliments.
maybe we all misunderstand you?
@schlachtkreuzer6
The way you do it is the way it should be.
BUT i also cannot get it to work like this.
please try following:
Open config/config.js and remove
"config": {
"remoteFile": "compliments.json"
}
Then open your compliments.js and check:
defaults: {
updateInterval: 30000,
remoteFile: null,
fadeSpeed: 4000
},
change remoteFile to a useable name:
defaults: {
updateInterval: 30000,
remoteFile: "~/path to your/compliments.json",
fadeSpeed: 4000
},
then restart MM (or restart the PI)
@yawns
Don’t worry, i know it is basic javascript.
@strawberry-3-141
i thought so too, but it is NOT
I just now changed the compliment.js (and deleted the remoteFile completly from here) and added this within the config.
My object is simple
fadeSpeed: 4000
updateInterval: 30000
On line 33 console.log(this.config.remoteFile) = undefined
@yawns Sorry but your option did not work for me.
Also please check the original compliment.js file:
https://github.com/MichMich/MagicMirror/blob/develop/modules/default/compliments/compliments.js
it is standard prepared there.
Please also check line 50:
if (this.config.remoteFile != null) {
At first I also thought this
would be the major config file, but it is not. Its the module.
If you console.log(this.config) it will give you an object like this. All information from the compliment.js
updateInterval: 30000,
remoteFile: null,
fadeSpeed: 4000
That is why i think @schlachtkreuzer6 should give this a try.
You have also the latest version?
I understand that modules should not be changed.
Just trying to help.
Please do correct me if I am wrong!
Friends,
using version 2.1.0 you must have the remoteFile within the configuration of the compliments.js.
the file should start like this:
defaults: {
updateInterval: 30000,
remoteFile: 'put your file here',
fadeSpeed: 4000
},
it is only working with a local file.
in my config/config.js i did not change anything for compliments module.