Giter Club home page Giter Club logo

calwarrior's Introduction

calwarrior: make taskwarrior work with google calendar

I use both services extensively and would like one place to work. I prefer taskwarrior but get notifications, etc on my phone from google calendar. In summary, google calendar makes me more productive, but I hate it.

I found a project that didn't work but seeded the idea for this program.

Installation:

Install golang.

go get github.com/erikh/calwarrior

Usage:

$ calwarrior # launches with defaults
$ calwarrior --help # it has options and even help!

Google Calendar OAuth2 credentials

calwarrior needs oauth2 credentials to talk to google calendar.

You can accomplish this one of 3 ways :

  • The first two require you generate your own oauth2 client; this is strongly recommended.
    • Setting the environment variable CALWARRIOR_CREDENTIALS to the credentials.json file.
    • Putting the credentials.json in the calwarrior settings directory.
  • Finally, you can try it by using the default oauth2 credentials embedded in the source code.

Configuration Directory

calwarrior will attempt to launch your browser and stuff credentials in your home directory ($HOME/Library/calwarrior or $HOME/.config/calwarrior on Linux). Follow the instructions and paste in the code into the terminal to save the token. It works with the default task or taskw command on your $PATH.

Troubleshooting

If you start seeing error messages like this:

Error modifying calendar event: googleapi: Error 400: Invalid time zone definition for start time.

This is because your TZ or ZONEINFO environment variables are not set. man tzname for more information.

Bugs

It's not very well tested at all, and the code is pretty ugly. But it seems to work for me.

Author

Erik Hollensbe [email protected]

calwarrior's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.