tag | 4bc5ea693bb747d916a49ab2512cdbe3ae6f59f1 | |
---|---|---|
tagger | Jess Frazelle <acidburn@microsoft.com> | Sat Jul 14 13:50:51 2018 -0400 |
object | 0c30ed5372b14504fc4ee6646ca653540aa5bc4e |
v0.1.3 -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAltKN/sACgkQGPNoXAAi v/PP+BAAxJBarFHXx5zCiyruNryOIiJ3AFjx9jgfCG3Qb2jZ/G4AvOSblUx1Zj6r PPZ8R8qdXlrqgdlgzdXScvSX7bX0R03j5OJiqaM7TpraMs9tztAdLdYt8ZzUp+QD 62Eec58j8lr8dDabHWVVxRmwM1PZyFdg3rSUG3Wyjsbp0qBWgj8KY4OOnN+x92m0 aPb8P1xdzGf9v+mwzcjciuOxFckncH+vely0DUWqJOty/SQ2z00Rbinj5UuSCQnA fGPQkPJ8K0X0GJ8sr7ME0xVH2BvHa0iKnV0gazf7nYjJtEEYRUvl3IRG3hw+rFD1 Mjs0P8+ut2BQBVX/633OdhsNM/P3KjoR4EkAAOtOW66ic6BVMbTzMwJ3T4zEKNUu GgDbSvLFPmCczuFbcRHDx04zWFGjrJ7OOwK7yV1i5SMeJJxq+YM5IEXfiMqAn2yr Ptt6BAYyGrRR/cCT9UXT65HZLqouX6pRrG7neDyFmdoKSV5ro/3EeVy26r/X7+lX /4L0TEmo78juYQCo1qUIJQLoFA0LlxdKS5qXUCDdoq1zxJK/XiZoJXBrpzRKJDe0 wTQAs8m62p4jEofi3DvcrcHtjMIIXxMvM4P9WOPV7dh7XDokbHdH9rJlsISgyZjf UOXjzXG4TV5H0ypFlBqcDky4Cjquu0t96AElbvQ7cuGrRK7rwNs= =u5FH -----END PGP SIGNATURE-----
commit | 0c30ed5372b14504fc4ee6646ca653540aa5bc4e | [log] [tgz] |
---|---|---|
author | Jess Frazelle <acidburn@microsoft.com> | Sat Jul 14 13:50:49 2018 -0400 |
committer | Jess Frazelle <acidburn@microsoft.com> | Sat Jul 14 13:50:49 2018 -0400 |
tree | df7b13626ce635739769fc0cfd95911bde633567 | |
parent | 2fda11ce184587e69e7957733484a95fcc1a8841 [diff] |
Bump version to v0.1.3 Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
Bot to automatically create Google Calendar events from TripIt flight data.
I have OCD about the layout of my calendar events so that is why I made my own bot.
$ go get github.com/jessfraz/tripitcalb0t
$ docker run --restart always -d \ -v /etc/localtime:/etc/localtime:ro \ -v /path/to/.tripitcalb0t/google.json:/.tripitcalb0t/google.json:ro \ --name tripitcalb0t \ -e "TRIPIT_USERNAME=your_username" \ -e "TRIPIT_TOKEN=59f6asdfasdfasdf0" \ -e "GOOGLE_CALENDAR_ID=your_google_calendar_id" \ r.j3ss.co/tripitcalb0t --interval 1m
$ tripitcalb0t -h _ _ _ _ _ _ ___ _ | |_ _ __(_)_ __ (_) |_ ___ __ _| | |__ / _ \| |_ | __| '__| | '_ \| | __/ __/ _` | | '_ \| | | | __| | |_| | | | |_) | | || (_| (_| | | |_) | |_| | |_ \__|_| |_| .__/|_|\__\___\__,_|_|_.__/ \___/ \__| |_| Bot to automatically create Google Calendar events from TripIt flight data. Version: v0.1.3 Build: cb952a5 -calendar string Calendar name to add events to (or env var GOOGLE_CALENDAR_ID) -d run in debug mode -google-keyfile string Path to Google Calendar keyfile (default "~/.tripitcalb0t/google.json") -interval duration update interval (ex. 5ms, 10s, 1m, 3h) (default 1m0s) -once run once and exit, do not run as a daemon -tripit-token string TripIt Token for authentication (or env var TRIPIT_TOKEN) -tripit-username string TripIt Username for authentication (or env var TRIPIT_USERNAME) -v print version and exit (shorthand) -version print version and exit
Enable the API: To get started using Calendar API v3, you need to first create a project in the Google API Console, enable the API, and create credentials.
Follow the instructions for step enabling the API here.
Add the new service account to the Google Calendar account with Read & Write permission.
The newly created service account will have an email address that looks similar to: quickstart@PROJECT-ID.iam.gserviceaccount.com
.
Use this email address to add a user to the Google Calendar view you want to access via the API.
To use this, you must enable "Web Authentication" on your account. You can follow the steps to do that here.