Solved: How To insert an event into Google Calendar?

I explained it in one of the posts.

ok :ok_hand:

Hy, Palmare_as,
No it means that the event is remindered 10 minutes before…
:slight_smile:

hi Peter, I tried your suggestion and it worked very well. But I don’t understand why when the calendar appears and I press the button to save, nothing is saved.
And then another thing, as also requested by Palmare_as, the event cannot be saved automatically without showing the calendar?
Thank you so much :slight_smile:

Sorry,
Rescue works fine…

You also can set a recurrence rule. See last blocks on the list.

Will be repeated every week on tuesdays and thursdays. This will be done 2 times.

So if you want to set a birthday for instance you can use the string.
image

Still haven’t found the setting for an allday event.

This is more info on the rrule possibilities:

Recurrence rule

Recurrence rule defines the repeating pattern for recurring events. It is in form of string. For example, FREQ=WEEKLY;BYDAY=MO;COUNT=3 represents a pattern repeating 3 times on every Monday weekly, i.e. Monday, 2019-Nov-05 & 12 & 19.

The rule is written in the format of {rule_name}={rule_value} and concatenated with others with semicolon ; .

There are lots of global standard recurrence rules. Here are the four common rules which could be able to handle most cases — FREQ , UNTIL , COUNT and BYDAY .

1. FREQ (Frequency)

Frequency defines how often the pattern is repeated. It accepts the following parameters:

  1. DAILY
  2. WEEKLY
  3. MONTHLY
  4. YEARLY

Example: FREQ=DAILY

2. UNTIL

UNTIL defines the end date of the frequency. It accepts a value in date format of yyyyMMdd'T'HHmmss'Z' , e.g. “ 20191105T000000Z”

Example: FREQ=DAILY;UNTIL=20191105T000000Z means repeating the event every day until the 5th November, 2019.

3. COUNT

COUNT defines the number of occurrence of the frequency. It accepts an integer value.

Example: FREQ=DAILY;COUNT=10 means repeating the event every day for 10 rounds, i.e. 10 days.

4. BYDAY

BYDAY defines the list of weekday that the repeating pattern should be applied. It accepts the following parameters:

  1. MO (Monday)
  2. TU (Tuesday)
  3. WE (Wednesday)
  4. TH (Thursday)
  5. FR (Friday)
  6. SA (Saturday)
  7. SU (Sunday)

Example: FREQ=WEEKLY;BYDAY=MO,FR means the pattern repeats on every Monday and Friday weekly.

Practical examples:

  1. Repeat yearly on the upcoming 3 years
    FREQ=YEARLY;COUNT=3
  2. Repeat monthly until 1st January, 2020
    FREQ=MONTHLY;UNTIL=20200101T000000Z
  3. Repeat every Monday and Thursday on the upcoming 3 weeks. Count is 6 since total occurrence is 2x3 = 6.
    FREQ=WEEKLY;BYDAY=MO,TH;COUNT=6
  4. Repeat weekly on Monday until 1st January, 2020 FREQ=WEEKLY;BYDAY=MO,TU;UNTIL=20200101T000000Z

Trick on Recurrence Rule

UNTIL and COUNT contradict with each other. UNTIL defines the end date of the frequency. COUNT defines the number of occurrence of the frequency.

Android would ignore the presence of COUNT if UNTIL is presented, i.e. FREQ=DAILY;COUNT=10;UNTIL=20191105T000000Z equals to FREQ=DAILY;UNTIL=20191105T000000Z

9 Likes

Hy Peter,
tanks for recurrence rule. Now I try it.
Bye,

1 Like

Hi.
I’ve tryed out the Extensions and your given blocks, and it worked really well. But I still got one big problem: when I click the button, The Google calendar screen opens, but the event is empty, so my title isn’t shown etc… Does anybody now, what could be the reason for that? Is it because my settings are on German?

My is in Dutch and it works. Can you show the blocks you used?

thanks for the fast reply.
i’ve now fixed it somehow, but i now got a different problem.The title and the description are registered, but my time still doesn’t register. I also can’t change the title, once it was set.

and I also didn’t understand if it’s now an “i” ore a “L” infront of “endTime”

It is a small L. It stands for a long integer.

1 Like

You have two endtime blocks in your code.

Oh yes, thank you. Now it works!!!:sweat_smile:

2 Likes

Hy, yann_cosson,

Is there a way to automatically save the event?

Tanks.

No, untill now, i didn’t… I am working on that… But I Think this could ve very dificult, because it’s a separate app you have to control… As son as I found a solution, I will post it here.

Ok,
tanks,
bye. :slight_smile:

Does this work better than integrating google calender API? I have been trying to use this method but i keep getting errors.
https://groups.google.com/forum/m/#!msg/app-inventor-developers-library/x4GBw8wVI0I/U5gU_TxwsUoJ

Never tried the Calendar Api, but this works for me.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.