Habit Tracker 21 how to implement?

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

Below are the instructions for Habit Tracker 21. Over 5000 people have downloaded it, so it must work. I think I should use Dataview to locate the tracker on my daily and monthly notes. How would I do that? See Zoreet’s instructions below.

Habit Tracker 21

Introducing “Habit Tracker 21,” an innovative plugin designed specifically for Obsidian. Have you ever wanted to develop new habits but struggled to keep yourself accountable? This plugin is your perfect solution.

“Habit Tracker 21” is built on the principle that it takes 21 days to form a new habit. With this tool, tracking your habits becomes a seamless process. It allows you to monitor your progress, providing a clear visualization of your commitment and consistency. It’s a great way to motivate yourself as you see the habits you’re forming over time.

How it works

  1. Create a folder for all your habits, e.g. Habits
  2. Create empty files inside that folder for each habit you want to track
  3. Enable the habit tracker UI by pasting the following code in your .md file:
```habittracker
{
	"path": "Habits/"
}

Make sure to specify the path you're using. You can point to one habit, or all habits that contain that path (including subfolders);

## Parameters

* **path** *[mandatory]*: a string containing a path to a folder or specific habit (aka .md file)
* **lastDisplayedDate** *[optional]*: the date that is displayed in the chart
  * format: `"YYYY-MM-DD"`
  * defaults to today
  * example settings
`{ "path": "Habits/", "lastDisplayedDate": "2023-12-27" }`
* **daysToShow** *[optional]*: how many dates to display in the chart
  * default: `21``{ "path": "Habits/", "daysToShow": "31" }`

## Example

![Example](https://raw.githubusercontent.com/zoreet/habit-tracker/HEAD/docs/assets/ui-demo.png)

### What I'm trying to do

<!-- Below this line, describe what you're trying to accomplish so the community can help you find the best solution. -->


### Things I have tried

Looked up Dataview on the web.

```dataview
LIST
FROM "Habits"

This looks like what I need something like this with the most recent date.

I also need to be able to enter the habit in the notes which exist insider the Habits folder.
Screenshot 2024-06-27 at 15.55.34
I think I need some internal link between my daily note template for templater and the file where the data is enter. That is a notes where a specific habit that I am tracking possibly registers the habit for the day.

I wish Zoreet would provide some use cases for his application. It looks very good, but I am forever a beginner with Obsidian and I cannot use the app with the instructions that is given. Also, there is no mention of instructions elsewhere.

If anyone could help Zoreet, I would appreciate it.

Thanks,

Ellen Madono

Hi Ellen,

I’ll try to help.

The way I use habit-tracker-21 is in combination with my daily notes. I see you have that too, awesome!

Then, let’s say I want to track two goals: exercise and meditation.

The way I do that is I create a folder called Habits ( you can use whatever name you want ) in the root of obsidian.

Then in my daily notes template for templater I paste this code

{
	"path": "Habits",
}

Now, once you create a new daily note you should have habit-tracker-21 rendered for with the 2 habits ( exercise and meditate ) and 21 days listed, with today being the last displayed date.

There are more configuration options you can give it, but this is the minimum to get you started.

Additionally, if you already have a daily note for today and want to add habit-tracker-21 to it just paste in the save code but in this note and it should work.


If you still need help email me @ [email protected] and I’ll help you out further

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.