• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Adding Module Controls in MMM-Remote Control

Scheduled Pinned Locked Moved Unsolved Requests
4 Posts 2 Posters 366 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    Nneuland
    last edited by Apr 20, 2024, 7:07 PM

    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)

    S 1 Reply Last reply Apr 20, 2024, 8:03 PM Reply Quote 0
    • S Offline
      sdetweil @Nneuland
      last edited by sdetweil Apr 20, 2024, 8:03 PM Apr 20, 2024, 8:03 PM

      @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 use

      a 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 to

      so 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 []

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      N 1 Reply Last reply Apr 21, 2024, 5:34 PM Reply Quote 0
      • N Offline
        Nneuland @sdetweil
        last edited by Apr 21, 2024, 5:34 PM

        @sdetweil

        thanks for the insight Sam. I’ll have to play around with this a little. still not quite there

        N

        S 1 Reply Last reply Apr 21, 2024, 5:38 PM Reply Quote 0
        • S Offline
          sdetweil @Nneuland
          last edited by Apr 21, 2024, 5:38 PM

          @Nneuland you can gave a nested menu

          so you have to tell it everything

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy