MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. edward-shen
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    E
    Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 2
    • Posts 11
    • Groups 1

    Posts

    Recent Best Controversial
    • MMM-pages & MMM-pages-indicator - Lightweight module pages on your mirror!

      Ever want your mirror to have pages of modules, similarly to how the screens on your phone work?

      I would like to present to you all MMM-pages!

      Here’s a youtube example!

      You can set what apps modules you want on each page and what modules you want always on. In the example, I have the clock and weather modules always shown (as well as the page indicator), while switching out the rest.

      I originally wanted to add animations (slide left/right) to the modules, but I’m actually very satisfied with how it looks right now. Leave a comment/issue on github if you’d really want those.

      Please note that this does not provide manual page changing functionality! You need to have a module that sends a specific notification to change the page!

      It’s difficult to implement some form of input recognition when there’s dozens of input methods encapsulated in their own modules. That would require me to basically have some variant of that module in this module, which would bloat it to no end. Asking your module input authors to send a request on a specific action instead is keeps everything relatively bloat free.

      Download link:
      [card:edward-shen/MMM-pages]

      While you’re at it, you may want something to indicate which page you’re on, so here’s something to help with that!

      MMM-page-indicator!

      example

      No need to worry about what page you’re on! With MMM-pages-indicator, you can see what page you’re on! You don’t even have to worry about configuring it, MMM-pages automatically configures it for you! Just add it to your modules!

      Download:
      [card:edward-shen/MMM-page-indicator]

      Quick FAQ:
      Why separate the two? Why not make it one thing?

      It would make sense to, wouldn’t it? But I wanted this to be modular so that if you don’t like my pages module, you can still use the pages-indicator module for something else. I hated it when I’d love to take a single feature but couldn’t because it was so tightly integrated with the entire thing, so I’m trying to avoid that.

      Can I make a pull request to add features?

      Please do.

      It doesn’t work!

      Please be more specific.

      How come it changes by itself in the video?

      I actually have a separate module set up to read input from a skywriter, but it’s not ready yet for public release.

      posted in System
      E
      edward-shen
    • RE: MMM-pages & MMM-pages-indicator - Lightweight module pages on your mirror!

      @jchenaud

      Bonjour, je parle un peu français, mais on peut voir que ce n’est pas bon.

      Le code suivant réagit à une demande de modification du numéro de page.

      notificationReceived: function(notification, payload) {
        if (notification === 'PAGE_CHANGED') {
            if (typeof payload === 'number') {
              // le payload est le numéro de page.
            }
        }
      }
      

      Je recommande de stocker ce nombre et de le comparer lorsque vous avez besoin de faire votre action.

      S’il vous plaît laissez-moi savoir si c’est suffisant. La base de code est actuellement gelée parse que je n’ai pas de miroir pour la tester.

      posted in System
      E
      edward-shen
    • 1 / 1