-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to send PAUSE/RESUME notification ? #11
Comments
If you're using MMM-pages, then that has the notification hooks you're looking for. Please note that this is just a indicator module, and is not supposed to have any other functionality. |
Hello @edward-shen, Thanks for your reply. I agree with you, it's just an indicator module. I only see this in MMM-pages.js :
But it do not work. When i copy/paste it in MMM-page-indicator.js , it crash the magic mirror. You made this module, do you have any idea of what should I write to send pause/resume notification? Thanks ! :))) |
You shouldn't need to copy or paste anything. Both already work together to pause rotation and show that rotation is paused, repsectively. |
Why i don't see it in page indicator then ? |
Because you should be sending paused and resume notifications to MMM-pages instead. |
I found the solution you were 50% wrong. haha So I wrote in MMM-page-indicator.js this code below and it shows perfectly everything in the Remote-control menu:
The only problem now is that : |
Hello @edward-shen @Burnallover ,
Your module is just AWESOME ! You guys are so nice to develop it, thank you so much !
Everything works fine, i can increment/decrement pages. However, impossible to have a PAUSE / RESUME notifications.
Here is my module Remote-Control menu, when i click on your module "page-indicator" :
The menu is just showing what's inside the MMM-page-indicator.js
Which is:
So after this :
What should I write ?
} else if (notification === 'PAUSE_ROTATION') {
????????????????????????????
} else if (notification === 'RESUME_ROTATION') {
????????????????????????????
Thanks per advance guys !
Have a wonderful day
The text was updated successfully, but these errors were encountered: