Read the statement by Michael Teeuw here.
Has anyone got MMM-Remote-Control working on MM 2.11 ?
-
may you can post the content of your
./js/socketclient.js
?
So please go into the magicmirror folder and executecat ./js/socketclient.js
and post the output here. Thanks. -
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); }; };
-
didn’t ask you, because I know your socketclient.js, you applied my patch …
-
@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.
-
@RoadRunnr1469 so…After restart MM …Remote Control is not working anymore :worried_face:
-
@Stoffbeuteluwe put his fix on the js/socketclient.js
-
what if cat ./js/socketclient.js says the file doesn’t exist? Would it be located somewhere else for the MagicMirrorOS?
-
you are using this setup?
-
@karsten13 yes I am
-
then you will not find the socketclient.js on your pi because this file is in the used docker image.
2 possibilities:- you have to mount a fixed version of this file into the running container with a volume mount
- you can use the
develop
version of the docker image which contains the currentdevelop
branch of mm where this is already fixed (this is the current base of the upcoming MM v2.12)
Don’t know how experienced you are in docker, 2. option is easier to explain.