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 925 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.
    • S Offline
      sdetweil @e199504
      last edited by

      @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 Reply Quote 0
      • E Offline
        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 Offline
          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

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            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 Offline
              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

              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

                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