<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules]]></title><description><![CDATA[<h1>Description</h1>
<p dir="auto">Hey there,</p>
<p dir="auto">after a few tries i got my navigation bar to work for my touchscreen.<br />
It needs a few more tweaks and maybe someone who knows more about js-programming than me, but until now it works fine for me.</p>
<p dir="auto">Modules integrated until now are: currentweather, weatherforecast, calendar and newsfeed.</p>
<p dir="auto">Maybe there is a way to automatically read all modules and create a navigation bar according to ur activated modules.</p>
<p dir="auto">And i need Icons… Dont know where i can get them, cause they want to get credited or sth. And i cant make them myself.</p>
<p dir="auto">Just give it a look, maybe some of u can help tweaking it. Needs a few more things to explain and so on.</p>
<h1>Screenshot</h1>
<p dir="auto"><img src="https://forum.magicmirror.builders/uploads/files/1481034446864-screen-shot-2016-12-06-at-15.26.36.png" alt="Bild Text" class=" img-fluid img-markdown" /></p>
<h1>Download</h1>
<p dir="auto">[card:chr1syy/MM-navbar]</p>
]]></description><link>https://forum.magicmirror.builders/topic/1128/mm-navbar-navigation-bar-for-touchscreens-to-hide-show-modules</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 18:50:51 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1128.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Dec 2016 09:46:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Sat, 16 May 2020 15:21:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/snille" aria-label="Profile: Snille">@<bdi>Snille</bdi></a><br />
Hi, I’m using your MMM module bar to switch my modules on and off.<br />
What I don’t understand is how I switch between 2 modules.<br />
So if I press a button, I want to switch off one module and another ON. Both are in the same position (‘middle_center’).</p>
<p dir="auto">Or do I need another module?</p>
<p dir="auto">Thank you for your help.</p>
<p dir="auto">greeting<br />
Stefan</p>
]]></description><link>https://forum.magicmirror.builders/post/75303</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75303</guid><dc:creator><![CDATA[Cetax]]></dc:creator><pubDate>Sat, 16 May 2020 15:21:13 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Mon, 20 Feb 2017 08:05:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi! I made a similar module for the same purpurs. You can always copy some code if you want…<br />
You can find it <a href="https://forum.magicmirror.builders/topic/1704/mmm-modulebar-a-module-that-adds-touch-buttons-for-showing-hiding-other-modules">here</a> in the forums. :)<br />
Or on <a href="https://github.com/Snille/MMM-Modulebar" target="_blank" rel="noopener noreferrer nofollow ugc">github</a>.</p>
]]></description><link>https://forum.magicmirror.builders/post/15073</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15073</guid><dc:creator><![CDATA[Snille]]></dc:creator><pubDate>Mon, 20 Feb 2017 08:05:36 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Tue, 17 Jan 2017 15:42:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tosti007" aria-label="Profile: tosti007">@<bdi>tosti007</bdi></a> Something like this is what i’m thinking about</p>
]]></description><link>https://forum.magicmirror.builders/post/11418</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11418</guid><dc:creator><![CDATA[chrisyy]]></dc:creator><pubDate>Tue, 17 Jan 2017 15:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Tue, 17 Jan 2017 10:18:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shashank" aria-label="Profile: shashank">@<bdi>shashank</bdi></a> You’re welcome!<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/chrisyy" aria-label="Profile: chrisyy">@<bdi>chrisyy</bdi></a> you can use front awsome by setting the class of the symbol’s container to <code>fa fa-symbolname</code>. Something like this (where <code>symbolName</code> can be any icon name):</p>
<pre><code class="language-javascript">var symbolName = "paper-plane";
var symbolContainer = document.createElement("span");
symbolContainer.className = "fa fa-" + symbolName;
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/11385</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11385</guid><dc:creator><![CDATA[tosti007]]></dc:creator><pubDate>Tue, 17 Jan 2017 10:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Tue, 17 Jan 2017 08:25:23 GMT]]></title><description><![CDATA[<p dir="auto">As mentioned from <a class="plugin-mentions-user plugin-mentions-a" href="/user/tosti007" aria-label="Profile: tosti007">@<bdi>tosti007</bdi></a> he wrote a module that uses the ProfileSwitcher.<br />
I will also continue on this project when i got the time for it.</p>
<p dir="auto">I plan on adding some configurable variables, like which modules should be included as a button and a config-section where u can define an icon from Font-Awesome. That should handle a few problems with which u came up here.</p>
<p dir="auto">But this will take me some time. So keep patient, i’m working.</p>
]]></description><link>https://forum.magicmirror.builders/post/11381</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11381</guid><dc:creator><![CDATA[chrisyy]]></dc:creator><pubDate>Tue, 17 Jan 2017 08:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Tue, 17 Jan 2017 05:44:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tosti007" aria-label="Profile: tosti007">@<bdi>tosti007</bdi></a> hi, i tested using var exceptClasses as mentioned by you, it works perfectly as required for me. Thanks a lot for your suggestion.</p>
]]></description><link>https://forum.magicmirror.builders/post/11371</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11371</guid><dc:creator><![CDATA[shashank]]></dc:creator><pubDate>Tue, 17 Jan 2017 05:44:28 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Mon, 16 Jan 2017 21:25:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/in_a_days" aria-label="Profile: in_a_days">@<bdi>in_a_days</bdi></a> put the names you want in an array, like so:</p>
<pre><code class="language-javascript">var exceptClasses = ["clock", "weather", "calendar"]; //The list of modules you want to keep.
MM.getModules().exceptModule(this).exceptWithClass(exceptClasses).enumerate(
    // Here the other code
);
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/11319</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11319</guid><dc:creator><![CDATA[tosti007]]></dc:creator><pubDate>Mon, 16 Jan 2017 21:25:33 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Mon, 16 Jan 2017 21:19:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shashank" aria-label="Profile: shashank">@<bdi>shashank</bdi></a></p>
<p dir="auto">Okay I think I know what you’re looking for.  I’m not 100% sure how to make the change, but someone else here may be able to help.</p>
<pre><code>notificationReceived: function(notification, payload, sender){
	if (notification === 'DOM_OBJECTS_CREATED'){
		MM.getModules().exceptModule(this).exceptWithClass('clock').enumerate(function(module){
			module.hide(1000, function(){
			});
		});
	}
},
</code></pre>
<p dir="auto">Is there a simple way to include the ‘calendar’ and ‘weather’ modules in the exceptWithClass call?  I don’t know how to include multiple Classes in this kind of context.</p>
]]></description><link>https://forum.magicmirror.builders/post/11318</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11318</guid><dc:creator><![CDATA[in_a_days]]></dc:creator><pubDate>Mon, 16 Jan 2017 21:19:11 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Mon, 16 Jan 2017 21:06:47 GMT]]></title><description><![CDATA[<p dir="auto">@all, I made a module which is similair to this one. In mine you can set custom profiles and swap between them. Hope that this helps one of you guys :)</p>
]]></description><link>https://forum.magicmirror.builders/post/11315</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11315</guid><dc:creator><![CDATA[tosti007]]></dc:creator><pubDate>Mon, 16 Jan 2017 21:06:47 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Mon, 16 Jan 2017 05:05:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/in_a_days" aria-label="Profile: in_a_days">@<bdi>in_a_days</bdi></a> Hi, My requirement is i need to show clock, weather and Calendar by default and all other modules should be hide.</p>
]]></description><link>https://forum.magicmirror.builders/post/11206</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11206</guid><dc:creator><![CDATA[shashank]]></dc:creator><pubDate>Mon, 16 Jan 2017 05:05:37 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Mon, 16 Jan 2017 01:41:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alessandrora" aria-label="Profile: AlessandroRa">@<bdi>AlessandroRa</bdi></a> No you will have to take a look at <a href="http://fontawesome.io/icons/" target="_blank" rel="noopener noreferrer nofollow ugc">Font Awsome</a> which is being used throughout the magic mirror. In the link you can find all the icons you can use. (someone correct me if i’m wrong)</p>
]]></description><link>https://forum.magicmirror.builders/post/11204</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11204</guid><dc:creator><![CDATA[tosti007]]></dc:creator><pubDate>Mon, 16 Jan 2017 01:41:19 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Mon, 16 Jan 2017 01:19:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chrisyy" aria-label="Profile: chrisyy">@<bdi>chrisyy</bdi></a> thank you man, so let me get this straight: I find a button that I like on internet, I copy its code and I put it into the module?<br />
I’m sorry, but I’m kinda new to this :)</p>
]]></description><link>https://forum.magicmirror.builders/post/11203</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11203</guid><dc:creator><![CDATA[AlessandroRa]]></dc:creator><pubDate>Mon, 16 Jan 2017 01:19:41 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Sun, 15 Jan 2017 19:25:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shashank" aria-label="Profile: shashank">@<bdi>shashank</bdi></a></p>
<p dir="auto">So right now it hides all modules by default.  If you want everything to show by default I think you just need to comment out a section from MM-navbar.js.  These are lines 12 - 19 right now:</p>
<pre><code>notificationReceived: function(notification, payload, sender){
	if (notification === 'DOM_OBJECTS_CREATED'){
		MM.getModules().exceptModule(this).exceptWithClass('clock').enumerate(function(module){
			module.hide(1000, function(){
			});
		});
	}
},
</code></pre>
<p dir="auto">Just open and close a comment around this section so it looks like this:</p>
<pre><code>/*notificationReceived: function(notification, payload, sender){
	if (notification === 'DOM_OBJECTS_CREATED'){
		MM.getModules().exceptModule(this).exceptWithClass('clock').enumerate(function(module){
			module.hide(1000, function(){
			});
		});
	}
},*/
</code></pre>
<p dir="auto">And I think it should display all your normal modules on startup.</p>
]]></description><link>https://forum.magicmirror.builders/post/11143</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11143</guid><dc:creator><![CDATA[in_a_days]]></dc:creator><pubDate>Sun, 15 Jan 2017 19:25:41 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Sun, 15 Jan 2017 14:56:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/in_a_days" aria-label="Profile: in_a_days">@<bdi>in_a_days</bdi></a> hi, how can i change code to show more modules apart from clock, i need weather and calendar to show as default</p>
]]></description><link>https://forum.magicmirror.builders/post/11091</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11091</guid><dc:creator><![CDATA[shashank]]></dc:creator><pubDate>Sun, 15 Jan 2017 14:56:12 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Fri, 13 Jan 2017 09:28:19 GMT]]></title><description><![CDATA[<p dir="auto">I gave your code a look an notived that you imported jquery. First of all, you could also direct to a external file, see <a href="https://github.com/MichMich/MagicMirror/blob/master/modules/README.md#getscripts" target="_blank" rel="noopener noreferrer nofollow ugc">module documentation</a>, this way you only have to change that line when you want to update the jquery. However if you would replace the on with addEventListener then you wouldn’t have to import jquery at all. Your code wouldn’t have to change much at all since that method takes the same parameters.</p>
]]></description><link>https://forum.magicmirror.builders/post/10997</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10997</guid><dc:creator><![CDATA[tosti007]]></dc:creator><pubDate>Fri, 13 Jan 2017 09:28:19 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Fri, 13 Jan 2017 08:53:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/in_a_days" aria-label="Profile: in_a_days">@<bdi>in_a_days</bdi></a> the code for Show/hide alle of the modules is</p>
<p dir="auto">MM.getModules().exceptModule(this).exceptWithClass(‘clock’).enumerate(function(module){<br />
module.hide(1000, function(){<br />
});<br />
});</p>
<p dir="auto">but there is not a button implemented until now.</p>
]]></description><link>https://forum.magicmirror.builders/post/10996</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10996</guid><dc:creator><![CDATA[chrisyy]]></dc:creator><pubDate>Fri, 13 Jan 2017 08:53:29 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Fri, 13 Jan 2017 08:50:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alessandrora" aria-label="Profile: AlessandroRa">@<bdi>AlessandroRa</bdi></a> for now, u have to copy a button and Change the code to another module.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tosti007" aria-label="Profile: tosti007">@<bdi>tosti007</bdi></a> Thanks for the tip. i’ll have a look at the module.</p>
]]></description><link>https://forum.magicmirror.builders/post/10995</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10995</guid><dc:creator><![CDATA[chrisyy]]></dc:creator><pubDate>Fri, 13 Jan 2017 08:50:57 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Thu, 12 Jan 2017 18:40:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chrisyy" aria-label="Profile: chrisyy">@<bdi>chrisyy</bdi></a> first of all I want to say that your module looks really nice, unfortunate that my mirror won’t have touch ;(. This module could be used in conjunction with my ProfileSwitcher module. This way you won’t have to bother with showing/hiding certain modules and others won’t have to modify your code. :)</p>
]]></description><link>https://forum.magicmirror.builders/post/10930</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10930</guid><dc:creator><![CDATA[tosti007]]></dc:creator><pubDate>Thu, 12 Jan 2017 18:40:45 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Thu, 12 Jan 2017 16:37:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chrisyy" aria-label="Profile: chrisyy">@<bdi>chrisyy</bdi></a> All I have is the weather, calendar and news buttons, how can I get more of them?<br />
I’m using: Mail, Hello World, Alarm, News, Calendar and Music player.<br />
For hiding/showing all I’m using this module: <a href="https://github.com/masters1222/mm-hide-all" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/masters1222/mm-hide-all</a></p>
]]></description><link>https://forum.magicmirror.builders/post/10929</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10929</guid><dc:creator><![CDATA[AlessandroRa]]></dc:creator><pubDate>Thu, 12 Jan 2017 16:37:01 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Thu, 12 Jan 2017 16:29:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chrisyy" aria-label="Profile: chrisyy">@<bdi>chrisyy</bdi></a></p>
<p dir="auto">Here is the navbar code with my modifications:</p>
<p dir="auto"><a href="https://github.com/in-a-days/MM-navbar" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/in-a-days/MM-navbar</a></p>
<p dir="auto">The user will still need to install voicecontrol, create and load the .pmdl files, and properly configure config.js.</p>
<p dir="auto">Is the show/hide all button part of this build?  I’m looking for something like</p>
<pre><code>	var showallbutton = document.createElement("span");
</code></pre>
<p dir="auto">to match these</p>
<pre><code>	var weatherbutton = document.createElement("span");
	var newsbutton = document.createElement("span");
