LoginSignup
1
2

More than 1 year has passed since last update.

ObsidianのTrackerプラグインで活動時間のグラフを表示する

Posted at

概要

デイリーノートのフロントマターに起床時間、就寝時間を記録すると、以下のようなグラフが表示されるようにした。
tracker.png

使用するプラグイン

  • Tracker

グラフ表示用ノート

```tracker
searchType: frontmatter
searchTarget: 就寝, 起床
startDate: 2023-01-01
endDate: 2023-01-31
folder: DailyNote
valueShift: -24:00, -24:00 
shiftOnlyValueLargerThan: 04:00, 04:00
datasetName: 就寝, 起床
line:
    title: "活動時間"
    yAxisLabel: "Time (24h)"
    lineColor: blue, red
    showPoint: true
    showLegend: true
    yMin: -24:00
summary:
	template: "平均活動時間:{{(average(dataset(0))-average(dataset(1)))/3600}}時間\n平均睡眠時間:{{24-(average(dataset(0))-average(dataset(1)))/3600}}時間"
```

記録ルール

  • デイリーノートのフロントマターに起床時間、就寝時間を記入する。
    • 午前4時までには寝ること!
---
起床: 06:00
就寝: 00:30
---

以上

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2