Read the statement by Michael Teeuw here.
remotecompliments disappeared - please help
-
@forjer the code and comments
// Hide module on startup. // If the module receives data, the module will reveal itself. self.hide(0); self.hidden = true;
which is reasonable, but it just reinforces no data.
sorry no idea on another module that does this other than the default compliments module with remotefile
-
@sdetweil Hmm…is there a simple way to hard code in a RemoteCompiment to force it to show? Just as a troubleshooting step to see it?
I guess I could consider the default compliments with remote file. Can I run a second default compliment module at the same time? Is it as simple as copying the folders and renaming them “compliments2” or something?
-
@forjer the default compliments module can be used multiple times without problem. you either pass the compliments as config parms or in a remotefile as config parm
-
@sdetweil So are you saying I can run two instances of compliments at the same time, shown in two different locations on the same display? And is this done by copying the compliments.js to make a “compliments2.js”?
-
@forjer yes, two instances, no need to copy the module
-
@sdetweil I’m sorry, I’m a little slow. And this is making my brain hurt. I really appreciate your patience with me.
How would this look in config.js? And how does it know which compliments go in what position of the MM?
What I’m after is a normal compliments module running in lower_third, and a second compliments module sliced into 10 time slots with a different set of compliments running in upper_third. I’ve just finished modifying the default compliments.js to get my 10 time slots and that seems to work, so I’m getting closer.
-
@forjer modifying?
no need to modify ( never modify module source code)
code two modules wherever u want.
put the compliments text in the config block in config.jsI am on my phone so everything but the actual compliments
{ module:"compliments", position:"lower_third", config:{ compliments:{ same as in defaults section of code whatever compliments for module 1 } OR remotefile:"http://....... somefile on some server" } }, { module:"compliments", position:"upper_third", config:{ compliments:{ same as in defaults section of code whatever compliments for module 2 } } }
-
@sdetweil Progress. So I saved a copy of my modified compliments.js into a compliments2 folder as compliments2.js and renamed module.register to compliments2. I then reverted my compliments.js back to original. I then added a compliments2 section into my config.js. And now I have two separate compliments running! I tried that a few hours ago but I must have done something wrong so it didn’t work.
In the way you coded it, would I be able to have the ability to run Module 1 with the default time slots (complimentArray) while Module 2 runs a different time slot schedule?
Now I think I’d like to get a remotefile set up but I’m guessing I’ll run into some issue with remotefile for my compliments2.
-
@sdetweil Also, is there a way to get my compliments2 to allow time splits at say 11:30 instead of just integer hours? Something like the following?
afternoonStartTime: 11:30, afternoonEndTime: 13,
It would appear the complimentArray would need to be adjusted by changing “hour” to something else?
} else if (hour >= this.config.afternoonStartTime && hour < this.config.afternoonEndTime && this.config.compliments.hasOwnProperty("afternoon")) { compliments = this.config.compliments.afternoon.slice(0);
-
@forjer read the doc
u can have different remotefiles too