From 352c345c7b7d8fad41f88156bd39c96596cd7725 Mon Sep 17 00:00:00 2001 From: akosbalasko Date: Thu, 11 Nov 2021 00:48:48 +0000 Subject: [PATCH] [create-pull-request] automated change --- lastPostId.txt | 3 +-- scripts/dryice_1635789149000.md | 48 +++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 scripts/dryice_1635789149000.md diff --git a/lastPostId.txt b/lastPostId.txt index 95e1980..266217d 100644 --- a/lastPostId.txt +++ b/lastPostId.txt @@ -1,2 +1 @@ -482 - +493 \ No newline at end of file diff --git a/scripts/dryice_1635789149000.md b/scripts/dryice_1635789149000.md new file mode 100644 index 0000000..8e8fffc --- /dev/null +++ b/scripts/dryice_1635789149000.md @@ -0,0 +1,48 @@ +--- +title: +author: dryice (https://forum.obsidian.md/u/dryice) +Publication Date: Mon Nov 01 2021 +Last modification Date: Mon Nov 08 2021 +--- + + +

Hi Rasmus,

+

I use Inline Dataview Fields instead of YAML because of this post here. But you may find my stuff useful.

+

+weekly review note +

+
+Time Information
+
- #📓/7️⃣
+- **Days**:: [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-[W]ww") %>]], [[<% tp.date.now("YYYY-MM-DD", +0, tp.file.title, "YYYY-[W]ww") %>]], [[<% tp.date.now("YYYY-MM-DD", +1, tp.file.title, "YYYY-[W]ww") %>]], [[<% tp.date.now("YYYY-MM-DD", +2, tp.file.title, "YYYY-[W]ww") %>]], [[<% tp.date.now("YYYY-MM-DD", +3, tp.file.title, "YYYY-[W]ww") %>]], [[<% tp.date.now("YYYY-MM-DD", +4, tp.file.title, "YYYY-[W]ww") %>]], [[<% tp.date.now("YYYY-MM-DD", +5, tp.file.title, "YYYY-[W]ww") %>]]
+	%% Create note on Sunday - days of the week include from Sunday last week to Saturday%%
+- **Month**:: [[<%tp.date.now("YYYY-MM", +0, tp.file.title, "YYYY-[W]ww")%>]]  
+- **Quarter**:: [[<% tp.date.now("YYYY-[Q]Q", +0, tp.file.title, "YYYY-[W]ww") %>]]
+- **Year**:: [[<% tp.date.now("YYYY", +0, tp.file.title, "YYYY-[W]ww") %>]]
+
+

+Example Sleep Tracker

+
##### Sleep and Energy Tracking
+- *Weekly Sleep Average calculation*: `=round(sum(this.days.sleep-duration)/7, 4)` 
+- *Round the decimal*: `=round(0.<%tp.file.cursor(1)%>*60)` minutes
+- **Sleep Duration**:: 
+```dataview
+table WITHOUT ID
+	file.link as Date____, 
+	join(list(sleep-hour, sleep-minute), ":") as "Sleep Time",
+	join(list(awake-hour, awake-minute), ":") as "Awake Time", 
+	sleep-duration as "Sleep Duration",
+	choice(physical-activity, "✅", "❌") as "Physical Activity"
+FROM #📓
+WHERE week = this.file.link
+sort file.name asc
+```
+
+

+Example Habit Tracking - using inline Dataview

+
- **Morning Gratitude**:: 
+	- *This Week's Morning Gratitude*: `=this.days.morning-gratitude`
+- **Desired Outcome**:: 
+	- *This Week's Desired Outcome*: `=this.days.desired-outcome`
+```
+ \ No newline at end of file