MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Poemoftheday module showing black screen

    Troubleshooting
    3
    7
    200
    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
      e199504 last edited by

      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 Reply Quote 0
      • S
        sdetweil @e199504 last edited by

        @e199504 said in Poemoftheday module showing black screen:

        }.

        is that a period?

        not in JavaScript. remove that

        Sam

        Create a working config
        How to add modules

        E 1 Reply Last reply Reply Quote 0
        • E
          e199504 @sdetweil last edited by

          @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 Reply Quote 0
          • S
            sdetweil @e199504 last edited by sdetweil

            @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

            Create a working config
            How to add modules

            E 1 Reply Last reply Reply Quote 0
            • E
              e199504 @sdetweil last edited by e199504

              @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 Reply Quote 0
              • S
                sdetweil @e199504 last edited by sdetweil

                @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

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • O
                  Ortega65 last edited by

                  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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy