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

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

Scheduled Pinned Locked Moved Solved Troubleshooting
31 Posts 8 Posters 10.1k Views 9 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.
  • S Offline
    Stoffbeuteluwe Project Sponsor @karsten13
    last edited by Apr 3, 2020, 7:19 PM

    @karsten13 for me it works after upgrade with sams script

    K 1 Reply Last reply Apr 3, 2020, 7:32 PM Reply Quote 0
    • S Offline
      sdetweil @RoadRunnr1469
      last edited by Apr 3, 2020, 7:23 PM

      @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

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • K Offline
        karsten13 @Stoffbeuteluwe
        last edited by Apr 3, 2020, 7:32 PM

        @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 Apr 3, 2020, 7:43 PM Reply Quote 0
        • R Offline
          RoadRunnr1469 @karsten13
          last edited by sdetweil Apr 3, 2020, 7:50 PM Apr 3, 2020, 7:43 PM

          @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);
          	};
          };
          
          K 1 Reply Last reply Apr 3, 2020, 7:47 PM Reply Quote 0
          • K Offline
            karsten13 @RoadRunnr1469
            last edited by Apr 3, 2020, 7:47 PM

            @RoadRunnr1469

            didn’t ask you, because I know your socketclient.js, you applied my patch …

            R 1 Reply Last reply Apr 3, 2020, 7:52 PM Reply Quote 0
            • R Offline
              RoadRunnr1469 @karsten13
              last edited by Apr 3, 2020, 7:52 PM

              @karsten13 actually no I didn’t. I had backed up my entire MagicMirror folder and all sub folders before upgrading. I saw another post where they said they changed the socketclient back to before upgrade. so I did the same thing. after making a backup of the new socketclient.js file.

              S 1 Reply Last reply Apr 3, 2020, 8:00 PM Reply Quote 0
              • S Offline
                Stoffbeuteluwe Project Sponsor @RoadRunnr1469
                last edited by Stoffbeuteluwe Apr 3, 2020, 8:01 PM Apr 3, 2020, 8:00 PM

                @RoadRunnr1469 so…After restart MM …Remote Control is not working anymore :worried_face:

                S 1 Reply Last reply Apr 3, 2020, 8:13 PM Reply Quote 0
                • S Offline
                  sdetweil @Stoffbeuteluwe
                  last edited by Apr 3, 2020, 8:13 PM

                  @Stoffbeuteluwe put his fix on the js/socketclient.js

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    snikolaidis
                    last edited by May 20, 2020, 7:31 PM

                    what if cat ./js/socketclient.js says the file doesn’t exist? Would it be located somewhere else for the MagicMirrorOS?

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      karsten13
                      last edited by May 20, 2020, 7:43 PM

                      you are using this setup?

                      S 1 Reply Last reply May 20, 2020, 7:44 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      • 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