MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Has anyone got MMM-Remote-Control working on MM 2.11 ?

    Troubleshooting
    8
    31
    3131
    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
      RoadRunnr1469 last edited by

      I updated to MM 2.11and the MMM-Remote-Control module quit working. I have tried checking settings, totally removing the module and reinstalling. I have not been successful in getting it to work.

      Stoffbeuteluwe 1 Reply Last reply Reply Quote 0
      • karsten13
        karsten13 last edited by

        see https://github.com/Jopyth/MMM-Remote-Control/issues/185

        1 Reply Last reply Reply Quote 0
        • Stoffbeuteluwe
          Stoffbeuteluwe Project Sponsor @RoadRunnr1469 last edited by

          @RoadRunnr1469 and @karsten13

          I have updated my MM with git pull & npm install …than I had the same problem.
          Today I tried Sam‘s Upgrade Script and now everything is working perfect.

          karsten13 1 Reply Last reply Reply Quote 0
          • R
            RoadRunnr1469 last edited by

            I had a copy of the old file socketclient.js located in MagicMirror/js folder. once I replaced the new new file with the backup it is working.
            Here is the Key line that needs fixed.

            replace

            // Private Methods
            self.socket = io("/" + self.moduleName, {
            	path: window.location.pathname + "socket.io"
            });
            

            with

            // Private Methods
                self.socket = io("/" + self.moduleName);
            
            1 Reply Last reply Reply Quote 3
            • karsten13
              karsten13 @Stoffbeuteluwe last edited by

              @Stoffbeuteluwe

              so your are running MM v2.11.0 with MMM-RemoteControl and all your Menu Items work?

              E.g. if I open 192.168.xxx.yyy:8080/remote.html#main-menu in the browser and click on Edit config.js the popup opening only contains 3 lines with undefined.

              R Stoffbeuteluwe 2 Replies Last reply Reply Quote 0
              • R
                RoadRunnr1469 @karsten13 last edited by

                @karsten13 yes mine appears to be working, but I don’t edit my config there, I edit via SSH.

                I can’t seem to get the upload screenshot to work, but yes I see all my modules.

                S 1 Reply Last reply Reply Quote 0
                • Stoffbeuteluwe
                  Stoffbeuteluwe Project Sponsor @karsten13 last edited by

                  @karsten13 for me it works after upgrade with sams script

                  karsten13 1 Reply Last reply Reply Quote 0
                  • S
                    sdetweil @RoadRunnr1469 last edited by

                    @RoadRunnr1469 said in Has anyone got MMM-Remote-Control working on MM 2.11 ?:

                    I can’t seem to get the upload screenshot to work, but yes I see all my modules.

                    posting images is broken

                    https://github.com/MichMich/MagicMirror/issues/1969

                    Sam

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • karsten13
                      karsten13 @Stoffbeuteluwe last edited by

                      @Stoffbeuteluwe

                      may you can post the content of your ./js/socketclient.js?
                      So please go into the magicmirror folder and execute cat ./js/socketclient.js and post the output here. Thanks.

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        RoadRunnr1469 @karsten13 last edited by sdetweil

                        @karsten13

                        var MMSocket = function(moduleName) {
                        	var self = this;
                        
                        	if (typeof moduleName !== "string") {
                        		throw new Error("Please set the module name for the MMSocket.");
                        	}
                        
                        	self.moduleName = moduleName;
                        
                        	// Private Methods
                        	self.socket = io("/" + self.moduleName);
                        	var notificationCallback = function() {};
                        
                        	var onevent = self.socket.onevent;
                        	self.socket.onevent = function(packet) {
                        		var args = packet.data || [];
                        		onevent.call(this, packet);    // original call
                        		packet.data = ["*"].concat(args);
                        		onevent.call(this, packet);      // additional call to catch-all
                        	};
                        
                        	// register catch all.
                        	self.socket.on("*", function(notification, payload) {
                        		if (notification !== "*") {
                        			notificationCallback(notification, payload);
                        		}
                        	});
                        
                        	// Public Methods
                        	this.setNotificationCallback = function(callback) {
                        		notificationCallback = callback;
                        	};
                        
                        	this.sendNotification = function(notification, payload) {
                        		if (typeof payload === "undefined") {
                        			payload = {};
                        		}
                        		self.socket.emit(notification, payload);
                        	};
                        };
                        
                        karsten13 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 1 / 4
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy