MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

[Remote-Control] Shutdown, Configure and Update your MagicMirror


  • Project Sponsor Module Developer

    @KirAsh4 said in MMM-Remote-Control:

    @cowboysdude, evil, just pure evil.

    Unsuspecting friend visits, friend goes to bathroom, you whip out phone and “text” the mirror … friend comes running out screaming.

    Yes but funny none the less LOL


  • Moderator

    “Hey [NAME], you did not wash your hands.”

    “Turn the damn fan on!”


  • Project Sponsor Module Developer

    @KirAsh4 said in MMM-Remote-Control:

    “Hey [NAME], you did not wash your hands.”

    “Turn the damn fan on!”

    LOL



  • @Jopyth ya like what the pir sensor does but just as a manual toggle, so you can turn it ‘off’ at night. I currently don’t have pir sensor yet.



  • I might try to tinker in a config editor and maybe even a command to git clone modules remotely.


  • Module Developer

    Ok, that’s a nice modul 🙂

    I’ve insert an restart function for the MM app and the ability to turn you monitor on and off:

    insert in node_helper.js at line 54:

    				if (query.action === 'RESTART')
    				{
    					res.send({'status': 'success'});
    					exec('pm2 restart mm', function(error, stdout, stderr){ callback(stdout); });
    					return;
    				}
    				if (query.action === 'MONITORON')
    				{
    					res.send({'status': 'success'});
    					exec('/opt/vc/bin/tvservice -p', function(error, stdout, stderr){ callback(stdout); });
    					return;
    				}
    				if (query.action === 'MONITOROFF')
    				{
    					res.send({'status': 'success'});
    					exec('/opt/vc/bin/tvservice -o', function(error, stdout, stderr){ callback(stdout); });
    					return;
    				}
    

    in remote.js on line 131:

        'restart-mm-button': function () {
            Remote.getWithStatus("action=RESTART");
        },
        'monitor-on-button': function () {
            Remote.getWithStatus("action=MONITORON");
        },
        'monitor-off-button': function () {
            Remote.getWithStatus("action=MONITOROFF");
        }
    

    in remote.html on line 40:

    
    		<div>
                        
                        %%TRANSLATE:RESTARTMM%%
                    </div>
    		<div>
                        
                        %%TRANSLATE:MONITORON%%
                    </div>
                    <div>
                        
                        %%TRANSLATE:MONITOROFF%%
                    </div>
    

    and the translations/en.json and de.json on line 8 ff:

        "RESTARTMM": "Restart MagicMirror2",
        "MONITORON": "Turn monitor ON",
        "MONITOROFF": "Turn monitor OFF",
    
        "RESTARTMM": "Starte MagicMirror2 neu",
        "MONITORON": "Bildschirm einschalten",
        "MONITOROFF": "Bildschirm ausschalten",
    

    I think thats it.

    The evil this is a must for my mirror… so thats next. I think we can do this like the IFTTT module does it.
    Install modules remotly will be the next big thing… 🙂


  • Moderator

    @Bangee can you make a pull request also? Would be nice.

    Edit: Otherwise I will add it to the base module, with your permission, when I get back from vacation.


  • Moderator

    @cowboysdude This is what I am doing with my Trello module basically. 🙂


  • Module Developer

    @Jopyth I never did this before but I’ll try 😉



  • Hello everyone,

    actually i’m building my first Magic Mirror and i have installed the Remote Control Modul which works very well and i also have implemented the changes from Bangee. Everything works fine.

    Now i want to use this modul for interacting with my home automation systen “homematic”. Therefore i need to call the URLs directly.
    Can anybody help me which i URL i have to call? I already have tried
    http://192.168.xxx.xxx:8080/remote.html?action=RESTART
    but it doesnt work 😞

    Thanks in advance for your help 🙂


Log in to reply