Skip to content

Latest commit

 

History

History
172 lines (156 loc) · 4.47 KB

Weekly Note Template.md

File metadata and controls

172 lines (156 loc) · 4.47 KB
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 4 column 7
---
<% tp.file.include("[[Frontmatter Template]]") %>
 - "#calendar/weekly/<% tp.date.now('YYYY') %>"

banner: "![[<% tp.date.now('YYYY MMMM') %> Weekly Banner.jpg]]"
banner_icon: 🗓️
---

<% tp.date.now("YYYY-MM [Week] WW") %>

[[<% tp.date.now("YYYY [Week] WW", -7) %>|↶ Previous Week]] | [[<% tp.date.now("YYYY [Week] WW", 7) %>|Following Week ↷]]

[!METADATA]- Created:: [[<% tp.date.now('YYYY-MM-DD') %>]] <% tp.date.now('HH:mm') %> Updated:: <% tp.date.now('YYYY-MM-DD HH:mm') %> ID:: <% tp.date.now('YYYYMMDDHHmmss') %>

Table of Contents:

style: number

Memos

  • [[<% tp.date.weekday("YYYY-MM-DD", 0) %>|Monday]] ![[<% tp.date.weekday("YYYY-MM-DD", 0) %>#^memo-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 1) %>|Tuesday]] ![[<% tp.date.weekday("YYYY-MM-DD", 1) %>#^memo-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 2) %>|Wednesday]] ![[<% tp.date.weekday("YYYY-MM-DD", 2) %>#^memo-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 3) %>|Thursday]] ![[<% tp.date.weekday("YYYY-MM-DD", 3) %>#^memo-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 4) %>|Friday]] ![[<% tp.date.weekday("YYYY-MM-DD", 4) %>#^memo-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 5) %>|Saturday]] ![[<% tp.date.weekday("YYYY-MM-DD", 5) %>#^memo-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 6) %>|Sunday]] ![[<% tp.date.weekday("YYYY-MM-DD", 6) %>#^memo-link]]

Work Log

  • [[<% tp.date.weekday("YYYY-MM-DD", 0) %>|Monday]] ![[<% tp.date.weekday("YYYY-MM-DD", 0) %>#^work-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 1) %>|Tuesday]] ![[<% tp.date.weekday("YYYY-MM-DD", 1) %>#^work-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 2) %>|Wednesday]] ![[<% tp.date.weekday("YYYY-MM-DD", 2) %>#^work-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 3) %>|Thursday]] ![[<% tp.date.weekday("YYYY-MM-DD", 3) %>#^work-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 4) %>|Friday]] ![[<% tp.date.weekday("YYYY-MM-DD", 4) %>#^work-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 5) %>|Saturday]] ![[<% tp.date.weekday("YYYY-MM-DD", 5) %>#^work-link]]
  • [[<% tp.date.weekday("YYYY-MM-DD", 6) %>|Sunday]] ![[<% tp.date.weekday("YYYY-MM-DD", 6) %>#^work-link]]

Overview

Week Statistics

const daysPath = dv.current().file.folder;

const attributes = {
	'panic': {
		label: 'Panic',
		average: 10,
	},
	'money-spent': {
		label: 'Money Spent',
		backgroundColor: 'rgba(85, 174, 229, 0.2)',
		borderColor: 'rgba(85, 174, 229, 1)',
		average: 20,
	},
	'prayer': {
		label: 'Prayer',
		backgroundColor: 'rgba(255, 211, 101, 0.2)',
		borderColor: 'rgba(255, 211, 101, 1)',
		average: 5,
	},
	'steps': {
		label: 'Steps',
		backgroundColor: 'rgba(141, 82, 188, 0.2)',
		borderColor: 'rgba(141, 82, 188, 1)',
		average: 10000,
	},
	'hours-worked': {
		label : 'Hours Worked',
		backgroundColor: 'rgba(143, 208, 50, 0.2)',
		borderColor: 'rgba(143, 208, 50, 1)',
		average: 6
	},
};

const date = "<% tp.date.now('YYYY-MM-DD') %>";

customJS.DvCharts.renderWeeklyChart({
	dv,
	context: this,
	daysPath: '02 Personal/02.01 Periodic Notes/<% tp.date.now("YYYY") %>/Daily/<%tp.date.now("MM MMMM")%>',
	attributes,
	type: 'average',
	date
})
TABLE WITHOUT ID
	link(file.name) as "Day",
	feeling AS "💭",
	money-spent AS "💸",
	panic AS "🌪️",
	prayer AS "🕋",
	steps AS "👣",
	hours-worked AS "✏️"
FROM "02 Personal/02.01 Periodic Notes"
WHERE week = [[<% tp.date.now("YYYY [Week] WW") %>]]
SORT file.name ASC

Habits

TABLE WITHOUT ID
	file.link AS "Day",
	anki AS "📇",
	coffee AS "☕",
	exercise AS "🏋️",
	martial-arts AS "🥋",
	reading AS "👓",
	revision AS "🔁",
	shower AS "🚿",
	typing AS "⌨️"
FROM "02 Personal/02.01 Periodic Notes"
WHERE week = [[<% tp.date.now("YYYY [Week] WW") %>]]
SORT file.name ASC

Learnt Words

dv.table(
	["Learnt Word", "Meaning"],
	dv.pages('"02 Personal"')
	.filter(p => p["Learnt Word"] && p.week.path == "<% tp.date.now("YYYY [Week] WW") %>")
	.sort(p => dv.date(p.file.name), 'asc')
	.flatMap(p =>
		Array.from(
			{
				length: Math.floor(
					p["Learnt Word"].length / 2
				)
			},
			(_, i) => [
				`${'**'}${p["Learnt Word"][i * 2]}${'**'}`,
				p["Learnt Word"][(i * 2) +1]
			]
		)
	)
)

Weather

TABLE WITHOUT ID
	file.link AS Day,
	weather AS ☁️,
	(temperature + " °C") AS 🌡️,
	(feels-like + " °C") AS 💭,
	wind-direction AS 🧭,
	(wind-speed + " km h⁻¹") AS 🍃,
	observed AS 🕓
FROM "02 Personal/02.01 Periodic Notes"
WHERE week = [[<% tp.date.now("YYYY [Week] WW") %>]]
SORT file.name ASC