MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. tidus5
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 59
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MM-Navbar - Navigation Bar for Touchscreens to hide/show modules

      @chrisyy

      yop :-)

      i added my own module to your script

       Module.register("MM-navbar",{
      	getScripts: function(){
      		return ["modules/MM-navbar/jquery-3.1.1.js"];
      	},
      	getStyles: function(){
      		return ["weather-icons.css", "navbar.css", "font-awesome.css"];
      	},
      	getDom: function(){
      
      		var wrapper = document.createElement("div");
      
      		var weatherbutton = document.createElement("span");
      		var calendarbutton = document.createElement("span");
      		var newsbutton = document.createElement("span");
      		var nestbutton = document.createElement("span");	//NEST module
      		var huebutton = document.createElement("span");		//HUE module
      		var localtransportbutton = document.createElement("span");	//localtransport module
      		var globebutton = document.createElement("span");	//globe module
      		var clockbutton = document.createElement("span");	//clock module
      		var complimentbutton = document.createElement("span");	//compliment module
      
      		var weatherhidden = false;
      		var calendarhidden = false;
      		var newshidden = false;
      		var nesthidden = false;
      		var huehidden = false;
      		var localtransporthidden = false;
      		var globehidden = false;
      		var clockhidden = false;
      		var complimenthidden = false;
      		
      		weatherbutton.className = "wi wi-day-rain-mix navbar";
      		calendarbutton.className = "fa fa-calendar navbar";	
      		newsbutton.className = "fa fa-newspaper-o navbar";
      		nestbutton.className = "fa fa-paw navbar";
      		huebutton.className = "fa fa-lightbulb-o navbar";
      		localtransportbutton.className = "fa fa-bus navbar";	
      		globebutton.className = "fa fa-globe navbar";
      		clockbutton.className = "fa fa-clock-o navbar";
      		complimentbutton.className = "fa fa-star-o navbar";
      
      
      		var forecast = MM.getModules().withClass('weatherforecast');
      		var weather = MM.getModules().withClass('currentweather');
      		var calendar = MM.getModules().withClass('calendar');
      		var news = MM.getModules().withClass('newsfeed');
      		var nest = MM.getModules().withClass('MMM-Nest');
      		var hue = MM.getModules().withClass('MMM-Hue');
      		var transport = MM.getModules().withClass('localtransport');
      		var globe = MM.getModules().withClass('MMM-Globe');
      		var clock = MM.getModules().withClass('clock');
      		var compliment = MM.getModules().withClass('compliments');
      	
      		wrapper.appendChild(weatherbutton);		
      		wrapper.appendChild(calendarbutton);
      		wrapper.appendChild(newsbutton);
      		wrapper.appendChild(nestbutton);
      		wrapper.appendChild(huebutton);
      		wrapper.appendChild(localtransportbutton);
      		wrapper.appendChild(globebutton);
      		wrapper.appendChild(clockbutton);
      		wrapper.appendChild(complimentbutton);
      	
      		$(weatherbutton).on("click", function(){
      			if(weatherhidden){
      				forecast[0].show();
      				weather[0].show();
      				weatherhidden = false;
      			}else{
      				forecast[0].hide();
      				weather[0].hide();
      				weatherhidden = true;
      			}
      		});
      
      		$(calendarbutton).on("click", function(){
      			if(calendarhidden){
      				calendar[0].show();
      				calendarhidden = false;
      			}else{
      				calendar[0].hide();
      				calendarhidden = true;
      			}
      		});
      
      		$(newsbutton).on("click", function(){
      			if(newshidden){
      				news[0].show();
      				newshidden = false;
      			}else{
      				news[0].hide();
      				newshidden = true;
      			}
      		});
      
      		$(nestbutton).on("click", function(){
      			if(nesthidden){
      				nest[0].show();
      				nesthidden = false;
      			}else{
      				nest[0].hide();
      				nesthidden = true;
      			}
      		});
      
      		$(huebutton).on("click", function(){
      			if(huehidden){
      				hue[0].show();
      				huehidden = false;
      			}else{
      				hue[0].hide();
      				huehidden = true;
      			}
      		});
      
      		$(localtransportbutton).on("click", function(){
      			if(localtransporthidden){
      				transport[0].show();
      				localtransporthidden = false;
      			}else{
      				transport[0].hide();
      				localtransporthidden = true;
      			}
      		});
      
      		$(globebutton).on("click", function(){
      			if(globehidden){
      				globe[0].show();
      				globehidden = false;
      			}else{
      				globe[0].hide();
      				globehidden = true;
      			}
      		});
      
      		$(clockbutton).on("click", function(){
      			if(clockhidden){
      				clock[0].show();
      				clockhidden = false;
      			}else{
      				clock[0].hide();
      				clockhidden = true;
      			}
      		});
      
      		$(complimentbutton).on("click", function(){
      			if(complimenthidden){
      				compliment[0].show();
      				complimenthidden = false;
      			}else{
      				compliment[0].hide();
      				complimenthidden = true;
      			}
      		});
      
      		return wrapper;				
      
      	}
      });
      

      Note from admin: Please use Markdown on code snippets for easier reading!

      posted in System
      tidus5T
      tidus5
    • RE: Facial Recognition - customize your mirror for every user!

      @Aly @Escenda
      i found the problem - the localtransport module :-)

      do you use this module too ? if you remove the module on the config.js its work :D

      posted in Troubleshooting
      tidus5T
      tidus5
    • RE: Facial Recognition - customize your mirror for every user!

      @Aly
      try with classes : ‘default’

      You have the same problem as me and @Escenda

      custom’s classes doesnt work and everyone’s classes neither
      im on it since 6 days and… it cant found the solution

      posted in Troubleshooting
      tidus5T
      tidus5
    • RE: Facial Recognition - customize your mirror for every user!

      Hey :D

      little UP - im becoming crazy.
      i read and read an read again - add… inside config.js (mirror module) or config.py (model tester)
      so users : [‘kevin’]… and the config.py is needed if i want to test with the recognition-tools

      right ?
      i see if the MMM-Facial use “everyone” or “kevin” that doesnt work

      posted in Troubleshooting
      tidus5T
      tidus5
    • RE: Facial Recognition - customize your mirror for every user!

      Hi everyone,

      my module is working fine and i can loggin with my user
      Module with class everyone and default are loading fine.

      But for module with my class 'Kevin" it doesnt work.

      i have this error "ught TypeError: Cannot read property ‘toLowerCase’ of undefined

      my ame class is the same as my user (copy paste)
      did i miss something ?

      thanksssss

      posted in Troubleshooting
      tidus5T
      tidus5
    • RE: Device detection - personalised message

      :-p thanks :-)

      posted in Development
      tidus5T
      tidus5
    • RE: Device detection - personalised message

      Hey guy, are you still on it ?

      posted in Development
      tidus5T
      tidus5
    • RE: Calendar module - var location

      @strawberry-3.141 thanks :-) yes was a bit lost in the code to found the broadcast

      posted in Development
      tidus5T
      tidus5
    • Calendar module - var location

      Hello

      is it possible to found a VAR with the location in the default calendar module of magic mirror?

      I want to use it with the module of localtransport to generate a dynamical search

      thanks :-)

      posted in Development
      tidus5T
      tidus5
    • 1 / 1