nobe4 / extralendar Goto Github PK
View Code? Open in Web Editor NEWGoogle app script for automatic export of the extranet calendar to google calendar.
License: MIT License
Google app script for automatic export of the extranet calendar to google calendar.
License: MIT License
quand je met l'id de ma spreadsheet j'ai l'erreur suivante :
Vous n'êtes pas autorisé à appeler openById. (ligne 35, fichier "Code")
Pourtant j'ai bien une feuille Errors
Il est impossible de voir sur plus de deux semaines... C'est possible de changer et de passer à une vision largement plus importante (1-2 mois)?
Cordialement,
The owners of the script will be the only one to receive a report.
Find a way to get the owner of the script.
J'ai ce message d'erreur dans le l'affichage du script execution..
[14-10-01 12:23:21:110 CEST] MailApp.sendEmail([[email protected], Error report Extralendar,
Date: Wed Oct 01 2014 12:23:21 GMT+0200 (CEST)
Number: 10004
Message: Impossible to fetch the ASP id, check the ADDRESS
Hi guys,
First thank you for the script, it's very usefull.
I've noticed an issue with the hours in the calendar. As you can see from the image below, there is a shift between the google calendar and the extranet (exactly +9 hours).
I just want to know if I'm the only one whit this problem.
Thanks again
Hello, when I run your script, I have a error report
"Date: Tue Sep 23 2014 19:02:24 GMT+0200 (CEST)
Number: 10004
Message: Impossbile to fetch the ASP id, check the ADDRESS
Line: 70"
The address of extranet:"extranet.efrei.fr"
Can you help me to fix that ?
Salut,
Déjà merci d'avoir créé ce script ça change la vie !
J'ai relevé un bug assez pénible : certains cours s'ajoutent à chaque synchronisation. Ca ne le fait que sur certains mais du coup on peut arriver à avoir 10 événements dupliqués en 1 journée si on ne les supprime pas au fur et à mesure.
C'est pas très grave mais bon ça peut être gênant à la longue ;)
"both"
: The school address + the room number"school"
: only the school address"room"
or true (by default) : only the room number.Date is provided in GMT format, add +1 or +2 during summer time.
The reason seems to be the following : Event which is an error, not an event, and therefore can't be added to the calendar.
Initial email report :
Date: Tue Dec 16 2014 18:38:17 GMT+0100 (CET)
Number: undefined
Message: Cannot call method "match" of undefined.
Line: 131 (which is var d = title.match(new RegExp(regexp));, in parseTitle(title) function, called by createEvent(calendar, event) function)
So I changed the source code, and it turns out that this is called at least for the first event in my calendar (the script won't go further), and that the event processed by createEvent() seems to be an error log or alert box message, instead of an event :
{
"title":"Erreur",
"buttons":Ext.Msg.OK,
"closable":false,
"icon":Ext.Msg.ERROR,
"msg": "An error occurred (16/12/2014 19:01:11 ) while processing your request. Please contact the administrator."
}
I've set createEvent function to this code :
var numberOfEvents = 0;
// Create Event
function createEvent(calendar, event) {
numberOfEvents++;
try {
var info = parseTitle(event.title);
var title = info.title;
var start = new Date(getDateFromIso(event.start));
var end = new Date(getDateFromIso(event.end));
var desc = info.teacher;
var loc = info.location;
if(args.log_update){
desc += "\n\nUpdated at :\n" + new Date();
}
var event = calendar.createEvent(title, start, end, {
description : desc,
location : loc
});
} catch (e) {
mailError(e);
mailError(new Error("Could not handle event number "+numberOfEvents+" : " + JSON.stringify(event)));
}
};
and I get the following email :
Date: Tue Dec 16 2014 19:01:12 GMT+0100 (CET)
Number: undefined
Message: Could not handle event number 1 : "Ext.Msg.show({"title":"Erreur","buttons":Ext.Msg.OK,"closable":false,"icon":Ext.Msg.ERROR,"msg":"An error occurred (16/12/2014 19:01:11) while processing your request. Please contact the administrator."});"
Line: 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.