Read the statement by Michael Teeuw here.
Use MMM-Buttons to hide/show modules
-
Hey guys,
another question again -.- ^^
i am actually trying to show and hide a module with the MMM-Buttons of @Jopyth
The Buttons Module works fine for show the podcast e.g.
To show and hide the MMM-GoogleMapsTraffic Module this works also fine:
http://192.168.178.240:8080/remote?action=SHOW&module=module_0_MMM-GoogleMapsTraffic
http://192.168.178.240:8080/remote?action=HIDE&module=module_0_MMM-GoogleMapsTrafficso i tried to implement that to my Buttons config, but this doesn’t work:
{ module: 'MMM-Buttons', config: { maxShortPressTime: 1000, buttons: [ { pin: 20, name: "GoogleMapsTraffic", shortPress: { notification: "REMOTE_ACTION", payload: {action: "HIDE&module=module_0_MMM-GoogleMapsTraffic"} }, longPress: { notification: "REMOTE_ACTION", payload: {action: "SHOW&module=module_0_MMM-GoogleMapsTraffic"} }, }, { pin: 19, name: "Podcast", shortPress: { notification: "BUTTON_PRESSED", payload: {action: ""} }, longPress: undefined } ] } },If i type “RESTART” in the Payload the mirror restarts. So the Button is connected on the right pin.
Any idea?
-
Hi @cruunnerr,
payload.moduleisn’t part ofpayload.action, but should be a separate key:shortPress: { notification: "REMOTE_ACTION", payload: { action: "HIDE", module: "module_0_MMM-GoogleMapsTraffic" } },Hope that helps.
-
@ninjabreadman said in Use MMM-Buttons to hide/show modules:
Hope that helps.
Works. Thank u very much :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login