undefined is not an object (evaluating 'this.config.exclude') in line 39
Closed this issue · 6 comments
Hi,
if I run your script i get this error in line 39.
It seems that this.config is not defined. Did i missed something. The widget shows: "Loading music"
Thx. Andi
Did you set exclude in your config? By default it is set to []
, so it shouldn't be null.
BTW: Line 40 is not correct, this.config.exclude
is only used in line 39 or 45. Is your code up to date?
I used the config from the readme.md:
{
module: 'sonos',
position: 'top_right', // you may choose any location
config: {}
}
Also tired this config, but got the same error message:
{
module: 'sonos',
position: 'bottom_right', // you may choose any location
config: {
showStoppedRoom: false,
showRoomName: true,
showAlbumArt: true,
exclude: ['Wohnzimmer']
}
}
So this is solved? What was wrong?
No, still the same error. Completely reinstalled magic mirror and the sonos module on a blank raspberry installation.
Still the error on line 39
If i comment the section out, the module works
//var isExcluded = this.config.exclude.indexOf(member.roomName) !== -1;
var isExcluded = false
hm.. Is this working for you right now?
I'm not at home for Christmas. I'll can have a look at it on my mirror next year.