MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

MMM-MyCommute not updating traffic times



  • I got the MyCommute module to work however, it is not adjusting accordingly to the traffic. It only ever reads travel time with no traffic. I have tried to mess with pollFrequency, assuming this is the issue but have had no luck. I am not a programmer so please help! It will display accurate travel time for no traffic only. So it is not actually checking traffic for updates. Here is my outline for it:

    		module:	'MMM-MyCommute',
    		position: 'bottom_left',
    		classes: 'default everyone',
    		header: "Traffic",
    		config: {
    			api_key: 'xxxxxxxx',
    			origin: 'xxxxx',
    			showSummary: true,
    			startTime: '00:00',
    			endTime: '23:59',
    			colorCodeTravelTime: true,
    			destinations: [
    				{
    				destination: "1100 S Marietta Pkwy, Marietta, GA 30060",
    				label: 'KSU Marietta',
    				mode: 'driving',
    				//green color: '#22a960',
    				alternatives: true,
    				pollFrequency: 600000,
    				},
    				{
    				destination: 'xxxxxx',
    				label: 'CHOA',
    				mode: 'driving',
    				alternatives: true,
    				pollFrequency: 600000,
    				}
    		]
    	},
    	},


  • This is my code and it updates with traffic as expected.

    {
      module: 'MMM-MyCommute', 
      position: 'top_left',
      header: 'Commute',
      classes: 'default everyone',
      config: {
        apikey: 'xxxxxxx',
        origin: 'xxxxxx',
        moderateTimeThreshold: '1.15',
        poorTimeThreshold: '1.3',
        showSummary: true,
        destinations: [
          {
            destination: 'xxxxxxx',
            label: 'Work',
            mode: 'driving',
    	alternatives: true,
    	startTime: '05:00',
            endTime: '09:00',
            hideDays: [0,2,5,6],
            color: '#9b59b6',
          },
    	   {
            destination: 'xxxxxx',
            label: 'xxxxxx',
            mode: 'driving',
    	alternatives: true,
    	 startTime: '05:00',
             endTime: '10:00',
             hideDays: [0,1,2,3,4,6],
             color: '#33B5FF',
          }, 
    	  {
            destination: 'xxxxxx',
            label: 'xxxxxxx',
            mode: 'driving',
    	alternatives: true,
    	startTime: '05:00',
            endTime: '10:00',
            hideDays: [0,1,2,3,4,5],
            color: '#9b59b6',
          },
        ]
      }
    },