GithubHelp home page GithubHelp logo

saberzero1 / habitica-google-calendar Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 76 KB

Automatically sync Google Calendar entries as Habitica To Do items.

License: GNU General Public License v3.0

JavaScript 100.00%
habitica google-calendar synchronization sync google-apps-script habitica-api habitica-api-v3 habitica-todo

habitica-google-calendar's Introduction

Habitica API Google App Scripts License

Habitica Google Calendar Synchronization

Automatically sync Google Calendar entries as Habitica To Do items.

Features

  • Automatically sync Google Calendar items to Habitica dailies.
  • Automatically check off Google Calendar items when checked off in Habitica.
  • Turn description lines into checklist items.

Installation

  • Copy the contents of habitica-google-calendar-v2.gs into an empty Google App Scripts file.
  • Create a Google Calendar for the Dailies, or use an existing one.
  • Set the values of CALENDAR_NAME and CALENDAR_MAIL_ADDRESS to match your Google Calendar account.
  • Set the values of HABITICA_TOKEN and HABITICA_ID to match your Habitica account. (Click here to find your tokens)
  • Set the number of days, including today, to sync ahead.
  • Set a daily time-based trigger to execute syncToHabbitica(). I recommend every 5 minutes.
  • Insert some calendar entries in the Google Calendar.
  • The program will automatically sync to Habitica.

Verifying installation

To verify the installation, create a calendar entry with a description for today in the Google Calendar in the calendar selected earlier.

Manually execute the syncToHabbitica() function and wait for it to finish.

The entry should appear in Habitica as a daily item.

Note: The default timezone for Google Scripts is America/Los_Angeles (Pacific time). If your calendar is in a different timezone, this will not be taken into account. The easiest way to address this is to add an app manifest and change the timezone to one of the valid values that correspond to the timezone of your calendar.

habitica-google-calendar's People

Contributors

saberzero1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kenjibailly

habitica-google-calendar'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.