MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Turn pages with physical button

    Troubleshooting
    button page raspberry pi
    2
    3
    109
    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
      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
        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

        Create a working config
        How to add modules

        G 1 Reply Last reply Reply Quote 0
        • S
          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

          Create a working config
          How to add modules

          G 1 Reply Last reply Reply Quote 0
          • G
            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy