jclarke0000 / MMM-MyCommute

This a module for the MagicMirror. It shows your commute time using Google's Traffic API
67 stars 26 forks source link

Syntax Error? #29

Closed GoodWillGustin closed 4 years ago

GoodWillGustin commented 4 years ago

I am trying to write the module but am getting a syntax error on the line where I write the destinations: [ array. I'm not sure what I am doing wrong, but here is what I have:

{ module: 'MMM-MyCommute', position: 'top_center', header: 'Traffic', classes: 'default everyone', config: { apikey: 'googleAPIkey', origin: 'home', startTime: '00:00', endTime: '17:00' destinations: [ //ERROR LINE -- "SyntaxError: Unexpected identifier" { destination: 'address' label: 'work name' } ] }
},

(error messages) 2019-11-29-011844_1920x1080_scrot

GoodWillGustin commented 4 years ago

I was missing some commas at the ends of lines -- it's still not loading, but at least mm is launching. I will keep working on it.