Read the statement by Michael Teeuw here.
Remote control
-
When i add this to my config my mirror stops working soon as i delete it starts again
if i put my ip addy in for the pi with ports 8080 into my phone i can see the mirror but no remote control options where am i going wrong please
{ module: ‘MMM-Remote-Control’ // uncomment the following line to show the URL of the remote control on the mirror , position: ‘bottom_left’ // you can hide this module afterwards from the remote control itself config: { customCommand: {}, // Optional, See “Using Custom Commands” below customMenu: “custom_menu.json”, // Optional, See “Custom Menu Items” below showModuleApiMenu: true, // Optional, Enable the Module Controls menu apiKey: “”, // Optional, See API/README.md for details } },Only thing i have working with my pi is kodi and thats on a spare i am a total NOOB and in need of a lot of help
-
@hawkeye I dont use this module, but it looks like you have , position: ‘bottom_left’ You need to remove the comma at start of line.
-
i tried that still no joy
what i want to do is to be able to add and remove modules from my phone and having no luck
-
@hawkeye u need a comma at the end of each line… the one at the front is for the line before, but after has no ,
also, check the actual text in config.js, the quote marcks, both single and double are the wrong kind, they are the word processing app type… (as they lean)… u need the text kind, straight up and down
{ module: 'MMM-Remote-Control', position: 'bottom_left', config: { customCommand: {}, // Optional, See "Using Custom Commands" below customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below showModuleApiMenu: true, // Optional, Enable the Module Controls menu apiKey: "", // Optional, See API/README.md for details } }, -
This post is deleted! -
@sdetweil said in Remote control:
{
module: ‘MMM-Remote-Control’,
position: ‘bottom_left’,
config: {
customCommand: {}, // Optional, See “Using Custom Commands” below
customMenu: “custom_menu.json”, // Optional, See “Custom Menu Items” below
showModuleApiMenu: true, // Optional, Enable the Module Controls menu
apiKey: “”, // Optional, See API/README.md for details
}
},You rock that fixed that part now i just need to make it show modules so i can turn them off
-
@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
-
its solved
-
Hi l see your having a similar problem as when add the script into my config file it stops l also remove the //
To position it a the left bottom but it still didn’t work
I set the IP. 0.0.0.0 and closed brackets []
Set up any one on my IP address
But it still no working.I know we should get a IP address on bottom of the mirror to type into our phone which open up app controller.
If any can help us both please reply.
-
@videogame95 show the config for his module and aove/below it
a module is
{ module:"name", position:"something", config: { .... module specifc values ... } },note that whre u add this MAY reqire a trailing comma on the last line of the prior module, meaning, more coming
keep the braces and brackets aligned up and down,
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