Read the statement by Michael Teeuw here.
MMM-pages & MMM-pages-indicator - Lightweight module pages on your mirror!
-
Bonjour, je parle un peu français, mais on peut voir que ce n’est pas bon.
Le code suivant réagit à une demande de modification du numéro de page.
notificationReceived: function(notification, payload) { if (notification === 'PAGE_CHANGED') { if (typeof payload === 'number') { // le payload est le numéro de page. } } }Je recommande de stocker ce nombre et de le comparer lorsque vous avez besoin de faire votre action.
S’il vous plaît laissez-moi savoir si c’est suffisant. La base de code est actuellement gelée parse que je n’ai pas de miroir pour la tester.
-
@edward-shen
merci !! je n’est pas utilisée votre code car je ne vois pas trop comment il diffère de :if (this.curPage != payload ) { switch (notification) {avec ce if sa semble éviter les rechargement de la page. mais cette solution me conviens pas vraiment en effet : elle ne permet pas de stopper les notification. il faudrait que je puise accéder a curPage depuis un autre module pour éviter d’émettre d’est notification inutile.
-
up please
-
@jchenaud
Je suis désolé pour le délai, mais j’ai ajouté une nouvelle réponse de notification pour vous. Envoyez simplement unQUERY_PAGE_NUMBERet MMM-pages va envoyer unPAGE_NUMBER_ISnotification. Ajoutez cela à switch cas dans lanotificationRecievedfonction, et vous devriez être tous ensemble! -
@edward-shen thk :) i will try on the next week .
-
NOTICE
For all future issues, please create an issue on Github! I do not monitor the Magic Mirror forums!
-
Added support to MMM-voice for MMM-pages.
If you’re using MMM-voice you can say “next page” or “last page” and it will change the pages.
BUT you will have to update your MMM-voice with my fork as the PR has not been approved yet. Just simply download it from me and copy it over your files in MMM-voice dir. -
@cowboysdude said in MMM-pages & MMM-pages-indicator - Lightweight module pages on your mirror!:
Added support to MMM-voice for MMM-pages.
If you’re using MMM-voice you can say “next page” or “last page” and it will change the pages.
BUT you will have to update your MMM-voice with my fork as the PR has not been approved yet. Just simply download it from me and copy it over your files in MMM-voice dir.Awesome! Works like a charm!
-
This post is deleted! -
-
@Egnos Please read the FAQ at the bottom of the GitHub page: https://github.com/edward-shen/MMM-page-indicator
-
@edward-shen many thanks!
-
How can I get the IR touch frame to click into the page indicator and change the page?
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
