Repository navigation
Add add_biometric tool to record weight, body fat and other readings - #78
Open
paultristanwagner wants to merge 2 commits into
Open
paultristanwagner wants to merge 2 commits into
paultristanwagner wants to merge 2 commits into
Conversation
The app records biometrics with /api/v2/add_biometric (biometricId 0 for a new reading, metric and unit ids from get_metrics). Verified against the live API: the value is stored in the unit given, several readings of one metric can share a day, and a reading on an earlier day doesn't change the profile weight. Claude-Session: https://claude.ai/code/session_01MCJFDo71qoSqTRtcGfkpXJ
9 tasks
This branch has not been deployed
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.
Part of #73.
Adds an
add_biometrictool to record a weight, body fat or any othermetric
list_biometricsoffers. Reading them (get_biometrics) alreadyworked.
The app records them with
POST /api/v2/add_biometric:{"biometric": {"biometricId": 0, "type": "Biometric", "metricId": 1, "unitId": 1, "amount": 80.0, "day": …, "order": 1, …}, "auth": {…}, "config": {"call_version": 1}}Verified against the live API on 1900-01-02:
get_biometricsthen reports their average
weight
Readings appear in
get_diaryas"type": "Biometric"entries. Deletingthem needs the v3 delete with the entry keyed by
id(#74).
Changes:
add_biometric(metric_id, unit_id, amount, day), rejectingnegative or non-finite amounts.
add_biometrictool. Its description names the ids forweight and body fat.
https://claude.ai/code/session_01MCJFDo71qoSqTRtcGfkpXJ