@raf what calendar module is this?
what position do you have it set in config.js
@raf what calendar module is this?
what position do you have it set in config.js
@darknetone where did u install it?
what folder were you in ?
@Tom_LabHIdouille you won’t be able to share the variable across module instances
@navarrjl use the same remote file in config.js.
no way to send that info out
@Tom_LabHIdouille there is no way to do it currently with the existing code.
its easy to create variables
module: "compliments",
config: {
some_var:"http:......."
compliments:{..... }
}
the problem is using them … thru config…
but a couple lines of code in getDom() could make this functional
compliements:{
anytime: [ "whatever", "var:some_var"]
and in getDom
// existing code (small change const to let)
let complimentText. = this.randomC ompliment();
// new code
if(complimentText.startsWith("var:")
complimentText= this.config[complimentText.split(':')[1]]
now you would have to do more if the content is html (img src=“var:…”)
// loop thru the html content
let lastindex=0
while(true){
let index = complimentText.indexOf('"var:',lastindex)
if (index>=0){
lastindex=index
// some code to extract the var: string and it variable
//using indexOf and slice (note the previous found the " in front of var:
// get its variable value from config
// replace the string, and continue from the previous index (lastindex)
}
else break; // out of while loop
}
@wishmaster270 and one can make use of the module classes property to make unique names for each of the instances so that you could Target the CSS to the appropriate instance
but like copying, the css must be updated w the new class name selector
@wishmaster270 you should always include your module name 1st, in case some other module uses the same sub classes
@fedale i only see the wn 42 in the header of the 1st day of the week cell, same as the examples in the doc
@N6NG MagicMirror uses the module: setting to find the folder and files…
currently a mispelling is not reported
@fedale it only shows in the header of the 1st day of the week.
you cannot use CSS to create another column,
one would have to change the code