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.

    MMM-GroveGestures

    Scheduled Pinned Locked Moved System
    51 Posts 8 Posters 22.9k Views 12 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.
    • ? Offline
      A Former User @jim.dw
      last edited by A Former User

      @jim-dw
      Well, I’m not the author of those modules, so Ask these to the creator of MMM-Carousel / MMM-CECControl ;(Or need to check by yourself)

      • Are there notifications for that purpose?
      • Or Are there method of module class for that purpose?
      • Or controllable by external shell script or HTTP API?

      At least one of them possible, it could.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jim.dw
        last edited by

        @Sean lol. Good point.

        I guess what confused me is this code below. I understand ‘clock’ or ‘newsfeed’ can be swapped out for ‘mmm-ceccontrol’ or ‘mmm-carousel’ it’s just figuring out how I send the command.

        Is it “module.hide()” that needs to be replaced?

        Sorry for this. Still learning

        moduleExec: {
        module: [“clock”, “newsfeed”], // [] will be all modules.
        exec: (module, gestures) => {
        module.hide()
        }
        }

        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @jim.dw
          last edited by

          @jim-dw
          right. “.hide()” is a common method of every module should have. Usually, module developer need to implement that method by his own or just leave it as inheritance from parent class. So, every module will have that “hide()” method definitely.
          Now, let’s see your needs.
          For example;
          If MMM-Carousel has specific method like “changePage(pageNo)”(IDK whether really it exists o not), you can call that method with “moduleExec”
          However I’m not the author of MMM-Carousel, so don’t know it supports or not. Ask to the author.

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

            @Sean hide() technically turns into a suspend function call in the module
            show() turns into resume()

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • J Offline
              jim.dw @Guest
              last edited by

              @Sean You know what, I think I understood that mate. Thank you. I guess I’m gonna have to learn a little bit of python. Thank you

              1 Reply Last reply Reply Quote 0
              • B Offline
                banbutcher
                last edited by

                in the readme file it says it doesnt work behind spy glass, does that include regular glass with a reflective film?

                im guessing that it wont work but hoping that it will! :)

                thanks

                ? 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @banbutcher
                  last edited by

                  @banbutcher
                  Not tested, so not sure. The issue relies on the thickness of the glass.

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