Read the statement by Michael Teeuw here.
Loading compliments from external file
-
Greetings!
My mirror project is destined to be a gift for a friend and as part of the configuration for it, my wife and her friends are writing a metric buttload (100+) of compliments. I’m going to have to load those compliments into the compliment module. Which is fine, but I am concerned that if I screw up even one of those compliments, the
config.jsfile will not be a valid file and the MagicMirror interface will not display properly.My solution, thanks in no small part to @strawberry-3-141 expert assistance, is to put the compliment arrays into a separate JSON file and load that file as an optional parameter
fileName. I have the code ready and it has passed my alpha testing. ThefileNameparameter is optional and this is an extension of the existing core modules.I’d like to add this feature to the core MagicMirror project. Is this a valuable feature? How do I go about contributing a minor change to the core?
-
Submit a PR request on the Github page. Do it against the ‘
develop’ branch please. -
Done. Thanks.
-
Nice, I was looking for that feature - thanks for your work bhelper. Good idea! Actually I try to change the color as well, but I wasn’t successfull so far.
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