Read the statement by Michael Teeuw here.
First start from the mirror does not work
-
your config works !!! juhu thx but i have a other wrong :/
i will the language from the clock in germany
Module.register("clock",{ // Module config defaults. defaults: { timeFormat: config.timeFormat, displaySeconds: true, showPeriod: true, showPeriodUpper: false, clockBold: true }, // Define required scripts. getScripts: function() { return ["moment.js"]; }, // Define start sequence. start: function() { Log.info("Starting module: " + this.name); // Schedule update interval. var self = this; setInterval(function() { self.updateDom(); }, 1000); // Set locale. moment.locale(config.language); },
Note from Moderator: Please use proper Markdown on code snippets for easier reading.
-
@samydp all you should have to do is change the language portion of your
config.js
from
language: 'en',
->language: 'de',
As for the rest of your modules, I recommend adding them one by one to your
config.js
file to make sure they work. If you get that electron.js error, it was on the module you just added.-Luke
-
Many thanks for your help and your tip! but only tow module works =( the clock an the compliments why this ?
Whenever I will add another module of the screen black!
i have install the electron.js again but
the add the module as in the proceeds described readme does not work ! -
Beats me, did you run npm install in the MagicMirror folder?
-
yes i have install the npm in the MM Folder , only compliment, clock and news works other moduls come a error ( no config file )
-
Hi I am having this same issue. Did you ever get it working?
-
Maybe I’m missing something here, but it seems you try to run
npm start
from a remote shell. That does not work since it doesn’t know on which screen to start. Try:DISPLAY=:0 npm start
-
@MichMich Hi! I am running npm start directly on the pi, and I get the same exact error.
-
-
Interesting as I didn’t have to do that as a separate step. However, as I posted in a different thread yesterday, keeping the base software on your Raspberry Pi is important.