Read the statement by Michael Teeuw here.
Adding Module Controls in MMM-Remote Control
-
Some modules appear in here by default. The newfeed module has custom controls. (Article next, article previous, article more details…
Can anyone point me in the right direction on how to add modules, and controls to say add commands to the spotify menu that exists already but is empty. (Only a bullet point)
Or switch to the next image for image slideshow which does not have an existing menu named (image slideshow) -
@Nneuland the doc for the module says you have to create a json file, and store it in the ~/MagicMirror/config folder
and then add an entry in the module config to identify its usea sample file is provided in the module folder
see https://github.com/Jopyth/MMM-Remote-Control?tab=readme-ov-file#custom-menu-items
looking at the file the ‘item’ structure is the doer of the group
if has
an icon to display
the text of the menu entry
what to DO (action) (send) ‘NOTIFICATION’
and the WHAT (content)
“content”: {
“notification”: “NOTIFCATION_TEXT_1”, <— the notification string to use for this event
“payload”: “This notification requires a string payload” <- the data to go with that notification
}
so, for MMM-pages,
it accepts(handles)
notification =“PAGE_CHANGED”
payload = a number for the page to change toso for pages, for THIS ONE entry
{ "id":1, "type":"item", "icon": ????, "text":"go to page 5", "action": "NOTIFICATION", "content": { "notification": "PAGE_CHANGED", "payload": 5 } }
and then there are more, structures like that for each u want to send(aka the button)
in an array [] -
thanks for the insight Sam. I’ll have to play around with this a little. still not quite there
N
-
@Nneuland you can gave a nested menu
so you have to tell it everything