![]() This setting allows for the removal of specified tags from the beginning of an item's description and/or title. Some news feeds feature tags at the beginning of their titles or descriptions, such as. How old should news items be before they are considered outdated? (Milliseconds) Total amount of news items to cycle through. How often do you want to display a new headline? (Milliseconds) How often does the content needs to be fetched? (Milliseconds) Hide module instead of showing LOADING status. How many characters to be displayed for a truncated description? Wrap the description of the item to multiple lines. Wrap the title of the item to multiple lines. If set, the displayed title is a link to the article which is useful when running in a browser and you want to read this article. Gives the ability to broadcast news feed updates to all modules Gives the ability to broadcast news feeds to all modules, by using sendNotification() when set to true, rather than sendSocketNotification() when false You can add reloadInterval option to set particular reloadInterval to a feed. Best results in center regions.Ĭonfig : ] Thanks again to the community to point this out.Position : "bottom_bar", // This can be any of the regions. I won’t be demonstrating it in this article, but I’ll comment away the core code I added in this article. I will be moving forward with this approach, as I think it has more potential. And added this to the node helper of the MMM-syslog module :Īdding this to MMM-Syslog should do the trick. Just to make sure there are no 2 handlers for the same routings. I’ve commented away the app.get function in server.js. Now, to hook things up again, so it can be used in conjunction with the debug hub. Why is this working? Well, the combination of the ability to access this.ExpressApp in the node helper, the MM availability in the module and the native notification features make everything possible that was possible using the core adapting solution. It basically almost copies the existing code, but instead of sending a message in the notification, it sends the “hide” command. Next, adjust the node helper with another express routing as below : Just check for a different notification, and execute the code the hide the modules. I’ll be adjusting the MMM-syslog code, in the place where a message is received, and is being display I’ll add my own temporary test code: It might be something to add 2 wake words like “alexa” and “mirror” or something, but there are pro’s and cons in here. The advantage of using Alexa is also there of course (you can ask here whatever you want). I found an example of hiding mirror elements in the following :īy the way : this is a module allowing voice control! Something to check out further, but as far as I can see it only takes a few mirror related commands. js file where some node.js code can be created to support your module. In here, the concept of node helpers is discussed. I should have done this with some more attention earlier, but hey… sometimes I want to go too fast. Now to check out how this works, and how we can adjust it to make the same hide and show functionality as in the core adapting solution.įirst, some reading in the Magic mirror module documentation. The documentation of the module states that the only thing to do is send a message with the following syntax : Kick out the compliments module, and add the new one. I’ll be adjusting the mirror configuration. First get it from GitHub into my “modules” subfolder of the smart mirror root folder. Someone pointed me to an existing mirror module, which you can find in the URL below. The kind people at the magic mirror community pointed out to me that it might be better to create my own module to allow mirror commands. That’s why I did some adjustments to the core code in this article. I was under the impression that the only way to allow external interaction to the mirror is by adjusting the core code. It seems that I have gone too fast in my conclusions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |