jclarke0000/MMM-MyCommute

Syntax Error?

GoodWillGustin opened this issue · 1 comments

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

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.