set_nutrient_target
Set a nutrient's daily target, upper limit, or tracking visibility in Cronometer to customize or override default values. Adjust only the values you specify while preserving other settings.
Instructions
Set a nutrient's daily target, its upper limit, or whether it is tracked.
Giving a minimum or maximum makes it a custom target, replacing the default Cronometer works out from the profile. Setting visible turns tracking of that nutrient on or off, which is how a micronutrient starts showing up in the diary at all.
Only what you pass changes: the rest of the nutrient's settings are read first and kept, so turning on visibility never disturbs an existing target.
Going back to Cronometer's own default is done in the app, under Settings then Targets. Report the current value from get_targets before overwriting one, so it can be put back by hand if wanted.
Args: nutrient: Nutrient name, e.g. "protein", "iodine", "choline", "biotin". Call list_nutrients for the accepted names. minimum: Daily target, in that nutrient's own unit. maximum: Upper limit, in that nutrient's own unit. visible: True to track the nutrient, False to hide it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maximum | No | ||
| minimum | No | ||
| visible | No | ||
| nutrient | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |