Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED MMM-MyCommute not updating traffic times

    Troubleshooting
    2
    2
    920
    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.
    • T
      tguad last edited by tguad

      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,
      				}
      		]
      	},
      	},
      1 Reply Last reply Reply Quote 0
      • K
        krouton last edited by

        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',
              },
            ]
          }
        },
        
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy