• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Poemoftheday module showing black screen

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 800 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    e199504
    last edited by May 13, 2021, 11:14 AM

    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 ?

    S 1 Reply Last reply May 13, 2021, 11:39 AM Reply Quote 0
    • S Away
      sdetweil @e199504
      last edited by May 13, 2021, 11:39 AM

      @e199504 said in Poemoftheday module showing black screen:

      }.

      is that a period?

      not in JavaScript. remove that

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply May 13, 2021, 1:15 PM Reply Quote 0
      • E Offline
        e199504 @sdetweil
        last edited by May 13, 2021, 1:15 PM

        @sdetweil I removed the dot. This time I am getting the error that I need to check my config file.

        When I runnpm 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

        photo

        S 1 Reply Last reply May 13, 2021, 1:18 PM Reply Quote 0
        • S Away
          sdetweil @e199504
          last edited by sdetweil May 13, 2021, 1:19 PM May 13, 2021, 1:18 PM

          @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",
               	}
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply May 13, 2021, 3:06 PM Reply Quote 0
          • E Offline
            e199504 @sdetweil
            last edited by e199504 May 13, 2021, 3:08 PM May 13, 2021, 3:06 PM

            @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",
            		},
            
            S 1 Reply Last reply May 13, 2021, 3:44 PM Reply Quote 0
            • S Away
              sdetweil @e199504
              last edited by sdetweil May 13, 2021, 3:55 PM May 13, 2021, 3:44 PM

              @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 then

              pm2 logs --lines=100 
              

              should show them

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • O Offline
                Ortega65
                last edited by May 28, 2021, 5:48 AM

                I am also having similar issue.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy