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.

    MMM-traffic - used 12 hour to get it work but can not....

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 2 Posters 2.7k Views 2 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.
    • I Offline
      ironman_DK
      last edited by yawns

      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

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @ironman_DK
        last edited by

        @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?

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

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          ironman_DK @strawberry 3.141
          last edited by

          @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

          strawberry 3.141S 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @ironman_DK
            last edited by

            @ironman_DK did you run npm install in ~/MagicMirror/modules/MMM-Traffic

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

            I 1 Reply Last reply Reply Quote 0
            • I Offline
              ironman_DK @strawberry 3.141
              last edited by

              @strawberry-3.141 yes I did the installation in the right modules etc…

              strawberry 3.141S 1 Reply Last reply Reply Quote 0
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer @ironman_DK
                last edited by

                @ironman_DK problem solved. Somehow he modified the module directory name to lowercase and the system couldn’t find the module.

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

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  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