Read the statement by Michael Teeuw here.
Unable to import 3rd modules party in config.js
-
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.jsI would like to understand how to insert these strings in config.js
Thank you in advance,
Giuliano -
@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' },
-
/* 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
-
@giulianomondin comma missing after updateinterval