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
    • RE: First MagicMirror

      Nice mirror!
      Can you share the module for the digital photo/wall display feeling ?

      posted in Show your Mirror
      J
      Johans
    • RE: MMM-NOAA - Another Weather Module

      @cowboysdude

      OK, than I don’t need to worry.

      posted in System
      J
      Johans
    • RE: MMM-NOAA - Another Weather Module

      @cowboysdude

      As always, great job!
      Didn’t noticed and I don’t know if it has to do with the upgrade or not.
      saw this message in the terminal window, but all seems to work fine for me.
      Just wanted to let you know.

      Whoops! There was an uncaught exception...
      TypeError: Cannot read property 'pollution' of undefined
          at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:179:35)
          at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:171:28)
          at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22)
          at emitTwo (events.js:126:13)
          at Request.emit (events.js:214:7)
          at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10)
          at emitOne (events.js:116:13)
          at Request.emit (events.js:211:7)
          at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12)
          at Object.onceWrapper (events.js:313:30)
      
      
      posted in System
      J
      Johans
    • RE: Iframe select sound card

      @johans
      Have found solution myself.
      Disabled internal soundcard, so only possible option now is the USB soundcard.

      posted in Utilities
      J
      Johans
    • Iframe select sound card

      Hi, I’m using I-frame to display contents os my local webpage, which works fine.
      On this page, I have some links to radio stations.
      When I start a radiostream, sound comes through speakers on my display, while it should come via my external USB sound card, as this one is set as default.
      When I play a simple MP3 from a directory, Output is fine on the external USB sound card.

      How can I set within an I frame that sound should go to the USB soundcard, and not via the HDMI.

      posted in Utilities
      J
      Johans
    • RE: Error Within MMM-My-Calendar module

      Solved, deleted kalendar en made new. Was the most easy way to do.

      posted in Troubleshooting
      J
      Johans
    • Error Within MMM-My-Calendar module

      Hi,
      Have installed additional Calendar module, and i’m using the teamup calendars.
      I have 4 different calendars, but only 3 are shown on the screen. Looking further I see following problem.

      Connecting socket for: newsfeed
      Starting module: newsfeed
      Sockets connected & modules started ...
      Launching application.
      Create new calendar fetcher for url: http://ics.teamup.com/feed/xxxxx/xxxxx.ics - Interval: 300000
      Create new calendar fetcher for url: http://ics.teamup.com/feed/xxxxx/xxxxx.ics - Interval: 300000
      Create new calendar fetcher for url: http://ics.teamup.com/feed/xxxxx/xxxxx.ics - Interval: 300000
      Create new calendar fetcher for url: http://ics.teamup.com/feed/xxxxx/xxxxx.ics - Interval: 300000
      Create new news fetcher for url: http://www.nieuwsblad.be/rss/section/c1e533dc-ff1c-40fc-b48c-77ee686d54d4?intro=1 - Interval: 300000
      Create new news fetcher for url: http://feeds.nieuwsblad.be/nieuws/snelnieuws - Interval: 300000
      Downloading moon img with signal: BRING_MOON From URL: tycho.usno.navy.mil/gif/phase.gif
      Whoops! There was an uncaught exception...
      TypeError: curr.exdates[i].toISOString is not a function
          at Object.ical.objectHandlers.END (/home/pi/MagicMirror/modules/MMM-MyCalendar/vendor/ical.js/node-ical.js:44:44)
          at Object.handleObject (/home/pi/MagicMirror/modules/MMM-MyCalendar/vendor/ical.js/ical.js:267:41)
          at Object.parseICS (/home/pi/MagicMirror/modules/MMM-MyCalendar/vendor/ical.js/ical.js:308:20)
          at Request._callback (/home/pi/MagicMirror/modules/MMM-MyCalendar/vendor/ical.js/node-ical.js:11:24)
          at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:186:22)
          at emitTwo (events.js:126:13)
          at Request.emit (events.js:214:7)
          at Request.<anonymous> (/home/pi/MagicMirror/node_modules/request/request.js:1163:10)
          at emitOne (events.js:116:13)
          at Request.emit (events.js:211:7)
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      
      

      I know which calendar is given the problem, but I can’t figure it out. I’m using these calendars since long time, and webaddress of the I-calendar feeds are correct, checked several times.

      posted in Troubleshooting
      J
      Johans
    • RE: MMM-NOAA - Another Weather Module

      @tbbear thanks for the quick answer.
      I will copy & rename & add into config file.

      About temp with decimals, I installed also MMM-MyWeather which takes the data from wunderground (just to compare both weather modules) - in fact It uses same API & PWS as NOAA, but here i’m getting the temperature with 1 decimal. (not 7°, but 7.4°).
      Anyhow, no big deal, I can live with it. I just asked, maybe there was a setting for the temp decimals which wasn’t yet communicated or so.

      posted in System
      J
      Johans
    • RE: MMM-NOAA - Another Weather Module

      Hi,
      Sorry for these stupid questions.

      1. How can I get the temperature with 1 or 2 decimals?
      2. I want to get data from 2 different locations (Home & Holiday home abroud)
        Can I copy module & rename it MMM-NOAA2 or can I put 2 different API & PWS locations in?
      posted in System
      J
      Johans
    • RE: MMM-DHT22 Humidity and Temperature Module

      @PaulB - glad you have found some time to work on it.
      Yes I still have the problem with reading the data in the MM.
      Hope you can find the cause. I would like to help you, but i’m not a programmer.
      The only thing I could help on is perhaps some beta testing.
      Cheers.
      Johan

      posted in Utilities
      J
      Johans
    • 1
    • 2
    • 3
    • 4
    • 5
    • 3 / 5