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

Config file

Scheduled Pinned Locked Moved Tutorials
13 Posts 6 Posters 5.6k Views 5 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
    sanaa1369
    last edited by Feb 17, 2019, 4:21 PM

    how do you create a config file when i run npm start it says the file is missing and i need to create one

    S 1 Reply Last reply Feb 17, 2019, 4:30 PM Reply Quote 0
    • S Away
      sdetweil @sanaa1369
      last edited by Feb 17, 2019, 4:30 PM

      @sanaa1369 the instructions say to copy the sample to config.js

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Feb 18, 2019, 3:44 AM Reply Quote 1
      • C Offline
        cowboysdude Module Developer
        last edited by Feb 17, 2019, 4:45 PM

        If you’re using a PI [or anyother Linux variant] then go to command prompt and change directory to MagicMirror/config
        and do this:

        cp config.js.sample config.js

        If you’re using windows well that’s simple enough:
        Open up file browser right click, copy and paste the copy and then rename it to config.js

        1 Reply Last reply Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by Feb 17, 2019, 9:44 PM

          @sanaa1369 said in Config file:

          how do you create a config file when i run npm start it says the file is missing and i need to create one

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

          Create a working config
          How to add modules

          S 2 Replies Last reply Feb 18, 2019, 3:49 AM Reply Quote 0
          • S Offline
            sanaa1369 @sdetweil
            last edited by Feb 18, 2019, 3:44 AM

            @sdetweil thank’s but i am new to this i know how to copy but were to paste.

            1 Reply Last reply Reply Quote 0
            • S Offline
              sanaa1369 @Mykle1
              last edited by Feb 18, 2019, 3:49 AM

              @cowboysdude thank"s for trying to help me but it can find the file to copy it

              1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil
                last edited by Feb 18, 2019, 3:50 AM

                The instructions say

                Copy /home/pi/MagicMirror/config/config.js.sample to /home/pi/MagicMirror/config/config.js.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sanaa1369 @Mykle1
                  last edited by Feb 18, 2019, 3:53 AM

                  @mykle1 Thank’s for trying to help me i am new to this but i must have made a mistake now when i put in npm start it give me the same message and then lock the screen and i have to reboot

                  M B 3 Replies Last reply Feb 18, 2019, 4:04 PM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @sanaa1369
                    last edited by Feb 18, 2019, 4:04 PM

                    @sanaa1369

                    It’s hard to know what’s going on there by your descriptions. However, when you were getting the error “the file is missing and i need to create one” your MM was working EXCEPT for the config.js needing to be created. In your config folder, there should be a file named config.js.sample. This file should not be edited. You have to copy this file and paste it in the same folder, renaming it to config.js. You now should have config.js.sample file and the config.js file in the same folder (the config folder of MagicMirror). Unless you’ve made some other changes this will allow the mirror to run.

                    Create a working config
                    How to add modules

                    S 1 Reply Last reply Feb 18, 2019, 9:14 PM Reply Quote 1
                    • B Offline
                      bhepler Module Developer @sanaa1369
                      last edited by Feb 18, 2019, 4:07 PM

                      @sanaa1369 - The screen isn’t really locked, it’s just displaying the MagicMirror application in full screen. If you hit Alt+Q it should give you your command prompt back.

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/13
                        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