Giter VIP home page Giter VIP logo

habitist-streak's Introduction

habitist (streak) Code Climate

An automation to enable habit tracking in todoist.

It integrates Seinfield's "Don't Break the Chain" method into todoist. Once it's setup, you can forget about it and it works seamlessly.

This is a different flavor of the originally implemented habitist. While habitist is focused on daily habits, habitist (streak) can be applied to habits of any recurrence time-frames (daily, weekly, monthly, etc).

Usage

  1. You add habits you want to form as task on todoist with a recurring schedule (could be any recurrance pattern (every day, every week or every year, for example)

  2. Add [streak 0] to the task

  3. When you complete the task, the [streak 0] will become [streak 1]

  4. If you fail to complete the task and it becomes overdue, the script will schedule it to today and reset [streak X] to [streak 0].

Installation

  1. Fork and clone the repo

    git clone https://github.com/yourgithubusername/habitist-streak
    
  2. Create a heroku app.

    heroku create appname
    
  3. Set environment variable with your todost API key. You'll find API key under Settings > Integrations on todoist.com.

     heroku config:set TODOIST_APIKEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
    
  4. Push the app

    git push heroku master
    
  5. On IFTTT, create a new applet.

    • On THIS, select datetime > 'Every Day At' > 12 AM
    • On THAT, select Webhooks > Make a web request
    • Set URL to your heroku app URL with the directory/reset_streak:
    https://your-habitist-streak-app-name.herokuapp.com/reset_streak
    
    • Set METHOD to GET
    • Hit Create Action
  6. On IFTTT, create a new applet.

    • On THIS, select todoist > 'New completed task' > Any Project
    • On THAT, select Webhooks > Make a web request
    • Set URL to your heroku app URL
    • Set METHOD to GET
    • Set CONTENT TYPE to text/plain
    • Set BODY to the ingredient LinkToTask
    • Hit Create Action

Deploy

License

This project is licensed under the MIT License - see the LICENSE file for details

habitist-streak's People

Contributors

akeslo avatar amitness avatar briankaemingk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

habitist-streak's Issues

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.