Read the statement by Michael Teeuw here.
MMM-traffic - used 12 hour to get it work but can not....
-
Hi
Im totally new into this MM2 - I have tried to get this MMM trafic module to work, I have so far used 12 hour on this project :-/ so can anyone help mee?
I have installed the MMM-traffic module and have add. following to Config.js :/* 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: 'da', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { module: "updatenotification", position: "top_bar" }, { module: 'clock', position: 'top_left' }, { module: 'calendar', header: 'Kalender', position: 'top_left', config: { calendars: [ { symbol: 'home', url: 'XXXXXXXX' }, { symbol: 'home', url: 'XXXXXXXXX' }, { symbol: 'home', url: 'XXXXXXXXXX' }, { symbol: 'home', url: 'XXXXXXXXXX' }, ] } }, { module: 'compliments', position: 'lower_third' }, { module: 'currentweather', position: 'lower_right', config: { location: 'New York', locationID: '2618425', //ID from http://www.openweathermap.org appid: 'XXXXXXXXXXXX' } }, { module: 'weatherforecast', position: 'top_right', header: 'Weather Forecast', config: { location: 'New York', locationID: '2618425', //ID from http://www.openweathermap.org appid: 'XXXXXXXXXXX' } }, { module: 'newsfeed', position: 'bottom_bar', config: { feeds: [ { title: "Ekstra Bladet Nyheder", url: "http://ekstrabladet.dk/rss2/?mode=normal&submode=nyheder" } ], showSourceTitle: true, showPublishDate: true } }, { module: 'MMM-Traffic', position: 'middle_center', classes: 'dimmed medium', //optional, default is 'bright medium', only applies to commute info not route_name config: { api_key: 'XXXXXXXXXXXX', mode: 'driving', origin: '4 Pennsylvania Plaza, New York, NY 10001', destination: '1 MetLife Stadium Dr, East Rutherford, NJ 07073', arrival_time: '0800', //optional, but needs to be in 24 hour time if used. route_name: 'Home to Work', changeColor: true, showGreen: false, limitYellow: 5, //Greater than 5% of journey time due to traffic limitRed: 20, //Greater than 20% of journey time due to traffic traffic_model: 'pessimistic', interval: 120000, //2 minutes showWeekend: false, allTime: false } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}After I have copy/paste the MMM-traffic module into Config.JS I only got a black screen, If I remove the MMM-Traffic in config.JS everything is fine, and I got my three calendars weather and news - what can be wrong ?
is the error in config.JS or MMM-Traffic module ?
best regards
Michael -
@ironman_DK the config for traffic works for me. Did you install the module in the correct folder
~/MagicMirror/modules/MMM-Traffic? Did you install the dependencies? -
@strawberry-3.141 said in MMM-traffic - used 12 hour to get it work but can not....:
dependencies
the Module is installed correct, what is dependencies, and what do I do ? I really need your help in this matter…
is dependencies something there should be in config.js or ?
Best regards
Michael -
@ironman_DK did you run
npm installin~/MagicMirror/modules/MMM-Traffic -
@strawberry-3.141 yes I did the installation in the right modules etc…
-
@ironman_DK problem solved. Somehow he modified the module directory name to lowercase and the system couldn’t find the module.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login