Read the statement by Michael Teeuw here.
Remote control
-
@hawkeye there is a bug on 2.11 tgat stops remote control from working.
search the forum for the fix
-
@sdetweil yeah I’m no programmer
i need an idiots guide to things
-
@hawkeye you are replacing one file, no programming required
-
@sdetweil you have been a grate help so far and yes i know i am annoying but i cant find what i am to do
-
@hawkeye you are replacing the contents of ~/MagicMirror/js/socketclient.js
see this post for the (old) contents to put IN the file
https://forum.magicmirror.builders/topic/12485/has-anyone-got-mmm-remote-control-working-on-mm-2-11/10?page=1 -
@sdetweil see your totally awesome that’s fixed now wahoo
with your help im sure you could help me get this working awsome
-
@hawkeye i just searched in the forum on 2.11 remote control, that was the top result
-
I deleted every thing in the socketclient.js file and replaced with the following now the remote works like a charm
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); };
};
-
@hawkeye Thank you for posting. This corrected my problem! I have so much to learn. Off to my next issue with getting the Google Photos module to work.
-
@shawnlane said in Remote control:
I have so much to learn.
there was a bug in 2.11 for that file… fixes only come every 3 months… so the workaround it to put the old file back