smart-mirror icon indicating copy to clipboard operation
smart-mirror copied to clipboard

"" missing from calendar section of config.js

Open nojkepop opened this issue 10 years ago • 4 comments

This section needs "" inside of the [] otherwise the calendar starts to a black screen with a cursor.

// Calendar (An array of iCals)
calendar: {
  icals : [],
  maxResults: 9, // Number of calender events to display (Defaults is 9)
  maxDays: 365 // Number of days to display (Default is one year)

nojkepop avatar Feb 19 '16 23:02 nojkepop

This is an issue with the calendar-service, not with the config. It needs to have a check to see if the array is empty.

evancohen avatar Feb 19 '16 23:02 evancohen

The problem is though if you put in your calendar link without the "" the mirror loads to a black screen with a cursor.

nojkepop avatar Feb 20 '16 00:02 nojkepop

I can look at this tomorrow, unfortunately that's most likely the soonest I can do it.

dardub avatar Feb 20 '16 00:02 dardub

Originally I thought that having this empty array was causing the mirror to break, but I looked at this and there is nothing wrong with the way this works. That's just the syntax for an array of strings in JavaScript - there's no other way to do it.

There is also an explicit example of this in the README (which still needs to be updated to reflect the new config format, but that's unrelated).

evancohen avatar Feb 20 '16 00:02 evancohen