</code></pre>
<p dir="auto">And I’m not finding anything.  Thanks again, I really love this module!</p>
]]></description><link>https://forum.magicmirror.builders/post/10922</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10922</guid><dc:creator><![CDATA[in_a_days]]></dc:creator><pubDate>Thu, 12 Jan 2017 16:29:31 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Thu, 12 Jan 2017 07:22:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/in_a_days" aria-label="Profile: in_a_days">@<bdi>in_a_days</bdi></a> maybe u can make a fork of it in git? Thanks for sharing ur code.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alessandrora" aria-label="Profile: AlessandroRa">@<bdi>AlessandroRa</bdi></a> There’s also a button in this module for hiding/showing everything. Do u have another module that will do this function for it?</p>
<p dir="auto">@All<br />
Forgive me if I’m not answering in time. Since I’m moving my time is very limited.<br />
When we are done (maybe in 2-3 Weeks) i will do some updates on my own mirror and will update code if needed.</p>
<p dir="auto">U can also submit code on git, i will take a look and implement it.</p>
<p dir="auto">I’ll try to Keep in touch.</p>
]]></description><link>https://forum.magicmirror.builders/post/10910</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10910</guid><dc:creator><![CDATA[chrisyy]]></dc:creator><pubDate>Thu, 12 Jan 2017 07:22:59 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Sat, 07 Jan 2017 20:17:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shashank" aria-label="Profile: shashank">@<bdi>shashank</bdi></a></p>
<p dir="auto">For sure.  Forgive me if there are several steps.</p>
<p dir="auto">First thing is to install this module</p>
<p dir="auto"><a href="https://github.com/alexyak/voicecontrol" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/alexyak/voicecontrol</a></p>
<p dir="auto">Go to your MagicMirror/modules folder and type</p>
<p dir="auto">git clone <a href="https://github.com/alexyak/voicecontrol.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/alexyak/voicecontrol.git</a></p>
<p dir="auto">Then install dependencies with</p>
<p dir="auto">sudo apt-get install python-pyaudio python3-pyaudio sox</p>
<p dir="auto">Next, install the navbar.  Again, make sure you are in the MagicMirror/modules folder and type</p>
<p dir="auto">git clone <a href="https://github.com/chr1syy/MM-navbar.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/chr1syy/MM-navbar.git</a></p>
<p dir="auto">Then you will need to go to this website and define your voice commands.</p>
<p dir="auto"><a href="https://snowboy.kitt.ai/" target="_blank" rel="noopener noreferrer nofollow ugc">https://snowboy.kitt.ai/</a></p>
<p dir="auto">Keep track of the keywords you define and the filenames you produce.  Each keyword/command will require you to download a .pmdl file that needs to be copied into the MagicMirror folder on your Pi.  I’m only using 3 commands so far - calendar, newsfeed, and weather.</p>
<p dir="auto">Still with me?  Sweet!  Lets configure config.js.  Go to the MagicMirror/config folder and</p>
<p dir="auto">nano config.js</p>
<p dir="auto">Assuming you know where to place a new module in this file, add the navbar module with</p>
<pre><code>            {
                    module: 'MM-navbar',
                    position: 'fullscreen_above'
            },
