Habitica Wiki
Habitica Wiki

Description

A bash script to facilitate usage of the Habitica API for various actions such as triggering the cron, or auto-accepting a quest.

Installation

Clone the repo from GitHub to the location you wish to run the script from. Requires curl, bash and jq.

Usage

./habitica_utilities.sh <action> currently supports quest and cron.

You will also need to set two environment variables:

  • HABIT_ID=<user> id
  • HABIT_KEY=<api key>

Example: Export and check for new quest to join

export HABIT_ID=xxx-xxx-xxx-xxx
export HABIT_KEY=yyy-xx-xx-yyy
./habitica_utilities.sh quest