Closed GoodWillGustin closed 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)
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.
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)