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.

    Turn pages with physical button

    Scheduled Pinned Locked Moved Solved Troubleshooting
    buttonpageraspberry pi
    3 Posts 2 Posters 710 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.
    • G Offline
      Gilgamoth 0
      last edited by

      I want to use a physical button to turn pages of the MMM-pages module. I know that to do so the module wants to get a notification. My question is how does the notification thing work and how can i implement it into a button which is connected via GPIO-pins if my Raspberry Pi?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Gilgamoth 0
        last edited by sdetweil

        @Gilgamoth-0 see
        https://github.com/Jopyth/MMM-Buttons

        mm provides a way for a module to broadcast a message for any/all other modules to get

        sendNotification ( xxx, yyy)
        https://docs.magicmirror.builders/development/notifications.html

        xxx is the name string of the message,it can be anything “123”, “foo”, “hdtujghjf”
        yyy is the data that goes w the message

        any module that understands the name string and data can do whatever they want w it.

        there are no rules on the data format. only some other module that KNOWS the format can figure it out.

        clock sends a message every second,
        calendar sends the selected events every time they are read,
        weather sends it’s data too.
        you can pop up an alert by sending a message

        the system sends messages too as it starts up, informing of different stages.

        pages documents the messages it will listen for, and what the data needs to be for each message it expects

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          Gilgamoth 0 @sdetweil
          last edited by

          @sdetweil Thanks, that is excatly what i was looking for

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            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
            OSZAR »