-
-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate Calendars #140
Comments
I thought they were in there. I am syncing multiple sports calendars using
your script. I love it by the way. It seems that it is creating a
duplicate calendar each time it syncs. Like I have Varsity Golf and then
the next time it syncs it have 2 Varsity Golfs. Is there something I need
to change or could this be a timeout with the ical feed?
…On Wed, Jul 8, 2020 at 12:31 PM Derek Antrican ***@***.***> wrote:
Were there some details you meant to add?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYL4MMO7GHXE5DO26HTR2SNPFANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
Is it syncing events to both calendars or just to the duplicate one? |
Just the last one that it created. The others have the events that were
there at the time it first created it. I will use golf for an example.
After 4 syncs I had 4 calendars of golf. Only the last one that was
created was showing any changes I made in the Arbiter sports. So I went
and deleted all the golf calendars. It synced and created a new golf
calendar. It has synced again since then and this time it did not create a
new calendar. So I am going to try to do that with my Coed Cross Country
one as well.
…On Wed, Jul 8, 2020 at 12:40 PM Derek Antrican ***@***.***> wrote:
Is it syncing events to both calendars or just to the duplicate one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYK5TS5WBSEEXRH3RCDR2SOO3ANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
This morning I now have several of each Calendar. I am not sure which one
to sync with my website.
…On Wed, Jul 8, 2020 at 12:40 PM Derek Antrican ***@***.***> wrote:
Is it syncing events to both calendars or just to the duplicate one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYK5TS5WBSEEXRH3RCDR2SOO3ANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
These are the only settings that I have altered:
var sourceCalendars = [ // The ics/ical urls that you want
to get events from along with their target calendars (list a new row for
each mapping of ICS url to Google Calendar)
// For instance: ["
https://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics", "US
Holidays"]
["
https://www2.arbitersports.com/ICal/School/schedule.ics?id=N%2fhxJb0KBDkIXyKYE9uRUQ%3d%3d",
"Botkins Boys Soccer"],
["
https://www2.arbitersports.com/ICal/School/schedule.ics?id=gPL0h7KzvCwXp0nt2Zv1jg%3d%3d",
"Girls Varsity Soccer"],
["
https://www2.arbitersports.com/ICal/School/schedule.ics?id=kDwzMGsaPfVzz8bAsGq5Kg%3d%3d",
"Girls Varsity Volleyball"],
["
https://www2.arbitersports.com/ICal/School/schedule.ics?id=oASuORLD%2bc55lEbfPUaDtw%3d%3d",
"HS Boys Cross Country"],
["
https://www2.arbitersports.com/ICal/School/schedule.ics?id=VnO75jOMM%2bwUc4OMYW%2be%2fw%3d%3d",
"HS Coed Varsity Cross Country"],
["
https://www2.arbitersports.com/ICal/School/schedule.ics?id=GTs8l1biBSI3BXmmMO%2fvkA%3d%3d",
"HS Girls Varsity Cross Country"],
["
https://www2.arbitersports.com/ICal/School/schedule.ics?id=MU0k%2bnMX%2fwWGVYOywiR0hw%3d%3d",
"Boys Varsity Golf"]
];
var howFrequent = 60; // What interval (minutes) to run
this script on to check for new events
var onlyFutureEvents = false; // If you turn this to "true", past
events will not be synced (this will also removed past events from the
target calendar if removeEventsFromCalendar is true)
var addEventsToCalendar = true; // If you turn this to "false", you
can check the log (View > Logs) to make sure your events are being read
correctly before turning this on
var modifyExistingEvents = true; // If you turn this to "false", any
event in the feed that was modified after being added to the calendar will
not update
var removeEventsFromCalendar = true; // If you turn this to "true", any
event created by the script that is not found in the feed will be removed.
var addAlerts = true; // Whether to add the ics/ical
alerts as notifications on the Google Calendar events, this will override
the standard reminders specified by the target calendar.
var addOrganizerToTitle = false; // Whether to prefix the event name
with the event organiser for further clarity
var descriptionAsTitles = false; // Whether to use the ics/ical
descriptions as titles (true) or to use the normal titles as titles (false)
var addCalToTitle = false; // Whether to add the source
calendar to title
var addAttendees = false; // Whether to add the attendee list.
If true, duplicate events will be automatically added to the attendees'
calendar.
var defaultAllDayReminder = -1; // Default reminder for all day
events in minutes before the day of the event (-1 = no reminder, the value
has to be between 0 and 40320)
// See
#75 for why this is
neccessary.
var addTasks = false;
var emailSummary = true; // Will email you when an event is
added/modified/removed to your calendar
var email = "puschelk@botkins.k12.oh.us"; //
OPTIONAL: If "emailWhenAdded" is set to true, you will need to provide your
email
/*
*===
…On Wed, Jul 8, 2020 at 12:40 PM Derek Antrican ***@***.***> wrote:
Is it syncing events to both calendars or just to the duplicate one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYK5TS5WBSEEXRH3RCDR2SOO3ANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
It seems to happen quite randomly, is that the case or does it duplicate calendars on every execution? |
Yesterday it started off just duplicating one. Then the later in the day
it got more were being duplicated. This morning I deleted all the
duplicates and so far I haven't seen any duplicates show up. I have it set
to sync every 60 minutes. I cannot tell if it is working or not though. I
was getting emails when it ran, however I have not got one since this
morning around 6:00.
…On Thu, Jul 9, 2020 at 10:22 AM jonas0b1011001 ***@***.***> wrote:
It seems to happen quite randomly, is that the case or does it duplicate
calendars on every execution?
And does it always duplicate all 7 calendars or just a few?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYIEOCMEP4DG5HFJE6DR2XHAZANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
You can check all executions here. |
It looks as though it has been running every hour and it shows that it is
skipping the events that are already on the calendar. So after I deleted
them this morning, it has not duplicated any calendars.
…On Thu, Jul 9, 2020 at 10:51 AM jonas0b1011001 ***@***.***> wrote:
You can check all executions here
<https://script.google.com/home/executions>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYMEUWXLCD573L6GDC3R2XKOLANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
Is there a maximum number of Calendars I can put in the script? If so can
I create a second script to run that pulls more?
…On Thu, Jul 9, 2020 at 10:51 AM jonas0b1011001 ***@***.***> wrote:
You can check all executions here
<https://script.google.com/home/executions>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYMEUWXLCD573L6GDC3R2XKOLANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
The only upper limit on how much you can sync is set by the execution time of the script. If the script takes too long to execute (processing too many events) then Google will cut it short. So you can start adding more calendars but if you start seeing that issue, the solution would be to create a second script for the other calendars |
Ok. Thanks for your help. I will probably just create a script for each
season of sports. Could the duplicated Copies be because the script did
not have enough time to finish loading all the events the first time? I
had it set to 5 minutes for every sync. Now that it is at 60 minutes it
doesn't seem to be duplicating calendars.
Also, when I make a copy of the script, do I need to uninstall it before I
copy it and then change the calendars? Or when I make a copy it will not
run until I go to Run function and install?
Keith
…On Thu, Jul 9, 2020 at 12:12 PM Derek Antrican ***@***.***> wrote:
The only upper limit on how much you can sync is set by the execution time
of the script. If the script takes too long to execute (processing too many
events) then Google will cut it short. So you can start adding more
calendars but if you start seeing that issue, the solution would be to
create a second script for the other calendars
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYOSHSJR2AK6NDXHS4LR2XT53ANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
Yes, for each copy of the script you will have to run the "install" function. I doubt that is the cause but stranger things have happened before. I was initially thinking it was something like multiple instances of the script fighting or not quite the same calendar name. Something like that. I'll close this for now, but please feel free to comment if the issue comes back and we'll investigate further |
It duplicated two of the calendars overnight. It seems that if I delete
the duplicates that it runs fine during the day.
…On Thu, Jul 9, 2020 at 2:31 PM Derek Antrican ***@***.***> wrote:
Yes, for each copy of the script you will have to run the "install"
function.
I doubt that is the cause but stranger things have happened before. I was
initially thinking it was something like multiple instances of the script
fighting or not quite the same calendar name. Something like that.
I'll close this for now, but please feel free to comment if the issue
comes back and we'll investigate further
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYPQKYXBNEUAMFMUTJTR2YEGJANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
@puschmeister want to ping on this issue - are your calendars still getting duplicated? |
I reduced my calendars back to only update every 6-8 hours and that seemed
to take care of my duplicating issues. I also have the new script running
for my spring sports and they seem to be working fine as well with the 6-8
hour interval.
Keith
…On Wed, Dec 16, 2020 at 10:30 PM Derek Antrican ***@***.***> wrote:
@puschmeister <https://github.com/puschmeister> want to ping on this
issue - are your calendars still getting duplicated?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQG7FYNG553V6NQJWJ6HMI3SVF3NPANCNFSM4OUXSJUA>
.
--
--
CONFIDENTIALITY NOTICE:
This message may contain personally
identifiable
information that is confidential. Such information is intended
only for
the use of the individual or entity named above. If you are not
the
intended recipient, you are hereby notified that any
disclosure,
copying, printing, distribution, or the taking of any action
in reliance on
the contents of the information contained herein is
strictly prohibited. If
you receive this email message in error, please
immediately notify me by
email, and delete the message from your
computer.
Thank you.
|
No description provided.
The text was updated successfully, but these errors were encountered: