Read the statement by Michael Teeuw here.
Poemoftheday module showing black screen
-
I have installed the module MMM-PoemOfTheDay,
As instructed I added the following to the config file.modules: [ { module: "MMM-PoemOfTheDay", position: "lower_third", config: { textLimit: 1000, lineLimit: 10, detectLanguageApiKey: "{API_KEY}", languageSet: ["en", "es"], updateInterval: 120000 } }. ]Upon running the magic mirror, I only get a black screen.
Did someone experience the same problem ?
-
@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=100should show them
-
I am also having similar issue.
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