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

    Posts

    Recent Best Controversial
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      @veldrovive Wow, that was a quick. Works fantastic now. Great job!! Thanks.

      posted in System
      J
      Johans
    • RE: MMM-Lunartic

      @pr05t3n You have to add your language reference also in the MMM-Lunartic.js file.
      See example below. That’s how I did.

      @mykle1 - correct me if i’m wrong!

      
          getTranslations: function() {
              return {
                  en: "translations/en.json",
                  fr: "translations/fr.json",
                  es: "translations/es.json",
                  de: "translations/de.json",
                  nl: "translations/nl.json",
                  sv: "translations/sv.json"
                      };
          },
      
      
      posted in Education
      J
      Johans
    • RE: MMM-Lunartic

      @mykle1 thanks for the update.

      For next update, can you include nl-translations?
      Here’s the data

      {
      "Distance from Earth's core = ": "Afstand vanaf middelpunt Aarde = ",
      "Distance from sun = ": "Afstand vanaf de Zon = ",
      "The next full moon is ": "Volgende Volle Maan is ",
      "The next new moon is ": "Volgende Nieuwe Maan is ",
      "The current moon is ": "De Huidige Maan is ",
      "The moon is ": "De Maan is  ",
      "% illuminated": " % verlicht",
      " days old": " dagen oud",
      "New Moon Phase": "Nieuwe Maan Faze",
      "Waxing Crescent Moon": "Wassende Maancikkel",
      "First Quarter Half Moon": "Eerste kwartier Halve Maan",
      "Waxing Gibbous Moon": "Wassende Gibbous Maan",
      "Full Moon": "Volle Maan",
      "Waning Gibbous Moon": "Afnemende Gibbous Maan",
      "Third Quarter Half Moon": "Derde kwartie Halve Maan",
      "Waning Crescent Moon": "Afnemende Wassende Maan",
      "When the Moon hits your eye . . .": "Wanneer de Maan zichtbaar is . . ."
      }
      
      
      posted in Education
      J
      Johans
    • RE: MMM-Page-Selector: A page switcher that can set positions of modules

      @Veldrovive Installed your module, along with the MMM-page-indicator.
      Page1 shows OK, but I can’t move to Page2.
      What i’m doing wrong?
      Here’s my config

      	modules: [
      		{
      			module: "alert",
      			pages: "all",
      		},
      		{
      			disabled: false,
      		        module: "MMM-Page-Selector",
      		        position: "top_bar",
      		        config: {
      			    defaultPage: "Page1",
      		            displayTitle: true,
      			    selectPageNotif: ["SELECT_PAGE"],
      		            incrementPageNotif: ["PAGE_UP"],
      		            decrementPageNotif: ["PAGE_DOWN"]
      		        }
      		},		
      		{
      			disabled: false,
      		        module: 'MMM-page-indicator',
      		        position: 'bottom_bar',
      			pages: "all",
      		        config: {
      		            pages: 3,
      		        }
      		},			
      		{
      
      			module: "updatenotification",
      			position: "top_bar",
      			pages: {"Page1": "top_bar"},
      		},
      		{
      			disabled: false,
      			module: "clock",
      			position: "top_left",
      			pages: {"Page1": "top_left"},
      		},
      		{
      			disabled: false,
      			module: "compliments",
      			position: "lower_third",
      			pages: {"Page2": "lower_third"},
      		},
      		{	
      	                disabled: false,
      	                module: 'MMM-Lunartic',
      	                position: 'top_center', // Best in left, center, or right regions
      		        pages: {"Page3": "top_center"},
      	                config: {
      		                mode: "rotating", // rotating or static
      		                image: "current", // animation, current, DayNight or static
      		                distance: "km", // miles or km
      		                useHeader: false, // true if you want a header
      		                header: "Huidige Maan stand", // Any text you want
      		                maxWidth: "300px",
      		                animationSpeed: 0,
      		                rotateInterval: 15000,
      			       }
      	        },
      		{
      		        disabled: false,			
      			module: 'MMM-BackgroundSlideshow',
      		        position: 'fullscreen_below',
      			pages: {"Page1": "fullscreen_below"},
      		        config: {
       		                imagePaths: ['modules/MMM-BackgroundSlideshow/Images/'],
      		                transitionImages: true,
      			        slideshowSpeed: 20000,  // 20 Seconds
      			        //transitionSpeed: '2s',
      		                randomizeImageOrder: true,
      		                }
      		},
      		{
      			module: 'MMM-Cursor',
      			pages: "all",
      		},
      	]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      
      

      I have installed MMM-Voice-Command as well, but I really don’t need voice for the moment so I didn’t add this in the config.

      posted in System
      J
      Johans
    • RE: MMM-Widget

      @sean
      I’ve tried other Iframe modules, but all of them expects a url starting with http or https…
      I only have a simple html webpage that I can consult localy on my webbrowser.
      Something like this

      file:///home/pi/MyPlayer/index.html
      

      Iframes doesn’t work. That is why I’ll found your Widget module fantastic.
      Dumped my html code in the config and it works fantastic. Only small thing is the css data must also be in there, and I would have wanted it could read it from a directory.
      Have tried your solutions, but thats not working. Can’t acces for example :

      https://localhost:8080//home/pi/MyPlayer/images/Radio2.png    or 
      https://192.168.1.130:8080/home/pi/MyPlayer/images/Radio2.png
      
      

      this is giving me following Error: “This site is not reachable.”

      Another side effect on your module is that it shows a second black box on the screen. See picture.!
      ![0_1541456351536_IMG_20181105_223543-edit.jpg](Uploading 84%)

      posted in System
      J
      Johans
    • RE: MMM-Widget

      @sean
      Thanks, I was looking for something like this.
      I’ve made simple website and works fine.
      Just a question. i’m using a few images which I have stored under a separate directory “images”, but where to put this directory? Same for my css file. For now I included the css data within the html section in the config.js, but I’ll rather work with a separate css file.

      posted in System
      J
      Johans
    • RE: Problem with MMM-LocalTemperature using MMM-Lucy

      @mykle1
      I understand that you need the proper sensor for making a test. Anyhow for now, I disabled the SHOW & HIDE for this module so it will remain always on screen.
      It isn’t realy a breaking problem. I was just wondering why all other modules are doing fine except this one’s not.
      Thanks man, for your the help & support.

      posted in Troubleshooting
      J
      Johans
    • RE: Problem with MMM-LocalTemperature using MMM-Lucy

      @mykle1
      Thanks for the information, but every bit of code is exactly as you wrote. So I really can’t understand why all other modules are working fine, except this one.
      First I thought it was because of the word wasn’t recognized.
      So I used words like TEMPERATURE, TEMP, HUMIDITY, en last one INDOOR. All have the same behaviour.
      Module hides, but voice command can’t bring it back on screen. So there must be something in this MMM-LocalTemperature.js file that is blocking it from coming back on screen.

      posted in Troubleshooting
      J
      Johans
    • Problem with MMM-LocalTemperature using MMM-Lucy

      Re: Hello-Lucy

      Installed MMM-voice, and MMM-Lucy -> made modifications as you decribed well in the readme file on modules that i’m using but not listed in your list of adapted modules to work with voice.

      Ex MMM-YouLess, MMM-Iframe-Ping, MMM-rain-forecast, MMM-LocalTemperature

      All work fine, except the last one -> MMM-LocalTemperature.
      I can Hide the module , but Show does’t react.

      this the code snippet set in the MMM-LocalTemperature.js file

      		return wrapper;
      	},
      	
      	   /////  Add this function to the modules you want to control with voice //////
      
      	    notificationReceived: function(notification, payload) {
      	        if (notification === 'HIDE_INDOOR') {
      	            this.hide(1000);
      		    this.updateDom(300);
      	        }  else if (notification === 'SHOW_INDOOR') {
      	            this.show(1000);
       		    this.updateDom(300);
      	        }
      	            
      	    },
      
      
      	/**
      	 * The roundNumber function rounds a number to the specified number of decimal places.  
      	 * Use a negative precision value to round to a position left of the decimal.  
      

      Don’t understand reason why HIDE command is working, but SHOW is not.

      Verified MMM-voice.js & node_helper.js and here also is fine.

      @Mykle1 , would be gret if you could look into the code of the MMM-LocalTemperature.
      Could it be because it’s using some C-programming (DHT.c)

      posted in Troubleshooting
      J
      Johans
    • RE: First MagicMirror

      Ignore my post, didn’t saw the link

      posted in Show your Mirror
      J
      Johans
    • 1 / 1