• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Unable to import 3rd modules party in config.js

Scheduled Pinned Locked Moved Troubleshooting
moduleerrorconfig
4 Posts 3 Posters 2.2k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    giulianomondin
    last edited by Mar 5, 2017, 9:28 PM

    Good morning guys,
    Nice to meet you!

    I have got a problem with 3rd modules party.
    I clone the github link, i “npm install”, i try to insert in the config.js the strings belong to the module, but when i try to “npm start” the system respond “no config files”…probably there is an error in the config.js

    I would like to understand how to insert these strings in config.js

    Thank you in advance,
    Giuliano

    M 1 Reply Last reply Mar 5, 2017, 9:47 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @giulianomondin
      last edited by Mykle1 Mar 5, 2017, 9:52 PM Mar 5, 2017, 9:47 PM

      @giulianomondin said in Unable to import 3rd modules party in config.js:

      I would like to understand how to insert these strings in config.js

      If you paste a copy of your config here someone will help you.

      In the meantime, here is what some entries look like. You can scroll through the code. It’s easier if you add them one at a time. Don’t forget to make a backup of your config once you get it working. This way if something happens you can go back to a previous working config

      var config = {
      	port: 8080,
      	ipWhitelist: ["::fff:0.0.0.0/1", "::fff:128.0.0.0/2", "::fff:192.0.0.0/3", 
      			"::fff:224.0.0.0/4", "127.0.0.1", "::ffff:127.0.0.1", "::1"], 
      
      	language: 'en',
      	timeFormat: 12,
      	units: 'imperial',
      
      	modules: [
      		{
      			module: 'helloworld',
      			position: 'top_bar',	// This can be any of the regions.
      			classes: 'small bright',
      			config: {
      			text: 'Bottle Pop welcomes you to his very own Magic Mirror! You could have one if you were brilliant and talented and cool like him!'
      		}
      		},
      		{
          			module: 'MMM-Remote-Control',
          			position: 'lower_third'
      		},
      		{
      			module: 'compliments',
      			position: 'lower_third'
      		},
      		{
      			module: 'planetrise',
      			position: 'lower_third',	// This can be any of the regions.
      			// header: 'Join pop in looking at the heavens through his telescope',
              		config: {  
                  		latitude: 20.574776,  // Place the latitude and longitude of your mirror
                  		longitude: -20.112443,  // Place the latitude and longitude of your mirror
                  		bodies: {'Sun': '☉',
                          	'Moon': '☽',
                          	'Mercury': '☿',
                          	'Venus': '♀',
                          	'Mars': '♂',
                          	'Jupiter': '♃',
                          	'Saturn': '♄',
                  	}
              	}
      		},
      		{
      			module: 'alert',
      			config: {
      			timer: 3500,
      			effect: 'jelly', // Possible values: scale slide genie jelly flip exploader bouncyflip
      			alert_effect: 'flip', // Same as above
      			position: 'middle_center',
      		}
      		},
      		{
      			module: 'MMM-SimpleLogo',
      			position: 'bottom_left',	// This can be any of the regions.
      			fileUrl: "modules/MMM-SimpleLogo/public/yes.jpg",
      			config: {
      			width: "260px",
      			}
      		},
      		{
      			module: 'MMM-SimpleLogo',
      			position: 'bottom_right',	// This can be any of the regions.
      			config: {
      			width: "260px",
      			fileUrl: "modules/MMM-SimpleLogo/public/starship.jpg",
      			}
      		},
      		{
      			module: 'MMM-Globe',
      			position: 'bottom_center',
      			config: {
      			style: 'natColor', // natColor, geoColor, airMass, fullBand, europeDiscNat, europeDiscSnow, centralAmericaDiscNat
      			imageSize: 175,
      			updateInterval: 10*60*1000
      		}
      		},
      		{
      			module: 'clock',
      			position: 'top_center'
      		},
      

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • G Offline
        giulianomondin
        last edited by yawns Mar 6, 2017, 8:15 AM Mar 5, 2017, 10:10 PM

        /* Magic Mirror Config Sample
         *
         * By Michael Teeuw http://michaelteeuw.nl
         * MIT Licensed.
         */
        
        var config = {
        	port: 8080,
        	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
        
        	language: 'en',
        	timeFormat: 24,
        	units: 'metric',
        
        	modules: [
        		{
        			module: 'alert',
        		},
        		{
        			module: "updatenotification",
        			position: "top_bar"
        		},
        		{
        			module: 'clock',
        			position: 'top_left'
        		},
        		{
        			module: 'calendar',
        			header: 'Festività nazionali',
        			position: 'top_left',
        			config: {
        				calendars: [
        					{
        						symbol: 'calendar-check-o ',
        						url: 'https://calendar.google.com/calendar/ical/it.italian%23holiday%40group.v.calendar.google.com/public/basic.ics'
        					}
        				]
        			}
        		},
        		{
        			module: 'compliments',
        			position: 'lower_third'
        		},
        		{
        			module: 'currentweather',
        			position: 'top_right',
        			config: {
        				location: 'Valeggio sul Mincio,Italy',
        				locationID: '3164924',  //ID from http://www.openweathermap.org
        				appid: 'XXXXXXXXXX'
        			}
        		},
        		{
        			module: 'weatherforecast',
        			position: 'top_right',
        			header: 'Weather Forecast',
        			config: {
        				location: 'Valeggio sul Mincio,Italy',
        				locationID: '3164924',  //ID from http://www.openweathermap.org
        				appid: 'XXXXXXXXXXXXXXXXXXXX'
        			}
        		},
        		{
        			module: 'newsfeed',
        			position: 'bottom_bar',
        			config: {
        				feeds: [
        					{
        						title: "Il corriere della sera",
        						url: "http://xml.corriereobjects.it/rss/homepage.xml"
        					}
        				],
        				showSourceTitle: true,
        				showPublishDate: true
        			}
        		},
        		{
            			module: 'MMM-Flickr',
            			position: 'bottom_right',
            			config: {
                		id: 'XXXXXXXXXX',
                		animationSpeed: 2500,
                		updateInterval: 10000
                		size: 'm' // Default is m, can be o=original, t=thumbnail, s= 75x75, b=1024
                         	 // 'z' medium 640, 640 on longest side. 'c' medium 800, 800 on longest side
           			 }
        		},
        	]
        
        };
        
        /*************** DO NOT EDIT THE LINE BELOW ***************/
        if (typeof module !== 'undefined') {module.exports = config;}
        

        MY PROBLEM IS THE MMM-Flickr module that i added At the end of config.js

        strawberry 3.141S 1 Reply Last reply Mar 5, 2017, 10:16 PM Reply Quote 0
        • strawberry 3.141S Offline
          strawberry 3.141 Project Sponsor Module Developer @giulianomondin
          last edited by Mar 5, 2017, 10:16 PM

          @giulianomondin comma missing after updateinterval

          Please create a github issue if you need help, so I can keep track

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy