-
Notifications
You must be signed in to change notification settings - Fork 148
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
Classes #259
Comments
That's right. Classes just groups different modules and actions right now. You can create a custom menu using those classes, or calling them using the API. |
All right, { |
You can control them from other modules, that's right. {
"id": "custom-item-1",
"type": "item",
"icon": "dot-circle-o",
"text": "Menu Item 1",
"action": "MANAGE_CLASSES",
"content": {
"payload": {
TOGGLE: "your-class, another-class",
}
}
} If you want to reach it from another module, send a {
"action": 'MANAGE_CLASSES',
"payload": {
"TOGGLE": "your-class, another-class",
}
} |
Hi mate, The buttons on the remote are there. If I trigger the f_calendar button, it will show module_6_calendar and hide module_7_calendar but nothing else. This problem is the same in the two other classes. Is there a way to hide, show or trigger multiple modules in one class? My config: remote_custom_menu.json: |
Alright, I found a bug right now. Classes should work as you're describing, maybe you can create only one class with toggle. Edit: Seems that the API it's working fine as it should. You can try it with
What command line are you referring? If you mean the linux/windows one, that's not possible because of how MM is made of. |
Also, my bad, there's no need to create a custom menu. Below the |
I deleted the custom menu and tried it via the http://mirror-IP/api/docs site and the remote. The same thing happened with both methods. |
Let me know if the branch |
At first, thank you, really appreciate your work and help. I got a new one instead. I'm trying to control my mirror with my Alexa. I'm using the Alexa Control module (https://github.com/JoChef2/MMM-AlexaControl) to do that. I can create customized commands in this module. My plan was to send a notification from the Alexa module to the remote control. But the module forces me to bring the command in a shape like this.: |
I'm gonna check the view editor in a minute. About using Alexa, the Manage_Classes that I told you to use doesn't work as expected, so there's another bug that I found when looking into how to fix the previous one. Just for you to know, Classes is one of the newest addition, and of course will have flaws. |
That solves the view editor bug. Let me know if it works. |
Thanks I wil try it the day after tomorrow. I'm busy tomorrow. |
#259 Manage_Classes it's now handled inside node_helper
Both changes are online. Test them when it's possible and let me know.
Those should work with Alexa module. |
I can use the classes menu and the view editor without any issues. Thanks for that. |
You could try using the developer console on your Mirror, and check if it throws any error up there. I saw in the Alexa Wiki some examples and they're using Let me know when you try it! :D Edit: Also try |
I got lucky with the last one. |
Hello,
I installed everything and it is working fine. Only one thing, I want to use the custom classes. I created them in the config like in the examples but I don`t know how to control them. There is no button on the remote. Do I have to create them by my own like the custum menu?
The text was updated successfully, but these errors were encountered: