v0.1.2
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE1MTdYA1m9lqO/FEeGPNoXAAiv/MFAltKKosACgkQGPNoXAAi
v/MvwBAA1XSrxah8kw1mLnFe3QUdMWuYKBbc4kFS/2vSUrCoU+BHHSpqKLBWruYn
pvLbj5eXbVCf7UlieGTH6g9vFQeUzH+WAdZ6a4ZuHgj9IPYdERPWMZ3du4k8GZDE
erVeRYFleOCJVcF2CQWOp+WWvMIAVY4wsdgqJP5gSZ411Lnv1grMt8dxliWYj1nT
2/33R6DBH6kB3kFZ5gyWRNI3E6yB6bI4iSn0scEW3jXobS4M3yU/GhPjm7RUOjNQ
nPMQhuH5yJztGfcHPZOfAocCBymt4OxtiEkXbU7Qdt0onsxDp+t4ZN40ANS7jBPS
T/8iTGeiPmEd6IuAhHgKk6fE3wIM0WRGEAww5YzCqpuN0qgpCHLsYB+oxcfALZ2D
lEN62k3sGpjMljvof3PcbbefJoFYnpCTa4ChiTrM+XeKHLt+Bc13Dph+FtZyWwi3
ILCDVFpQePN8JPj18vNFfiDE4HY9YwMJ5H8ElnxVjwrt3yIZaThsNUox4pxmtNtd
VfcWkv1UJlvtpi4U+WPRkTfBDFIWEk25bkR1xMIe2oTVlRGgkMDASPlMdKzInPgv
pw4gfFsuG8awf6vyx02OxDpTIkxvqNTNojk6n1CSFoBzV84l96LS8LrZGQcoZLAF
NgCd1+JUqpoAEpOwWw7BsouCJ6PWIHPYZuXLlkJ2SZYBh7aT0PE=
=UUI3
-----END PGP SIGNATURE-----
Bump version to v0.1.2

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

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

 Bot to automatically create Google Calendar events from TripIt flight data.
 Version: v0.1.2
 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.