eouia / MMM-CalendarExt

Calendar views for MagicMirror
MIT License
55 stars 18 forks source link

Very very Newbie needs help #79

Open vxgsiturbo opened 4 years ago

vxgsiturbo commented 4 years ago

I think your module is great and have managed to get it working using the slightly complexed but easy version. i have one calendar working but can not get a second one added here is my code from my config.js file i would be greatful of you could help thanks

i have ** out my personal details

//disabled:true,
      module: 'MMM-CalendarExt',
      position: "top_center",
      config: {
        system: {
          show: ["daily", "upcoming"],
          locale: 'en',
          redrawInterval:60000,
        },
        views: {
          daily: {
            position:'bottom_bar',
            counts:7,
          },
          upcoming: {
            position:'top_left',
            limit:5
          },
        },
        defaultCalendar: {
          maxEntries:50,
          maxDays:180,
          interval: 1000*60*1,
        },
        calendars :[
          {
            name: "Calendar",
            symbol: "calendar-o",
            url: "https://calendar.google.com/calendar/ical/***************/public/basic.ics"

},
        ],
      }
    },
{
eouia commented 4 years ago

You can put your calendar object like this.

calendars :[
  {
    name: "CalendarA",
    url: "..."
  },
  {
    name: "CalendarB",
    url: "..."
  },
  {
    name: "CalendarC",
    url: "..."
  },
  // and so on if you need.
],
vxgsiturbo commented 4 years ago

thanks for the reply so to confirm it should look like this

//disabled:true, module: 'MMM-CalendarExt', position: "top_center", config: { system: { show: ["daily", "upcoming"], locale: 'en', redrawInterval:60000, }, views: { daily: { position:'bottom_bar', counts:7, }, upcoming: { position:'top_left', limit:5 }, }, defaultCalendar: { maxEntries:50, maxDays:180, interval: 1000601, }, calendars :[ { name: "Calendar", symbol: "calendar-o", url: "https://calendar.google.com/calendar/ical/***************/public/basic.ics" }, { name: "Work", symbol: "calendar-o", url: "https://calendar.google.com/calendar/ical/........................../public/basic.ics" }, { ],

eouia commented 4 years ago

Should I confirm? This is not your homework at school. Anyway, You made a(at least) mistake.

{
name: "Work",
symbol: "calendar-o",
url: "https://calendar.google.com/calendar/ical/........................../public/basic.ics"
},
{ // <--- WHY THIS BRACKET IS OPENED LONELY HERE?
],