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

MagicMirror regions

Scheduled Pinned Locked Moved System
8 Posts 3 Posters 773 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.
  • D Offline
    DanClarkCBET3
    last edited by Jul 3, 2024, 4:06 PM

    I have been using Magic Mirror for years. In that time I have made some changes to the setup. One is I added regions to the index.htlm file. Until the latest update they have worked but now I get an error indicating unrecognized region for my modules. Is there a new place that I need to make these changes? Here is a copy of my changes to the index file:

    <div class="region fullscreen below"><div class="container"></div></div>
    <div class="region top bar">
      <div class="container"></div>
      <div class="region top left"><div class="container"></div></div>
      <div class="region top center"><div class="container"></div></div>
      <div class="region top right"><div class="container"></div></div>
    </div>
      <div class="container"></div>
    <div class="region middle"><div class="container"></div></div>
    <div class="region middle left"><div class="container"></div></div>
    <div class="region middle center"><div class="container"></div></div>
    <div class="region middle right"><div class="container"></div></div>
    </div>
    <div class="region upper third"><div class="container"></div></div>
    <div class="region lower third">
      <div class="container"><br /></div>
    </div>
    <div class="region bottom bar">
      <div class="container"></div>
      <div class="region bottom left"><div class="container"></div></div>
      <div class="region bottom center"><div class="container"></div></div>
      <div class="region bottom right"><div class="container"></div></div>
    </div>
    <div class="region fullscreen above"><div class="container"></div></div>
    
    S 1 Reply Last reply Jul 3, 2024, 4:27 PM Reply Quote 0
    • S Offline
      sdetweil @DanClarkCBET3
      last edited by Jul 3, 2024, 4:27 PM

      @DanClarkCBET3 only thing you can do is edit the source at

      ~/MagicMirror/js/utils.js

              // return all available module positions
              getAvailableModulePositions () {
                      return ["top_bar", "top_left", "top_center", "top_right", "upper_third", "middle_center", "lower_third", "bottom_left", "bottom_center", "bottom_right", "bottom_bar>
              },
      

      note that because you are editing our file, this will block updates

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Jul 3, 2024, 6:34 PM Reply Quote 0
      • D Offline
        DanClarkCBET3 @sdetweil
        last edited by Jul 3, 2024, 6:34 PM

        @sdetweil thanks for the help. That cleared the error but my modules are still not being displayed.

        S 1 Reply Last reply Jul 3, 2024, 7:34 PM Reply Quote 0
        • S Offline
          sdetweil @DanClarkCBET3
          last edited by sdetweil Jul 3, 2024, 7:35 PM Jul 3, 2024, 7:34 PM

          @DanClarkCBET3 i would use the developers window to examine the dom. see if your elements have the right classes on them.

          you rechanged index.html, right?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Jul 3, 2024, 7:51 PM Reply Quote 0
          • K Offline
            karsten13 @sdetweil
            last edited by Jul 3, 2024, 7:51 PM

            @sdetweil

            there were more changes in the corresponding PR, see https://github.com/MagicMirrorOrg/MagicMirror/pull/3445/files

            S 1 Reply Last reply Jul 3, 2024, 7:58 PM Reply Quote 0
            • S Offline
              sdetweil @karsten13
              last edited by sdetweil Jul 3, 2024, 8:02 PM Jul 3, 2024, 7:58 PM

              @karsten13 main should call utils to get the list. I thought it was a requested charge in the pr.

              actually the code should read index.html to get them. so users dont have to edit our code. I know it’s an edge case…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Jul 3, 2024, 8:20 PM Reply Quote 0
              • D Offline
                DanClarkCBET3 @sdetweil
                last edited by Jul 3, 2024, 8:20 PM

                @sdetweil Thanks everyone. It is working perfectly now.

                S 1 Reply Last reply Aug 17, 2024, 7:57 PM Reply Quote 1
                • S Offline
                  sdetweil @DanClarkCBET3
                  last edited by Aug 17, 2024, 7:57 PM

                  @DanClarkCBET3 for the next release I have submitted a pull request to detect the regions used in index.html instead of hard coded…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  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