Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Very very Newbie needs help #79

Open
vxgsiturbo opened this issue Mar 2, 2020 · 3 comments
Open

Very very Newbie needs help #79

vxgsiturbo opened this issue Mar 2, 2020 · 3 comments

Comments

@vxgsiturbo
Copy link

vxgsiturbo commented Mar 2, 2020

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
Copy link
Owner

eouia commented Mar 3, 2020

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
Copy link
Author

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
Copy link
Owner

eouia commented Mar 3, 2020

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?
],

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants