You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
403 lines
6.2 KiB
403 lines
6.2 KiB
---
|
|
|
|
CollapseMetaTable: true
|
|
cssclass: cards
|
|
Alias: ["Dashboard"]
|
|
Date: 2021-11-20
|
|
DocType: "Note"
|
|
ChildrenType: ["Task", "Note", "Bookmark"]
|
|
Hierarchy: "Root"
|
|
TimeStamp:
|
|
location: [47.3639129,8.55627491017841]
|
|
|
|
---
|
|
|
|
Parent:: [[@Life Admin|Life Admin]]
|
|
|
|
---
|
|
|
|
```dataviewjs
|
|
dv.el("center", '[[' + DateTime.now().toISODate() + '|Daily Note]]')
|
|
```
|
|
|
|
---
|
|
|
|
 
|
|
|
|
```button
|
|
name Create Note
|
|
type append template
|
|
action NewFile
|
|
id CreateNote
|
|
```
|
|
^button-DailytrackerNewTask
|
|
|
|
```button
|
|
name Save
|
|
type command
|
|
action Save current file
|
|
id Save
|
|
```
|
|
^button-DailytrackerSave
|
|
|
|
 
|
|
|
|
<iframe src="https://indify.co/widgets/live/weather/CMOfmBCtA1f1TmJRfduo" width="100%"></iframe>
|
|
|
|
 
|
|
|
|
```dataviewjs
|
|
const today = DateTime.now()
|
|
const endOfYear = {
|
|
year: today.year,
|
|
month: 12,
|
|
day: 31
|
|
}
|
|
|
|
const lifespan = { year: 85 }
|
|
const birthday = DateTime.fromObject({
|
|
year: 1984,
|
|
month: 7,
|
|
day: 7
|
|
});
|
|
const deathday = birthday.plus(lifespan)
|
|
|
|
function progress(type) {
|
|
let value;
|
|
|
|
switch(type) {
|
|
case "lifespan":
|
|
value = (today.year - birthday.year) / lifespan.year * 100;
|
|
break;
|
|
case "year":
|
|
value = today.month / 12 * 100
|
|
break;
|
|
case "month":
|
|
value = today.day / today.daysInMonth * 100
|
|
break;
|
|
case "day":
|
|
value = today.hour / 24 * 100
|
|
break;
|
|
}
|
|
return `<progress value="${parseInt(value)}" max="100"></progress> | ${parseInt(value)} %`
|
|
}
|
|
|
|
|
|
dv.span(`
|
|
| | | |
|
|
| --- | --- |:---:|
|
|
| **Life** | ${progress("lifespan")}
|
|
| | |
|
|
| **Year** | ${progress("year")}
|
|
| **Month**| ${progress("month")}
|
|
| **Day**| ${progress("day")}
|
|
`)
|
|
```
|
|
|
|
 
|
|
|
|
# Main dashboard
|
|
|
|
 
|
|
|
|
> [!summary]+
|
|
>This space is the main dashboard of my vault.
|
|
|
|
 
|
|
|
|
```toc
|
|
style: number
|
|
```
|
|
|
|
 
|
|
|
|
---
|
|
|
|
 
|
|
|
|
### 🎂 Next 5 birthdays
|
|
|
|
 
|
|
|
|
```tasks
|
|
not done
|
|
description includes :birthday:
|
|
limit to 5 tasks
|
|
sort by due
|
|
hide backlink
|
|
hide task count
|
|
```
|
|
|
|
 
|
|
|
|
---
|
|
|
|
 
|
|
|
|
### ✅ Task management
|
|
|
|
 
|
|
|
|
#### 🚨 Main Tasks
|
|
|
|
```dataview
|
|
Table without id "[[" + file.name + "|" + replace(file.name, "@", "") + "]]" as "Name", Tag as "Tag" , "Next review on " + NextReviewDate as "Date", choice(NextReviewDate > date(today), "☑️ On track", choice(NextReviewDate < date(today), "⚠️ Review overdue", "🚦 Review today")) as "Review" from #✅
|
|
Where DocType = "Task"
|
|
sort NextReviewDate asc
|
|
```
|
|
|
|
 
|
|
|
|
#### 🔁 Next 5 recurring to-dos
|
|
|
|
```tasks
|
|
not done
|
|
is recurring
|
|
path does not include Templates
|
|
limit to 5 tasks
|
|
hide backlinks
|
|
hide task count
|
|
```
|
|
|
|
 
|
|
|
|
#### 📝 Next 5 one-off to-dos
|
|
|
|
```tasks
|
|
not done
|
|
is not recurring
|
|
path does not include Templates
|
|
limit to 5 tasks
|
|
hide backlinks
|
|
hide task count
|
|
```
|
|
|
|
 
|
|
|
|
---
|
|
|
|
 
|
|
|
|
### 👓 Current reading
|
|
|
|
 
|
|
|
|
```dataview
|
|
Table without id "![](" + Source.Cover + ")" as "Cover", file.link as "Title", Source.Author as "Author", Source.Published as "Publication Date", Source.Language as "Language"
|
|
where Source.Type = "Book"
|
|
where ReadingState = "🟧"
|
|
```
|
|
|
|
 
|
|
|
|
---
|
|
|
|
 
|
|
|
|
### 🗞 6 Article ideas
|
|
|
|
 
|
|
|
|
```dataview
|
|
table without id file.link as "Title", Tag as "Themes" from "00.03 News"
|
|
where contains(Read, "🟥")
|
|
limit 6
|
|
```
|
|
|
|
 
|
|
|
|
---
|
|
|
|
 
|
|
|
|
### 🧑🍳 3 Recipe ideas
|
|
|
|
 
|
|
|
|
`dice: #🟥|link`
|
|
`dice: #🟥|link`
|
|
`dice: #🟥|link`
|
|
|
|
 
|
|
|
|
---
|
|
|
|
 
|
|
|
|
### 🩺 Health
|
|
|
|
 
|
|
|
|
#### ☢ Activities
|
|
|
|
``` tracker
|
|
searchType: frontmatter
|
|
searchTarget: Happiness, Steps, Ski, Riding, Racket, Football, Swim, IceSkating
|
|
folder: /00.01 Admin/Calendars
|
|
month:
|
|
mode: annotation
|
|
startWeekOn: 'Mon'
|
|
threshold: 75, 10000, 0, 0, 0, 0, 0, 0
|
|
color: green
|
|
headerMonthColor: orange
|
|
dimNotInMonth: false
|
|
annotation: ☀️,🏃,🎿,🏇,🎾,⚽,🏊🏼♂️, ⛸
|
|
showAnnotationOfAllTargets: true
|
|
```
|
|
|
|
 
|
|
|
|
#### 😴 Sleep Pattern
|
|
|
|
```tracker
|
|
searchType: frontmatter
|
|
searchTarget: Sleep
|
|
folder: /00.01 Admin/Calendars
|
|
startDate: 2022-01-22
|
|
line:
|
|
xAxisLabel: Date
|
|
yAxisLabel: Hours slept
|
|
lineColor: green
|
|
showPoint: false
|
|
xAxisColor: grey
|
|
xAxisLabelColor: grey
|
|
yAxisColor: grey
|
|
yAxisLabelColor: grey
|
|
```
|
|
|
|
 
|
|
|
|
#### 👣 Daily Steps
|
|
|
|
``` tracker
|
|
searchType: frontmatter
|
|
searchTarget: Steps
|
|
folder: /00.01 Admin/Calendars
|
|
startDate: 2022-01-22
|
|
endDate:
|
|
line:
|
|
xAxisLabel: Date
|
|
yAxisLabel: "# of steps"
|
|
lineColor: cyan
|
|
showPoint: false
|
|
xAxisColor: grey
|
|
xAxisLabelColor: grey
|
|
yAxisColor: grey
|
|
yAxisLabelColor: grey
|
|
```
|
|
|
|
 
|
|
|
|
#### ⚖️ Weight
|
|
|
|
``` tracker
|
|
searchType: frontmatter
|
|
searchTarget: Weight
|
|
folder: /00.01 Admin/Calendars
|
|
startDate: 2023-01-10
|
|
ignoreZeroValue: true
|
|
line:
|
|
xAxisLabel: Date
|
|
yAxisLabel: Weight
|
|
lineColor: red
|
|
showPoint: false
|
|
xAxisColor: grey
|
|
xAxisLabelColor: grey
|
|
xAxisTickInterval: 1w
|
|
yAxisColor: grey
|
|
yAxisLabelColor: grey
|
|
fillGap: true
|
|
```
|
|
|
|
 
|
|
|
|
#### 🚰 Water Consumption
|
|
|
|
``` tracker
|
|
searchType: frontmatter
|
|
searchTarget: Water
|
|
folder: /00.01 Admin/Calendars
|
|
startDate: 2022-01-22
|
|
endDate:
|
|
line:
|
|
xAxisLabel: Date
|
|
yAxisLabel: Amount of soft drink (liter)
|
|
lineColor: blue
|
|
showPoint: false
|
|
xAxisColor: grey
|
|
xAxisLabelColor: grey
|
|
yAxisColor: grey
|
|
yAxisLabelColor: grey
|
|
```
|
|
|
|
 
|
|
|
|
#### ☕ Coffee Consumption
|
|
|
|
``` tracker
|
|
searchType: frontmatter
|
|
searchTarget: Coffee
|
|
folder: /00.01 Admin/Calendars
|
|
startDate: 2022-01-22
|
|
endDate:
|
|
line:
|
|
xAxisLabel: Date
|
|
yAxisLabel: "# Espresso shots"
|
|
lineColor: brown
|
|
showPoint: false
|
|
xAxisColor: grey
|
|
xAxisLabelColor: grey
|
|
yAxisColor: grey
|
|
yAxisLabelColor: grey
|
|
```
|
|
|
|
 
|
|
|
|
#### 🤓 Mood
|
|
|
|
``` tracker
|
|
searchType: frontmatter
|
|
searchTarget: Stress, FrontHeadBar, EarHeadBar, BackHeadBar
|
|
datasetName: Discomfort, Front Headache, Ear Headache, Neck Headache
|
|
folder: /00.01 Admin/Calendars
|
|
startDate: 2022-01-22
|
|
endDate:
|
|
line:
|
|
xAxisLabel: Date
|
|
yAxisLabel: Intensity (base 100)
|
|
lineColor: red, yellow, orange, purple
|
|
showPoint: false
|
|
showLegend: true
|
|
legendPosition: bottom
|
|
xAxisColor: grey
|
|
xAxisLabelColor: grey
|
|
yAxisColor: grey
|
|
yAxisLabelColor: grey
|
|
```
|
|
|
|
 
|
|
|
|
---
|
|
|
|
 
|
|
|
|
### 🖋 Obsidian Activity
|
|
|
|
```ActivityHistory
|
|
/
|
|
```
|
|
|
|
```commits-recents
|
|
project=/
|
|
divWidth=50
|
|
divAlign=left
|
|
```
|
|
|
|
```commits-type
|
|
project=/
|
|
divWidth=50
|
|
divAlign=right
|
|
```
|
|
|
|
 
|
|
  |