Read the statement by Michael Teeuw here.
Poemoftheday module showing black screen
-
@e199504 said in Poemoftheday module showing black screen:
}.
is that a period?
not in JavaScript. remove that
-
@sdetweil I removed the dot. This time I am getting the error that I need to check my config file.
When I run
npm run config:check
, I am getting the following error[13.05.2021 15:06.26.058] [INFO] Checking file... /home/pi/MagicMirror/config/config.js [13.05.2021 15:06.26.130] [ERROR] Your configuration file contains syntax errors :( [13.05.2021 15:06.26.133] [ERROR] Line 56 column 3: Parsing error: Unexpected token {
This is a snippet of my config file
-
@e199504 said in Poemoftheday module showing black screen:
Line 56 column 3: Parsing error: Unexpected token {
so, that means the line before it contains an error…
USUALLY unexpected token means the line before is missing a trailing comma
{ module:"......", } /// this line, should say, MORE to FOLLOW , <--- comma { module:"ppppp", }
-
@sdetweil I copied again the array to add in the config file from the Poemoftheday
here is the snippet of my config file
// false, default for all NON-armv6l devices // true, force serveronly mode, because you want to.. no UI on this device modules: [ { module: "alert", }, { module: "MMM-PoemOfTheDay", position: "upper_third", config: { textLimit: 1000, lineLimit: 10, detectLanguageApiKey: "{API_KEY}", languageSet: ["en", "es"], updateInterval: 120000 } }, { module: "MMM-Breathwork", position: "bottom_right", },
-
@e199504 that should be ok… did config:check find anything?
also, did you do the npm install in the module folder after git clone?
what do the messages say where u start MM?
npm start or pm2
if using pm2 thenpm2 logs --lines=100
should show them
-
I am also having similar issue.