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.

    Troubleshooting Positions

    Scheduled Pinned Locked Moved Solved Troubleshooting
    13 Posts 2 Posters 1.3k Views 2 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 @roaminMirror
      last edited by

      @roaminMirror cant attach files, only their text as a paste

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @roaminMirror are you running on Windows?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          roaminMirror @sdetweil
          last edited by

          @sdetweil

          Yes I am running on windows for the time being until I am ready to move it to a RPI.

          The positions.js file is

          const modulePositions=["fullscreen_below"]
          

          If I attempt to change it and then start the server with npm run start it will revert back to the above code.

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

            @roaminMirror interesting… I don’t see this problem on windows…

            anyhow

            edit js/utils.js
            at the end is the function

            getModulePositions () {
            		// if not already discovered
            		if (modulePositions.length === 0) {
            			// get the lines of the index.html
            			const lines = fs.readFileSync(indexFileName).toString().split(os.EOL);  
            

            change that last line to

                                   const lines = fs.readFileSync(indexFileName).toString().split('\n');  
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @roaminMirror I was able to recreate this on windows…

              opened issue #3662 and submitted fix #3663
              change to ‘\n’ as I proposed

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • R Offline
                roaminMirror
                last edited by

                That was what was needed! Thank you for helping out with that!

                S 1 Reply Last reply Reply Quote 0
                • R roaminMirror has marked this topic as solved on
                • S Offline
                  sdetweil @roaminMirror
                  last edited by

                  @roaminMirror great… fixed in next release (Wednesday)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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