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.

387 lines
5.7 KiB

---
2 years ago
CollapseMetaTable: true
3 years ago
cssclass: cards
Alias: ["Dashboard"]
Date: 2021-11-20
DocType: "Note"
2 years ago
ChildrenType: ["Task", "Note", "Bookmark"]
Hierarchy: "Root"
TimeStamp:
3 years ago
location: [47.3639129,8.55627491017841]
---
3 years ago
Parent:: [[@Life Admin|Life Admin]]
---
3 years ago
```dataviewjs
dv.el("center", '[[' + luxon.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
 
3 years ago
```jsx:
<center><Clock /></center>
```
&emsp;
2 years ago
<iframe src="https://indify.co/widgets/live/weather/CMOfmBCtA1f1TmJRfduo" width="100%"></iframe>
&emsp;
2 years ago
```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")}
`)
```
&emsp;
# Main dashboard
&emsp;
> [!summary]+
> This space is the main dashboard of my vault.
&emsp;
```toc
style: number
```
&emsp;
---
&emsp;
2 years ago
### 🎂 Next 5 birthdays
&emsp;
```tasks
not done
description includes :birthday:
limit to 5 tasks
sort by due
hide backlink
hide task count
```
&emsp;
---
&emsp;
2 years ago
### ✅ Task management
&emsp;
2 years ago
#### 🚨 Main Tasks
```dataviewjs
const {taskFunc} = customJS
taskFunc.getAllTasks({app, dv, luxon, that:this, theme: "LifeHacks"})
```
&emsp;
2 years ago
#### 🔁 Next 5 recurring to-dos
```tasks
not done
is recurring
2 years ago
path does not include Templates
limit to 5 tasks
hide backlinks
hide task count
```
&emsp;
2 years ago
#### 📝 Next 5 one-off to-dos
```tasks
not done
is not recurring
3 years ago
path does not include Templates
limit to 5 tasks
hide backlinks
hide task count
```
&emsp;
---
&emsp;
2 years ago
### 👓 Current reading
&emsp;
```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 = "In progress"
```
&emsp;
---
&emsp;
2 years ago
### 🗞 6 Article ideas
3 years ago
&emsp;
```dataview
table without id file.link as "Title", Tag as "Themes" from "00.03 News"
where contains(Read, "No")
3 years ago
limit 6
3 years ago
```
&emsp;
---
&emsp;
2 years ago
### 🧑‍🍳 3 Recipe ideas
3 years ago
&emsp;
`dice: #NotYetTested|link`
`dice: #NotYetTested|link`
`dice: #NotYetTested|link`
3 years ago
&emsp;
---
&emsp;
2 years ago
### 🩺 Health
3 years ago
&emsp;
2 years ago
#### ☢ Activities
3 years ago
``` tracker
searchType: frontmatter
2 years ago
searchTarget: Happiness, Steps, Ski, Riding, Racket, Football, Swim
folder: /00.01 Admin/Calendars
3 years ago
month:
mode: annotation
startWeekOn: 'Mon'
2 years ago
threshold: 75, 10000, 0, 0, 0, 0, 0
3 years ago
color: green
headerMonthColor: orange
dimNotInMonth: false
2 years ago
annotation: ☀️,🏃,🎿,🏇,🎾,⚽,🏊🏼‍♂️
3 years ago
showAnnotationOfAllTargets: true
```
&emsp;
2 years ago
#### 😴 Sleep Pattern
3 years ago
``` tracker
searchType: frontmatter
searchTarget: Sleep
folder: /00.01 Admin/Calendars
3 years ago
startDate: 2022-01-22
endDate:
line:
xAxisLabel: Date
yAxisLabel: Hours slept
lineColor: green
showPoint: false
xAxisColor: grey
xAxisLabelColor: grey
yAxisColor: grey
yAxisLabelColor: grey
```
&emsp;
2 years ago
#### 👣 Daily Steps
3 years ago
``` tracker
searchType: frontmatter
searchTarget: Steps
folder: /00.01 Admin/Calendars
3 years ago
startDate: 2022-01-22
endDate:
line:
xAxisLabel: Date
yAxisLabel: "# of steps"
lineColor: cyan
showPoint: false
xAxisColor: grey
xAxisLabelColor: grey
yAxisColor: grey
yAxisLabelColor: grey
```
&emsp;
2 years ago
#### 🚰 Water Consumption
3 years ago
``` tracker
searchType: frontmatter
searchTarget: Water
folder: /00.01 Admin/Calendars
3 years ago
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
```
&emsp;
2 years ago
#### ☕ Coffee Consumption
3 years ago
``` tracker
searchType: frontmatter
searchTarget: Coffee
folder: /00.01 Admin/Calendars
3 years ago
startDate: 2022-01-22
endDate:
line:
xAxisLabel: Date
yAxisLabel: "# Espresso shots"
lineColor: brown
showPoint: false
xAxisColor: grey
xAxisLabelColor: grey
yAxisColor: grey
yAxisLabelColor: grey
```
&emsp;
2 years ago
#### 🤓 Mood
3 years ago
``` tracker
searchType: frontmatter
searchTarget: Stress, FrontHeadBar, EarHeadBar, BackHeadBar
datasetName: Discomfort, Front Headache, Ear Headache, Neck Headache
folder: /00.01 Admin/Calendars
3 years ago
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
```
&emsp;
---
&emsp;
2 years ago
### 🖋 Obsidian Activity
```ActivityHistory
/
```
```commits-recents
project=/
divWidth=50
divAlign=left
```
```commits-type
project=/
divWidth=50
divAlign=right
```
&emsp;
&emsp;