koyan / rocketchat-google-calendar Goto Github PK
View Code? Open in Web Editor NEWIntegration of rocketChat with Google calendar using a pything script to create a webhook
License: MIT License
Integration of rocketChat with Google calendar using a pything script to create a webhook
License: MIT License
Hi,
I set up the integration with Rocket.Chat 0.62.2 (can't use any higher version as long as the node problem is not fixed).
Everything went fine, including OAuth authentication. That is, I set up the integration as described in Rocket.Chat, I can run the python script, it finishes without error, and creates a file sentEvents
with some cryptic content. However, the event is not posted to the corresponding channel.
Any suggestion for how to debug this?
Our integration is showing messages like these for all-day events:
Start: 2020-07-31 01:00:00
End: 2020-08-01 01:00:00
Would it be possible to instead show:
Full Day: 2020-07-31
and for multi-day events:
Start: 2020-07-31 01:00:00
End: 2020-08-06 01:00:00
becomes
First Day: 2020-07-31
Last Day: 2020-08-05
The current system shows the end date as after the actual event, and includes an arbitrary time in the output.
Hi,
I am trying to implement this and read that I have to fill in the webhook url on line 18 and the calendar ID on line 21 in the Python script, but there are no variables on those lines that I can edit?
What am I doing wrong?
Regards,
Stef
Fire up the OAuth authentication process by running it once on shell/terminal
was the most complicated process for me on Debian server, without luck:
# python calendarWebhook.py
Traceback (most recent call last):
File "calendarWebhook.py", line 116, in <module>
main()
File "calendarWebhook.py", line 81, in main
calendarId=calendarId).execute()
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/http.py", line 840, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://www.googleapis.com/calendar/v3/calendars/d2V...?alt=json returned "Not Found">
A 2 hour offset seems to be hard coded in webhook.js:
62 var dateStartText = getFormattedDate(dateStart,2);
69 var dateEndtText = getFormattedDate(dateEnd,2);
Hi,
it would be really nice to have a simple means of formatting/modifying the appearance of calendar events posted in Rocket.Chat, e.g. removing the Google URL to the event, disable individual fields such as duration.
Trying to install this. Following the instructions, when i open calendarWebhook.py, your descriptions for calendarid and webhook url are flipped
calendarId is on line 17
and
url is on line 21
when i get down to running calendarWebhook.py manually to get the initial OAuth token, i get the following result
"
Couldn't sign you in
The browser that you're using doesn't support JavaScript, or has JavaScript turned off.
To keep your Google Account secure, try signing in on a browser that has JavaScript turned on. Learn more
* Google
* Privacy
* Terms
"
thus, no token.
I do all the 7 steps, create an event on Google Calendar and it shows in my desired chat when I run the python code.
Now next events are not run automatically. I checked step 8, set this to run every 5 minutes.
I need some help with this process. Also for this step my native computer needs to be online constantly?
Hey,
Does this still work? I cant post to rocketchat... The linux system (ubuntu) says nth back... and i dont get a notification.. but i disable the script tab and just do a test one it works..
Hello !
Maybe my request is unfounded but can somebody tell me where, in which folder do I have to put theses files in my server ?
client_secret.json
calendarWebhook.py
Thank you all for your support !
Hello,
How to execute step 7?
Thank's
where I find the verification code?
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.