wilda17 / ESP8266-Google-Calendar-Arduino

Interaction between an ESP8266 and the Google Calendar.
47 stars 23 forks source link

Script error #3

Closed mrohner closed 5 years ago

mrohner commented 5 years ago

Hi Andreas,

When I do the 'Run -do get' step of your script I get the following error: TypeError: Cannot call method "getEvents" of undefined. (line 13, file "Code")

Line 13 is: var events = Cal.getEvents(Now, Later);

Any idea?

wilda17 commented 5 years ago

Hello, I had a look at the script. It is still working. I tried changing the name of the calendar in line 7 and got the same error. Do you have a calendar which matches with the name in line 7?

Please let me know if this solves your problem.

Cheers, daniel

mrohner commented 5 years ago

Thanks, but yes it matches Calendar

I also tried the other calendars without success

wilda17 commented 5 years ago

Hi Markus,

I can't really identify the problem. I saw that you are using the Outlook calendar - is the same calendar with the same name in the google calendar too? Does google script have the permission to access this calendar - this is asked as soon as you start the script for the first time?

Cheers to Switzerland, daniel

mrohner commented 5 years ago

You are right, I have no google calendar. Obviously this script would not do the job for outlook. I will open a google calendar just for this purpose then. Thanks for looking into my problem.