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-----
Bump version to v0.1.3

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2 files changed
tree: df7b13626ce635739769fc0cfd95911bde633567
  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 \
    -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

Usage

$ 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

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.