• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-MyCommute not updating traffic times

Scheduled Pinned Locked Moved Unsolved Troubleshooting
2 Posts 2 Posters 1.2k 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.
  • T Offline
    tguad
    last edited by tguad Aug 11, 2018, 11:06 PM Aug 11, 2018, 10:24 PM

    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 Offline
      krouton
      last edited by Nov 1, 2018, 11:35 PM

      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 Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy