MagicMirror Forum

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

    Where to insert text?

    Troubleshooting
    3
    8
    131
    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.
    • N
      norwestie last edited by

      I’m trying to add some 3rd party modules to my MM. Many require text to be added to the config.js file. I tried but broke the config. I removed what I had pasted in and all is working now. I searched for the protocols for modifying the config but can’t find an answer. With all the {, ( ), ', " }, etc I need help. Where would I insert the following in the config.js file:
      {
      module: “MMM-quote-of-the-day”,
      position: “lower_third”,
      config: {
      language: “en”,
      updateInterval: “1d”
      }
      }

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @norwestie last edited by

        @norwestie read the link in my signature about adding moduled

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • N
          norwestie last edited by

          I used pm2 to autostart MM. Now I can’t get to the Pi desktop. I used pm2 stop mm then on the Pi command Q. MM disappeared for a few seconds but restarted right away. I rebooted and repeated but can’t get off MM

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @norwestie last edited by

            @norwestie alt-spacebar, n
            to minimize, just like on windows.

            pm2’s job is to keep the defined process running

            pm2 stop all
            once u get to the desktop

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • N
              norwestie last edited by

              Thank you, it worked!

              1 Reply Last reply Reply Quote 0
              • N
                norwestie last edited by sdetweil

                But… now i installed a couple modules, checking everything but MM is stuck ‘loading’. All that shows is the clock and weather and the header for Jeopardy. Where is my error? Below is what I have:

                                },
                                {
                                        module: "weatherforecast",
                                        position: "top_right",
                                        header: "Weather Forecast",
                                        config: {
                                                location: "West Linn",
                                                locationID: "5760009", //ID from http://bulk.openweathermap.org/sample/city.list.$
                                                appid: "xxxxx"
                                        }
                                },
                                {
                                        module: 'MMM-IPCam',
                                        position: 'top_left',
                                        config: {
                                        invertColors: false,
                                        updateInterval : 10000,
                                        host: '192.168.50.8',
                                        port: 80,
                                        user: 'xxxxx',
                                        pass: 'xxxxx', 
                                        }           
                                },
                                {
                                        module: "newsfeed",
                                        position: "bottom_bar",
                                        config: {
                                                feeds: [
                                                        {
                                                                title: "New York Times",
                                                                url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                                                        }
                                                ],
                                                showSourceTitle: true,
                                                showPublishDate: true,
                                                broadcastNewsFeeds: true,
                                                broadcastNewsUpdates: true
                                        }
                                },
                        ]
                };
                
                S lavolp3 2 Replies Last reply Reply Quote 0
                • S
                  sdetweil @norwestie last edited by

                  @norwestie please use code marks around config info

                  mark the text, and push the button above the editor like this </>

                  Sam

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • lavolp3
                    lavolp3 Module Developer @norwestie last edited by

                    @norwestie CHeck this out to get a feeling how to troubleshoot modules.
                    There might be an error zou need to find somewhere
                    https://gist.github.com/lavolp3/db7de8c0664ba95e8b9247ba685095fe

                    How to troubleshoot modules
                    MMM-soccer v2, MMM-AVStock

                    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