</code></pre>
<p dir="auto">Next we will add the voice control call to the same config.js file.  There are a couple variables here that will depend on the keywords and filenames you used on the snowboy site.  Here is the code I use</p>
<pre><code>          {
                    module: 'voicecontrol',
                    position: 'bottom_right',
                    config: {
                            models: [
                                            {
                                                    keyword: "Calendar",
                                                    description: "Say 'Calendar' to toggle display",
                                                    file: "calendar.pmdl",
                                                    message: "CALENDAR"
                                            },
                                            {
                                                    keyword: "Newsfeed",
                                                    description: "Say 'Newsfeed' to toggle display",
                                                    file: "newsfeed.pmdl",
                                                    message: "NEWSFEED"
                                            },
                                            {
                                                    keyword: "Weather",
                                                    description: "Say 'Weather' to toggle display",
                                                    file: "weather.pmdl",
                                                    message: "WEATHER"
                                            }
                                    ]

                            }
            },
</code></pre>
<p dir="auto">Note that the keyword and file need to match the keyword and filenames you used on your Snowboy files.  Save and quit out of config.js and we’ll hit the last step.  We need to make a couple changes to the navbar code.  Navigate to MagicMirror/modules/MM-navbar then</p>
<p dir="auto">nano MM-navbar.js</p>
<p dir="auto">First change is at line 13.  Right now lines 12-19 look like this</p>
<pre><code>notificationReceived: function(notification, payload, sender){
	if (notification === 'DOM_OBJECTS_CREATED'){
		MM.getModules().exceptModule(this).exceptWithClass('clock').enumerate(function(module){
			module.hide(1000, function(){
			});
		});
	}
},
</code></pre>
<p dir="auto">You will need to modify it to look like this</p>
<pre><code>    notificationReceived: function(notification, payload, sender){
            if (notification === "CALENDAR"){
                    var calendarbutton = document.getElementById('calendar-button');
                    calendarbutton.click();
            }
            if (notification === "NEWSFEED"){
                    var newsbutton = document.getElementById('news-button');
                    newsbutton.click();
            }
            if (notification === "WEATHER"){
                    var weatherbutton = document.getElementById('weather-button');
                    weatherbutton.click();
            }
    },
