Generate WHO Child Growth Standards charts with percentile curves and child data overlay.
| Height | Weight | BMI |
|---|---|---|
| -------- | -------- | ----- |
![]() | ![]() | ![]() |
Install Python dependencies:
pip install pandas matplotlib scipy openpyxl
python3 ./scripts/growth_chart.py "Child Name" "DD.MM.YYYY" --sex F --type all
Arguments:
name: Child's name (used in chart title)birthdate: Date of birth in DD.MM.YYYY format--sex / -s: F (female) or M (male) — default: F--type / -t: height, weight, bmi, or all — default: all--data / -d: JSON file with measurement data--output / -o: Output directory for chartsCreate a JSON file with height/weight measurements (heights in meters, weights in kg):
{
"heights": [ ["2024-01-15T10:00:00", 1.05] ],
"weights": [ ["2024-01-15T10:00:00", 17.5] ]
}
python3 ./scripts/growth_chart.py "Emma" "06.07.2016" --sex F --data emma_data.json --type all
Combine with withings-family skill to fetch weight data automatically:
# Get Withings weight data (assuming withings-family skill is installed)
python3 ../withings-family/scripts/withings.py emma body > /tmp/withings.json
# Parse and generate charts
# (The growth chart script handles Withings JSON format if implemented, otherwise transform it)
By default, charts and cache are written to:
/who-growth-charts/ /who-growth-charts/cache/ Where is the folder that contains your skills/ directory (auto-detected from CWD or script location).
共 2 个版本