Read the statement by Michael Teeuw here.
MMM-Page-Selector: A page switcher that can set positions of modules
-
@rudibarani
If I am understanding what you are asking for correctly, this function seems to be out of the scope that Page-Selector encompasses. I would develop a module to include this functionality, but I have been inactive in the world of Magic Mirror as of lately. As it stands, I would post this request to the module suggestions forum or ask somebody to include it in a module that has a closer association with this type of purpose. MMM-Remote-Control could be a good candidate. -
@veldrovive
OK - thanks for the reply anyway! -
Hi all
To make MMM-page-indicator work with MMM-Page-Selector, we must add MMM-page-indicator in to pages
{ module: "MMM-page-indicator", position: "bottom_bar", "pages": {"Home": "bottom_bar", "News": "bottom_bar","Weather": "bottom_bar","Entertaiment": "bottom_bar","Smarthome": "bottom_bar","System": "bottom_bar"}, config: { pages: 6, } },
-
-
I love this module especially in use together with the MMM-navbar.
Is there any config using existing code that will let me make it return me to “default” page after a given period of time after changing page? -
@Brandenborg
This is not a default function of this module. However, if you can edit a small amount of code, it should be easy to implement.
Just copy these lines of code right after line 235 ofMMM-Page-Selector.js
. This lines should beselectPage(payload);
clearTimeout(self.default_timeout); if(![0, this.config.defaultPage].includes(payload)){ self.default_timeout = setTimeout(() => { selectPage(this.config.defaultPage); }, TIME) }
Then just replace
TIME
with the number of milliseconds you want to remain on the page before it automatically switches back to default. You may also have to change the0
in the if statement if your default page isn’t at the 0th position. -
@Veldrovive thanks a lot. I should manage that.
I recon the 0 position is the first page I define the contents of? -
@Brandenborg
The 0 should be the position of your default page in the page list. The furthest left is 0. -
@Veldrovive
Thanks. And thank you for a really useful module! -
@Brandenborg
The latest version of this module now has this as a (Not very well tested) feature.
You can now specify arestoreDefault
prop in the MMM-Page-Selector config with the number of seconds you want before it returns to the default page.