Simplevolk9 downloadsPrompts for current body weight and saves it into today's daily note frontmatter.
Daily Weight Prompt is an Obsidian plugin that asks for your current body weight and saves it into today's daily note frontmatter.
It is designed for people who already use Daily Notes or Periodic Notes and want a fast, low-friction way to record weight as part of their daily workflow.
87, 87.4, or 87,4.null in the frontmatter property.This plugin depends on the Daily Notes integration used by:
If that integration is not available, the plugin cannot resolve or create today's daily note.
When the plugin runs, it checks whether today's daily note already exists.
null.Example frontmatter:
---
weight: 87.4
---
The plugin currently exposes two settings:
Weight property name: the frontmatter property to update. Default: weightAsk only once per day: prevents the automatic startup prompt from appearing again on the same dayAsk current weight now: opens the weight prompt manuallyVaultFolder/.obsidian/plugins/daily-weight-prompt/npm installnpm run devRun:
npm run build
This produces the release artifact main.js at the plugin root.
Copy these files into:
VaultFolder/.obsidian/plugins/daily-weight-prompt/
main.jsmanifest.jsonstyles.cssThen reload Obsidian and enable the plugin in Settings -> Community plugins.
src/
main.ts Plugin lifecycle, command registration, startup flow
settings.ts Settings schema and settings tab
daily-note.ts Daily note lookup and creation
ui/weight-prompt-modal.ts Prompt modal and input validation
When publishing a release:
manifest.json with the new plugin version.versions.json with the minimum supported Obsidian version for that release.v.manifest.json, main.js, and styles.css as release assets.This plugin works locally inside your vault.
npmesbuildUseful commands:
npm install
npm run dev
npm run build
npm run lint
npm test
npm run test:watch
The project includes unit tests for:
Run the full test suite once:
npm test
Run tests in watch mode during development:
npm run test:watch
0BSD