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.

    config.js

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    14 Posts 5 Posters 4.8k Views 4 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.
    • G Offline
      geo
      last edited by

      hi,in this config i am unable to add a line under position in compliments to insert config.
      i can do this in config.sample and config.file which is a copy.
      can anyone explain this please.
      cheers,
      geo

      S bheplerB 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @geo
        last edited by

        @geo sorry, don’t understand the question…

        what editor are you using on the config.js file?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • bheplerB Offline
          bhepler Module Developer @geo
          last edited by

          @geo said in config.js:

          hi,in this config i am unable to add a line under position in compliments to insert config.

          If you are using the nano editor, you can go to the end of the line above where you want to insert the new line and then press enter. That will give you a new line to play with.

          i can do this in config.sample and config.file which is a copy.
          can anyone explain this please.

          For starters, the name of the file is config.js. It has to be named exactly that in order for the system to work. So I would recommend that you copy your config.sample to config.js by entering cp config.sample config.js and then start your mirror process.

          Once you have a working config file, we can work on modifying it.

          S G 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @bhepler
            last edited by

            @bhepler he has a working system… now wants to add more

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • G Offline
              geo @bhepler
              last edited by

              @bhepler hi thx for that
              however when i try to copy using cp config.sample config.js i get the message no such file or directory

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

                @geo its

                cp config.sample.js config.js
                

                warning, its will overwrite the file on the right side of that command…
                it will NOT warn you

                u need to learn the linux commands
                so u can find files, copy , edit, create

                do a search on youtube “learn basic linux commands”

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                G 2 Replies Last reply Reply Quote 1
                • G Offline
                  geo @sdetweil
                  last edited by

                  @sdetweil i tried yours and that was the message got

                  Mykle1M 1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @geo
                    last edited by Mykle1

                    @geo

                    1. Open a new terminal

                    2. type cd MagicMirror/config

                    3. Press Enter key

                    4. type cp config.sample.js config.js

                    5. Press Enter key

                    6. type cd ..

                    7. Press Enter key

                    8. type npm start

                    9. Press Enter key

                    10. Say thank you. :-)

                    Create a working config
                    How to add modules

                    G 1 Reply Last reply Reply Quote 0
                    • G Offline
                      geo @sdetweil
                      last edited by

                      @sdetweil hi looked looked a linux only recognised 4 commands.,but unless you understand code and know how to write it and what does then it means nothing to someone like me and thats why i have to ask for help.i have loaded another sd card withmm to practice but once the dreaded create a config appears i’m back to square one and have to delete mm and start again,ugh.
                      cheers

                      S B 2 Replies Last reply Reply Quote 0
                      • G Offline
                        geo @Mykle1
                        last edited by

                        @Mykle1 as they say in yorkshire " Ta very much"

                        Mykle1M 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @geo
                          last edited by

                          @geo unlike windows, linux is case sensitive on filenames and command names…

                          here are some linux commands compared to windows

                          ls = dir , LS is nothing
                          cd = cd
                          rm = delete
                          cp = copy
                          mv = move

                          almost every command has help built in , using the --help parameter

                          cp --help

                          you can also ‘read the manual’ for commands by using the man command
                          man cp (to get out its the letter q)

                          in graphical mode, gedit is a pretty decent editor
                          in text mode (or over ssh) i hate vi, so I use nano… but it doesn’t support mouse actions like a graphical app.

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            BD0G @geo
                            last edited by

                            @geo Dont delete the full Magic Mirror image and start over!
                            Thats a waste of time.
                            Instead
                            change directories to the Magic Mirror directory like this

                            cd MagicMirror (press enter)
                            then run this command
                            npm run config:check (press enter)

                            This will run a build in linter (which is a fancy way of saying a program that checks the entries in a file to determine if there are errors)

                            Then view the results and the errors presented. Typicallly there is one symbol missing right above where the errors are reported. Pay attention to the line numbers that are listed where the errors start and look one or two lines up from that line number and see if you can perceive an issue.

                            G 1 Reply Last reply Reply Quote 0
                            • Mykle1M Offline
                              Mykle1 Project Sponsor Module Developer @geo
                              last edited by

                              @geo

                              Here is some help with creating a working config. It’s a short read but helpful.

                              https://forum.magicmirror.builders/topic/4528/how-to-create-a-working-config-for-absolute-beginners

                              Create a working config
                              How to add modules

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                geo @BD0G
                                last edited by

                                @BD0G hi,great thankyou

                                1 Reply Last reply Reply Quote 0

                                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
                                • 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