Huckleberry
by @aaronn
Track baby sleep, feeding, diapers, and growth via Huckleberry app API. Use for logging baby activities through natural language.
clawhub install openclaw-huckleberry-skillπ About This Skill
name: huckleberry description: Track baby sleep, feeding, diapers, and growth via Huckleberry app API. Use for logging baby activities through natural language. homepage: https://github.com/aaronn/openclaw-huckleberry-skill metadata: clawdbot: emoji: "πΆ" requires: bins: ["python3"] packages: ["huckleberry-api"] install: - id: pip-huckleberry kind: pip package: huckleberry-api label: Install huckleberry-api (pip)
Huckleberry Baby Tracker
Track baby activities (sleep, feeding, diapers, growth) via the Huckleberry app's Firebase backend.
Setup
1. Install the API:
# Install from GitHub (required for bottle feeding support until next PyPI release)
pip install git+https://github.com/Woyken/py-huckleberry-api.git
# or with uv:
uv pip install git+https://github.com/Woyken/py-huckleberry-api.git
2. Configure credentials (choose one): - Environment variables:
export HUCKLEBERRY_EMAIL="your-email@example.com"
export HUCKLEBERRY_PASSWORD="your-password"
export HUCKLEBERRY_TIMEZONE="America/Los_Angeles" # optional
- Config file at ~/.config/huckleberry/credentials.json:
{
"email": "your-email@example.com",
"password": "your-password",
"timezone": "America/Los_Angeles"
}
CLI Usage
The CLI is at ~/clawd/skills/huckleberry/scripts/hb.py
# List children
python3 ~/clawd/skills/huckleberry/scripts/hb.py childrenSleep tracking
python3 ~/clawd/skills/huckleberry/scripts/hb.py sleep-start
python3 ~/clawd/skills/huckleberry/scripts/hb.py sleep-pause
python3 ~/clawd/skills/huckleberry/scripts/hb.py sleep-resume
python3 ~/clawd/skills/huckleberry/scripts/hb.py sleep-complete
python3 ~/clawd/skills/huckleberry/scripts/hb.py sleep-cancelBreastfeeding
python3 ~/clawd/skills/huckleberry/scripts/hb.py feed-start --side left
python3 ~/clawd/skills/huckleberry/scripts/hb.py feed-switch
python3 ~/clawd/skills/huckleberry/scripts/hb.py feed-pause
python3 ~/clawd/skills/huckleberry/scripts/hb.py feed-resume --side right
python3 ~/clawd/skills/huckleberry/scripts/hb.py feed-complete
python3 ~/clawd/skills/huckleberry/scripts/hb.py feed-cancelBottle feeding
python3 ~/clawd/skills/huckleberry/scripts/hb.py bottle 120 --type "Formula" --units mlDiaper
python3 ~/clawd/skills/huckleberry/scripts/hb.py diaper both --pee-amount medium --poo-amount big --color yellow --consistency looseGrowth
python3 ~/clawd/skills/huckleberry/scripts/hb.py growth --weight 5.2 --height 55 --head 38 --units metric
python3 ~/clawd/skills/huckleberry/scripts/hb.py growth-getHistory
python3 ~/clawd/skills/huckleberry/scripts/hb.py history --date 2026-01-27
python3 ~/clawd/skills/huckleberry/scripts/hb.py history --days 7 --type sleep --type feed
python3 ~/clawd/skills/huckleberry/scripts/hb.py history --json
Complete Parameter Reference
Sleep Commands
| Command | Parameters | Description |
|---------|------------|-------------|
| sleep-start | β | Start a new sleep session (timer begins) |
| sleep-pause | β | Pause the current sleep session |
| sleep-resume | β | Resume a paused sleep session |
| sleep-complete | --notes | End sleep and save to history |
| sleep-cancel | β | Cancel without saving to history |
Breastfeeding Commands
| Command | Parameters | Description |
|---------|-----------|-------------|
| feed-start | --side {left,right} (default: left) | Start nursing session |
| feed-pause | β | Pause session, accumulate duration |
| feed-resume | --side {left,right} (optional) | Resume on specified or last side |
| feed-switch | β | Switch to other side (auto-resumes if paused) |
| feed-complete | --notes | End session and save to history |
| feed-cancel | β | Cancel without saving |
Bottle Feeding
bottle [options]
| Parameter | Values | Required | Default |
|-----------|--------|----------|---------|
| amount | Any number | Yes | β |
| --type / -t | "Breast Milk", "Formula", "Mixed" | No | "Formula" |
| --units / -u | ml, oz | No | ml |
| --notes / -n | Any text | No | β |
Diaper Change
diaper [options]
| Parameter | Values | Required | Default |
|-----------|--------|----------|---------|
| mode | pee, poo, both, dry | Yes | β |
| --pee-amount | little, medium, big | No | β |
| --poo-amount | little, medium, big | No | β |
| --color | yellow, brown, black, green, red, gray | No | β |
| --consistency | solid, loose, runny, mucousy, hard, pebbles, diarrhea | No | β |
| --rash | (flag) | No | false |
| --notes | Any text | No | β |
#### Color Guide
#### Consistency Guide
Growth Measurements
growth [options]
growth-get
| Parameter | Values | Required | Notes |
|-----------|--------|----------|-------|
| --weight / -w | Number | At least one | kg (metric) or lbs (imperial) |
| --height / -l | Number | measurement | cm (metric) or inches (imperial) |
| --head | Number | required | cm (metric) or inches (imperial) |
| --units / -u | metric, imperial | No | Default: metric |
| --notes / -n | Any text | No | β |
History / Calendar
history [options]
| Parameter | Values | Required | Default |
|-----------|--------|----------|---------|
| --date / -d | YYYY-MM-DD | No | Today |
| --days | Number | No | 1 |
| --type / -t | sleep, feed, diaper, health | No | All types |
Use --type multiple times to filter: --type sleep --type feed
Agent Guidelines: When to Ask for Details
AI Attribution on Notes
Always include AI attribution when logging entries:Creating new entries:
--notes "Created via AI"--notes "user's note | Created via AI"Editing existing entries:
--notes "Updated via AI" | Updated via AI to existing notesThis creates a paper trail for AI-assisted entries.
When to Ask for Clarification
When a user request is sparse, ask for clarification before logging. Here's when:Diaper Changes
If user says just "diaper change" or "poop":Example follow-up: > "Got it! Was it pee, poo, or both? Any details to note (color, consistency, amount)?"
Bottle Feeding
If user says "bottle" without amount:Example follow-up: > "How much was the bottle? And was it formula, breast milk, or mixed?"
Growth Measurements
If user says "log weight" without value:Sleep/Feeding Timers
These are typically clear commands, but clarify if ambiguous:Natural Language Examples
| User says | Action |
|-----------|--------|
| "Baby fell asleep" | sleep-start |
| "She woke up" | sleep-complete |
| "Cancel that sleep" | sleep-cancel |
| "Feeding on the left" | feed-start --side left |
| "Switch sides" | feed-switch |
| "Done nursing" | feed-complete |
| "4oz bottle of formula" | bottle 4 --type Formula --units oz |
| "120ml breast milk bottle" | bottle 120 --type "Breast Milk" --units ml |
| "Diaper change, pee and poo" | β Ask about amounts/color/consistency |
| "Just a wet diaper" | diaper pee |
| "Dry check" | diaper dry |
| "Weight is 5.5kg" | growth --weight 5.5 --units metric |
| "What did the baby do today?" | history --days 1 |
| "Sleep history for the week" | history --days 7 --type sleep |
Multi-Child Support
If the account has multiple children, use --child / -c:
python3 hb.py --child "Baby Name" sleep-start
Without --child, commands default to the first child in the account.
Troubleshooting
Authentication errors:
"No children found":
Timer already active:
Technical Notes
offset field (minutes behind UTC) for entries to display correctly. E.g., PST (UTC-8) = 480 minutes. The CLI automatically calculates this from the configured timezone. Without this field, entries appear at UTC time in the app.Credits
Built on py-huckleberry-api by Woyken β a reverse-engineered Python client for Huckleberry's Firebase backend.
*Created with AI - 2026-01-27* *Updated with AI - 2026-01-28*
Notes on All Entry Types
The --notes / -n parameter is available on all entry types:
sleep-complete --notes "Slept through the night!"feed-complete --notes "Good latch today"bottle --notes "Logged via AI"diaper --notes "Checked by AI"growth --notes "Measured at pediatrician"The upstream py-huckleberry-api only supports notes on diaper entries. This skill extends that to all types by updating the Firestore document directly after creation.
Not Supported by Upstream API
The following features exist in Huckleberry but aren't exposed in the py-huckleberry-api:
These would require modifying the upstream library to accept additional parameters.
βοΈ Configuration
1. Install the API:
# Install from GitHub (required for bottle feeding support until next PyPI release)
pip install git+https://github.com/Woyken/py-huckleberry-api.git
# or with uv:
uv pip install git+https://github.com/Woyken/py-huckleberry-api.git
2. Configure credentials (choose one): - Environment variables:
export HUCKLEBERRY_EMAIL="your-email@example.com"
export HUCKLEBERRY_PASSWORD="your-password"
export HUCKLEBERRY_TIMEZONE="America/Los_Angeles" # optional
- Config file at ~/.config/huckleberry/credentials.json:
{
"email": "your-email@example.com",
"password": "your-password",
"timezone": "America/Los_Angeles"
}
π Tips & Best Practices
Authentication errors:
"No children found":
Timer already active: