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-ProfileSwitcher - Enter and Leave Messages

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 2 Posters 1.2k 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.
    • R Offline
      radonk
      last edited by

      Hi everybody,

      i am relative new to Magic Mirror and this Forum so please appologize if this questions was answered already elsewhere.
      At the moment i am trying to use MMM-ProfileSwitcher and MMM-TouchNavigation to create a very simple touch navigation between different profiles. The switching works but i cannot disable the enter and leave messages for all profiles. Any ideas?

      My test configuration config.js

      var config = {
      	address: "localhost", // Address to listen on, can be:
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
      	                                                       // or add a specific IPv4 of 192.168.1.5 :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	language: "en",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
             {
                  module: "alert"
              },
                    
      		{
      			module: 'MMM-ProfileSwitcher',
      			enterMessages: false,
      			leaveMessages: false,
      		},     
              {
                  module: "MMM-TouchNavigation",
                  position: "bottom_center",
                  classes: "default everyone",
                  config: {
                      picturePlacement: "right",
                      minWidth: "40px",
                      buttons: {
                          "default": {
                              symbol: "ban"
                          },
                          "Option1": {
                              text: "Option1",
                              // img can be a url or a local path.
                              img: "https://forum.magicmirror.builders/uploads/profile/2349-profileimg.png", 
                              width: "40"
                          },
                          "Option2": {
                              text: "Option2",
                              symbol: "paper-plane"
                          }
                      }
                  }
              },
              {
                  module: "clock",
                  classes: "everyone",
                  position: "top_left"
              },
              {
                  module: "clock",
                  classes: "default",
                  position: "middle_center",
                  config: {
                      analogShowDate: false,
                      displayType: "analog"
                  }
              },
              {
                  module: "helloworld",
                  classes: "Option2",
                  position: "middle_center"
              },
      
              {
                  module: "helloworld",
                  position: "top_right",
                  classes: "Brian"
              }
              
              
      	]
      
      };
      
      
      1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator
        last edited by

        @radonk said in MMM-ProfileSwitcher - Enter and Leave Messages:

        {
        	module: 'MMM-ProfileSwitcher',
        	config: {
        		enterMessages: false,
        		leaveMessages: false,
        	}
        },     
        

        You left out the config part

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 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