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

MMM-Carousel customizing (anyone available to help?)

Scheduled Pinned Locked Moved Unsolved Requests
11 Posts 4 Posters 3.1k Views 4 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.
  • M Offline
    mirror.master
    last edited by Nov 20, 2018, 8:40 AM

    so i love mmm-carousel with navigation. And i have been trying many ways to move the slides handsfree. I see that a notification can trigger the slides to move, and I have been trying to do that by sending a notification using mmm-remote to do so. MMM-remote allows us to send notifications and alerts. I was wondering if anyone knows a way you trigger the slides to move by doing that? So if i send a notification with mmm-remote like slide increment, it will move the slide, and the same for slide decrement and home. I have tried using code that onkelbobby used in mmm-carousel for his button to trigger slides using mmm-buttons. Below is the code

    // Handle notifications sent from MMM-Buttons Module
           if (notification === "SLIDE_INCREMENT") {
               this.manualTransition(undefined, 1);
               this.restartTimer();
           }
           if (notification === "SLIDE_DECREMENT") {
               this.manualTransition(undefined, -1);
               this.restartTimer();
           }
    

    i was hoping that i could use this as a base so when i send a notification using mmm-remote it would do the same. however it does not. Any idea guys?

    1 Reply Last reply Reply Quote 0
    • M Offline
      mirror.master
      last edited by mirror.master Nov 20, 2018, 9:11 AM Nov 20, 2018, 9:10 AM

      oh my god! nevermind guys! i figured it out! I am so not on the level you guys are at and honestly im so shocked my experiment worked!

      M 1 Reply Last reply Nov 20, 2018, 12:21 PM Reply Quote 2
      • M Offline
        Mykle1 Project Sponsor Module Developer @mirror.master
        last edited by Nov 20, 2018, 12:21 PM

        @mirror-master

        Well done, figuring it out on your own. :thumbsup:

        Why don’t you post your experiment and solution so that others might benefit from it? Just a thought.

        Create a working config
        How to add modules

        M 1 Reply Last reply Nov 21, 2018, 9:34 PM Reply Quote 0
        • M Offline
          mirror.master
          last edited by mirror.master Sep 18, 2020, 9:06 AM Nov 21, 2018, 9:31 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • M Offline
            mirror.master @Mykle1
            last edited by Nov 21, 2018, 9:34 PM

            @mykle1
            Thank you sir. its way too simple and embarassing to post but hey, and honestly i know the other folk can do it better and cleaner, im using this:

            http://magicmirrorIP:remote.html?action=NOTIFICATION&notification=SLIDE_INCREMENT
            
            

            so i never understood how the notification thing worked. the whole time Im thinking a literal notification. After getting it running through the browser, as opposed to my asinine and naive method (no comment) lol, i needed a way to implement this into my phone app that handles most of its controls. i went old school. and used a link to trigger. simple and effective. I can now control my mirror through my phone app via web interface and clicking.

            C 1 Reply Last reply Nov 21, 2018, 11:11 PM Reply Quote 1
            • C Offline
              cowboysdude Module Developer @mirror.master
              last edited by Nov 21, 2018, 11:11 PM

              @mirror-master said in MMM-Carousel customizing (anyone available to help?):

              http://magicmirrorIP:r

              Here’s a really good read by @Sean … :)

              https://forum.magicmirror.builders/topic/4434/how-do-notifications-work

              M 1 Reply Last reply Nov 24, 2018, 9:29 PM Reply Quote 0
              • M Offline
                mirror.master @cowboysdude
                last edited by mirror.master Nov 24, 2018, 10:59 PM Nov 24, 2018, 9:29 PM

                @cowboysdude a great read! I understand how the notifications work as of the day when i posted. (Took me forever lol) Now im trying to trigger the music player with the same technique. I plan on posting the app i put together to control most of my mirror. Thank you

                M 1 Reply Last reply Nov 24, 2018, 9:52 PM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @mirror.master
                  last edited by Mykle1 Nov 24, 2018, 10:01 PM Nov 24, 2018, 9:52 PM

                  @mirror-master

                  In its simplest form, you can trigger your player with the reception of the notification within your module:

                  notificationReceived: function(notification, payload) {
                          if (notification === 'SLIDE_INCREMENT') {
                              this.trigger.your.player();
                          }
                  

                  Create a working config
                  How to add modules

                  M 1 Reply Last reply Nov 24, 2018, 11:35 PM Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by Nov 24, 2018, 9:57 PM

                    I made MMM-NotificationTrigger for that purpose.
                    https://github.com/eouia/MMM-NotificationTrigger

                    M 1 Reply Last reply Nov 24, 2018, 11:31 PM Reply Quote 0
                    • M Offline
                      mirror.master @Guest
                      last edited by Nov 24, 2018, 11:31 PM

                      @sean i know broski! im not as advanced as you guys. Honestly just needed a way to move stuff. I could never get the hang of notification trigger module in full.

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