Add biometrics logging command#33
Merged
Merged
Conversation
milldr
requested changes
May 22, 2026
milldr
left a comment
Owner
There was a problem hiding this comment.
looks good! but please add all new commands to the README
This commit adds a new `biometrics` command to the CLI that allows logging weight, body fat percentage, and blood pressure to Cronometer. Features: - Weight logging with unit support (kg or lbs) - Body fat percentage logging - Blood pressure logging (systolic/diastolic) - Date support (YYYY-MM-DD, yesterday, -Nd) - Integration with existing automation framework Implementation: - Created src/commands/biometrics.ts - CLI command handler - Created src/kernel/biometrics.ts - Playwright automation code generator - Updated src/automation/types.ts - Added BiometricEntry interface - Updated src/automation/runner.ts - Added logBiometric method - Updated src/index.ts - Registered biometrics command Technical details: - Navigates to dashboard (where BIOMETRIC button is located) - Uses getByRole selectors for reliable element targeting - Implements Tab key press after input to trigger form validation - Handles different input patterns for each biometric type All three biometric types have been tested successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Documents the new biometrics command for logging weight, body fat, and blood pressure, as well as the recipes command for listing custom recipes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
305ddb4 to
373b3fd
Compare
Contributor
Author
|
should be good now :) |
milldr
approved these changes
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
biometricscommand to the CLI that allows logging weight, body fat percentage, and blood pressure to Cronometer.Features
Usage Examples
Implementation
src/commands/biometrics.ts- CLI command handler with validationsrc/kernel/biometrics.ts- Playwright automation code generatorsrc/automation/types.ts- Added BiometricEntry interfacesrc/automation/runner.ts- Added logBiometric methodsrc/index.ts- Registered biometrics command with all optionsTechnical Details
getByRoleselectors for reliable element targetingTesting
All three biometric types have been tested successfully:
🤖 Generated with Claude Code