Read the statement by Michael Teeuw here.
Turn pages with physical button
-
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?
-
@Gilgamoth-0 see
https://github.com/Jopyth/MMM-Buttonsmm 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.htmlxxx is the name string of the message,it can be anything “123”, “foo”, “hdtujghjf”
yyy is the data that goes w the messageany 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 messagethe 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
-
@sdetweil Thanks, that is excatly what i was looking for