Read the statement by Michael Teeuw here.
MMM-TouchNavigation, A Touch Activated Profile/Layout Changer
-
@shashank Hmm odd, what did you see on your screen and what config did you use?
This should work just fine:modules: [ { module: "alert" }, { module: "MMM-ProfileSwitcher" }, { module: "MMM-TouchNavigation", position: "bottom_center", classes: "default everyone", config: { buttons: { "default": { symbol: "ban" }, "Brian": { text: " Brian", symbol: "paper-plane" }, "Lisa": { text: "Lisa" } } } }, { module: "clock", classes: "everyone", position: "top_left" }, { module: "clock", classes: "default", position: "middle_center", config: { analogShowDate: false, displayType: "analog" } }, { module: "helloworld", classes: "Lisa", position: "lower_third" }, { module: "helloworld", position: "top_right", classes: "Brian" } ]
Edit: I added a ready-to-use config file in the repository. If you copy-paste and rename it it would work.
-
@tosti007 hi, i tried this example classes names are displayed with Analog and Digital clock , but not able to do profiile switching between Brain and lisa
{
module: “MMM-ProfileSwitcher”,
config: {
includeEveryoneToDefault: true,
}
}, -
@shashank and what is your config for the touchnavigation? I also uploaded an example config file that should work in the repository
-
@tosti007 This is my config.js
modules: [
{ module: ‘alert’,},{ module: "updatenotification", position: "top_bar" }, { module: "MMM-ProfileSwitcher", config: { includeEveryoneToDefault: true, } }, { module: "MMM-TouchNavigation", position: "bottom_center", classes: "default everyone", config: { buttons: { "default": { symbol: "ban" }, "Brian": { text: " Brian", symbol: "paper-plane" }, "Lisa": { text: "Lisa" } } } }, { module: "clock", classes: "everyone", position: "top_left" }, { module: "clock", classes: "default", position: "middle_center", config: { analogShowDate: false, displayType: "analog" } }, { module: "helloworld", classes: "Lisa", position: "lower_third" }, { module: "helloworld", position: "top_right", classes: "Brian" }, ]
-
@shashank Oh damnit, I made a terrible mistake while testing. Turns out that I was using the developer branch while testing. In the developer branch they fixed pointer events from fullscreen region not passing down onto the underlaying modules. So when you used my module it did not send the pointer events to the buttons. I made a new commit to my module so it should be fixed if you pull the changes (goto MMM-TouchNavigation folder and do
git pull
). However you cannot use this module in fullscreen mode now. If you desire to do so let me know and I will go more in depth on how to solve this issue. Thank you for letting me know! -
@all IMPORTANT NOTE: Unfortunatly setting this module to full screen does not work. The menu floats in the top left corner and you cannot press any buttons! I might be able to fix this, but since there is no audience currently wanting this feature I will wait for the new MagicMirror version (where this issue will be fixed). Let me know if you want to have it full screen aswell and I will see what i can do!
Edit: thanks to @broberg this issue was solved :)
-
@tosti007 add z-index: -1 or 0 to the region fullscreen above, it blocks everything beneath so it can’t be clicked ( or add z-index: 2 to the module div)
-
@broberg yea I thought that would work too, however when I set z-index to -1 on region fullscreen nothing much happened. I will try that z-index of 2 on the module dif aswell
-
@broberg Only setting region fullscreen to 0 worked. Not entirely sure tho. Anyways ty for the tip! Updated my module :)
-
@tosti007 hi, after git pull, module working great, Thanks for your quick response , keep rocking…