v0.1.0
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAlrVomQACgkQGPNoXAAi
v/MPZA/+KIxTiY0jFx3LTpuKo69uOQcr07R5d1/fwhmSLUm4gCrSCm1UrfvrjbRe
S1GSAx6/z0tAsj442JXnWuWTjW76HdWNANwaDRRegbW9Pv1CZli+fE6Uyxv8a6KF
RXRrjWe4d0E9mim7QCTtnx1o2rSwLtxCkBqdsuGpo8/ecvV+8GnEtrWjPHrhKo/t
fdWg+bXq9CZPtQgWpPos0qNK4JKevF13ncNkGxEPCZhOffGs2xXIXaQlAeV48SfD
G3tQX8XWKrTRShi4S6A+Uwg9YmfZUhG1uxidWyHUTwY8FZ4jdNjUS0SndAxaA1g3
DBvvO4V+KInQ/Ajezjc9PTHqA3wfIvBN9by+JAOIAO08ME21X6AD2StDMxS/WzjA
tXip94g6swtb4qv6mtUDJQXJnKEgUowkAlB+gx+3HOnBA05Cl7stWedk5XPdGR7B
uSeg7FBgFdq1dwGsXIJZF7ydnLuLNHL6UMgQF1HHKuhDqWJbaDuok+Rmf0AlNuJ6
ImYPLNGmOeAH727k9DsafBcFpYKI8H/ogZn50FRv+LtzxO+HD4XsdZwuMAxWVfJs
j3SuSyrWFvqv5UWHlszh3P/rPPNxwrWEs5eJkls6nz5/Al30DgvOC7WODCqR55fe
xg4RGJQmZO7XjzC8Kq+lv/un8hojP7/+3qAaUcocjP+imRwsE4g=
=P3Lu
-----END PGP SIGNATURE-----
Bump version to v0.1.0

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
3 files changed
tree: 3327b6014e7d3c43f65a9e1e9a22c6948ab73d21
  1. .gitignore
  2. .travis.yml
  3. Dockerfile
  4. Gopkg.lock
  5. Gopkg.toml
  6. LICENSE
  7. Makefile
  8. README.md
  9. VERSION.txt
  10. main.go
  11. main_unix.go
  12. main_windows.go
  13. tripit/
  14. vendor/
  15. version/
README.md

tripitcalb0t

Travis CI

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.

Installation

Binaries

Via Go

$ go get github.com/jessfraz/tripitcalb0t

Running with Docker

$ docker run --restart always -d \
    -v /etc/localtime:/etc/localtime:ro \
    --name tripitcalb0t \
    -e "TRIPIT_USERNAME=your_username" \
    -e "TRIPIT_TOKEN=59f6asdfasdfasdf0" \
    r.j3ss.co/tripitcalb0t --interval 1m

Usage

 _        _       _ _            _ _      ___  _
| |_ _ __(_)_ __ (_) |_ ___ __ _| | |__  / _ \| |_
| __| '__| | '_ \| | __/ __/ _` | | '_ \| | | | __|
| |_| |  | | |_) | | || (_| (_| | | |_) | |_| | |_
 \__|_|  |_| .__/|_|\__\___\__,_|_|_.__/ \___/ \__|
           |_|

 Bot to automatically create Google Calendar events from TripIt flight data.
 Version: v0.1.0
 Build: 1f12d9f

  -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 "/home/jessie/.tripitcalb0t/google.json")
  -interval string
        update interval (ex. 5ms, 10s, 1m, 3h) (default "1m")
  -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

Setup

Google Calendar

  1. 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.

  2. 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.

TripIt

To use this, you must enable "Web Authentication" on your account. You can follow the steps to do that here.