Read the statement by Michael Teeuw here.
I have a touchscreen, would like to call up a module via a button
-
I am currently using the MMM-Pages module with 3 pages, one with weather, calendar list, datetime, another with what looks like a normal wall calendar, month view and a bird of the day photo, the 3rd page is just my wifi info via MMM-Wifi. I’ve setup the modulebar and it can turn items of via touch.
what I would like to do is have a touch button that pulls up the wifi info on demand and then automatically to back to the page rotation after some amount of time.
I’m not against writing something, but if something close exists…
-
@kent there are modules that provide soft buttons… that button would send a notification to the pages module
like https://github.com/Tom-Hirschberger/MMM-TouchButton
to surface your Wifi page, and then it will return to the rotationfrom the doc
PAGE_CHANGED int MMM-pages will switch to the provided page index. -
Thank you. I have that module setup. I have a button that can turn the wifi display on and off. The way I have it configured it seems to affect only the current page. for example I put the wifi on 2 pages, and the touch module turns it off on each page individually. I’ll look at the config more. I’m glad to hear I am on the right track
-
@kent what is the notification you are sending
PAGE_CHANGED, 3 now, page 4 or page 1 next
PAGE_INCREMENT, from current pageAll you can do is change a page,
or
stop changing pages/resume changing -
I am using a simplified version of the example button config from the github page.
config: { buttons: { "1": { module: "all", symbol: "toggle-on", symbol2: "toggle-off", }, "2": { module: "MMM-2Day-NOAA-Forecast", text: "Forecast on", text2: "Forecast off", symbol: "fas fa-sun", symbol2: "far fa-sun", }, "3": { module: "MMM-WiFiPassword", text: "Wifi", text2: "off", symbol: "fa-solid fa-wifi", symbol2: "fa-thin fa-wifi", }, } } -
I take back some of what I said… the module I am currently using is MMM-ModuleBar. I’ll look at touchbutton again.
-
@kent right, that module provides buttons that show/hide A module