</code></pre>
<p dir="auto">Now we’re going down to the section that originally starts on line 32</p>
<pre><code>	wrapper.className = "center";
	weatherbutton.className = "wi wi-day-rain-mix navbar";
	calendarbutton.className = "fa fa-calendar navbar";	
	newsbutton.className = "fa fa-newspaper-o navbar";		
</code></pre>
<p dir="auto">And change it to</p>
<pre><code>            wrapper.className = "center";
            weatherbutton.className = "wi wi-day-rain-mix navbar";
            weatherbutton.id = 'weather-button';
            calendarbutton.className = "fa fa-calendar navbar";
            calendarbutton.id = 'calendar-button';
            newsbutton.className = "fa fa-newspaper-o navbar";
            newsbutton.id = 'news-button';
</code></pre>
<p dir="auto">Save, close and restart your MM and you should have a working, voice responsive nav bar.  I know there are kind of a lot of steps here and typos and omissions are entirely possible.  If you have any problems let me know and I’ll try to help.  Cheers!</p>
]]></description><link>https://forum.magicmirror.builders/post/10561</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10561</guid><dc:creator><![CDATA[in_a_days]]></dc:creator><pubDate>Sat, 07 Jan 2017 20:17:44 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Sat, 07 Jan 2017 14:27:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/chrisyy" aria-label="Profile: chrisyy">@<bdi>chrisyy</bdi></a> thank you for this awesome module!<br />
Only problem is that with this module on, the Hide/show all module disappeared. How can I fix it?<br />
Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/10553</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10553</guid><dc:creator><![CDATA[AlessandroRa]]></dc:creator><pubDate>Sat, 07 Jan 2017 14:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to MM-Navbar - Navigation Bar for Touchscreens to hide&#x2F;show modules on Sat, 07 Jan 2017 14:25:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/in_a_days" aria-label="Profile: in_a_days">@<bdi>in_a_days</bdi></a> hi, can you please share the code</p>
]]></description><link>https://forum.magicmirror.builders/post/10552</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10552</guid><dc:creator><![CDATA[shashank]]></dc:creator><pubDate>Sat, 07 Jan 2017 14:25:48 GMT</pubDate></item></channel></rss>