Read the statement by Michael Teeuw here.
I changed text in a module, now I don't get the module
-
So, I’ve got MM on a Pi 4b. I installed Magic Mirror, and changed a few things - measurements from Metric to Imperial, being American and behind the times, and weather locations. So far so good.
Then I went and changed the compliments (because I don’t need a computer to tell me I’m sexy), and the opening messages (because I do want it to know I’m the boss and tell me it does).
Now it doesn’t do either one. just a big blank space. I was going to just toss it and re-install it, but that would just mean it would happen again next time.
So, I think I’d like to know how to prevent it instead. Obviously, other people manage to do this, so I’d like to know where I’m getting it wrong.
I opened the xxx.js files in the desktop environment; it opened them automatically with Mousepad, which I gather is the Pi’s text editing app. Should I have used something else? Maybe open it in the Terminal, and if so, how? Or is there something else I’m missing?
Thanks, guys
-
@halpi-thousand 1st
NEVER edit the module source code
ALL config goes in config.js
to recover a shipped mm file do( from the mm folder)
git status
if a file is modified, then do
git checkout ???
where ???
is the full path to the modified source filefor compliments, for example
git checkout modules/default/compliments/compliments.js
-
@sdetweil said in I changed text in a module, now I don't get the module:
NEVER edit the module source code
ALL config goes in config.js
to recover a shipped mm file do( from the mm folder)
git statusThanks, that did the trick.
But how can I change things like the compliments text and opening greetings and such, things that aren’t in the main config file? Or am I just stuck with a very obsequious Pi?
-
@halpi-thousand just put the stuff into config.js
see the two links in my signature below