<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MMM-Buttons calling MMM-Remote config help]]></title><description><![CDATA[<p dir="auto">Hi, bit new to linux only got a pi 3 months ago and its been a bit of a steep learning curve.</p>
<p dir="auto">I’m having a bit of trouble understanding how to configure config.js What I’m trying to do is get MMM-Buttons to send a message to MMM-Remote to hide a module.</p>
<p dir="auto">Everything runs ok (remote hides modules when access from my phone), but pressing the button does nothing.  I’m guessing I’ve misunderstood how to configure the payload.</p>
<p dir="auto">Config for Buttons looks like this:</p>
<pre><code>{module: 'MMM-Buttons',
    config: {
        buttons: [
            {
                pin: 32,
                name: "monitor_control",
                longPress: {
                    notification: "REMOTE_ACTION",
                    payload: {action: "HIDE", "moduleData":[
    {"hidden":true,"name":"clock","identifier":"module_1_clock","position":"top_left"},],},},
                shortPress: {
                    notification: "REMOTE_ACTION",
                    payload: {action: "SHOW","moduleData":[
    {"hidden":false,"name":"clock","identifier":"module_1_clock","position":"top_left"},],},}		    
     		}]
},
</code></pre>
<p dir="auto">config for remote section (same file config.js)</p>
<pre><code>{
    module: 'MMM-Remote-Control',
position: "bottom_bar"
    // 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
},
</code></pre>
<p dir="auto">Any advice would be appreciated.</p>
<p dir="auto">Thanks.<br />
Grant<br />
:::</p>
<p dir="auto">Spoiler Text</p>
<p dir="auto">:::</p>
]]></description><link>https://forum.magicmirror.builders/topic/5758/mmm-buttons-calling-mmm-remote-config-help</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 08:46:53 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/5758.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Dec 2017 21:41:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-Buttons calling MMM-Remote config help on Wed, 20 Dec 2017 21:25:47 GMT]]></title><description><![CDATA[<p dir="auto">I was thinking that MMM-Remote-Control was sending the notification, hence the confusion.</p>
<p dir="auto">Cleaned the config up to look like this:</p>
<pre><code>{module: 'MMM-Buttons',
    config: {
        buttons: [
            {
                pin: 32,
                name: "monitor_control",
                longPress: {
                    notification: "REMOTE_ACTION",
                    payload: {"action": "HIDE", "module": "module_1_clock"}
		},
                shortPress: {
                    notification: "REMOTE_ACTION",
                    payload: {"action": "SHOW", "module": "module_1_clock"}
		}		    
     		}
	]
}},``
</code></pre>
<p dir="auto">Can I add another payload from the same action i.e. hide clock &amp; calendar?</p>
<p dir="auto">Not had any success with that so far, can somebody give me a pointer to the syntax.</p>
<p dir="auto">Ta.</p>
]]></description><link>https://forum.magicmirror.builders/post/32505</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/32505</guid><dc:creator><![CDATA[grantc66]]></dc:creator><pubDate>Wed, 20 Dec 2017 21:25:47 GMT</pubDate></item></channel></rss>