← 返回
效率工具

Hydration Tracker

Track daily water intake, set hydration goals, and get drink reminders. Use when logging water, setting targets, or reviewing weekly intake trends.
追踪每日饮水量,设定补水目标,接收喝水提醒。用于记录饮水量、设定目标或回顾每周摄入趋势。
bytesagain1
效率工具 clawhub v2.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 609
下载
💾 4
安装
2
版本
#latest

概述

Hydration Tracker

A daily water intake tracker that helps you build and maintain healthy hydration habits. Log every drink, set personalized daily goals, check your progress throughout the day, and review weekly summaries — all from the command line with local-only data storage.

Commands

CommandDescription
----------------------
drink [ml]Log water intake in milliliters (default: 250ml). Shows running total and goal progress with celebration when goal is reached
cupQuick-log a cup of water (250ml) — shortcut for drink 250
bottleQuick-log a bottle of water (500ml) — shortcut for drink 500
todayDisplay today's total intake vs. daily goal, with remaining amount or goal-reached indicator
goal [ml]Set your daily hydration goal in milliliters (default: 2000ml)
checkCheck if you're on track — compares current intake against expected intake based on time of day
weekShow a 7-day hydration summary with daily breakdowns, weekly total, and daily average
history [n]Show hydration history for the last N days (default: 7, max: 30)
statsDisplay overall statistics — total days tracked, total intake, and average daily intake
remindGet a random hydration tip (e.g., "Drink a glass of water before each meal")
infoShow version info (v1.0.0)
helpShow all available commands with usage examples

Data Storage

  • Data directory: ~/.water_reminder/
  • Intake data: data.json — JSON object mapping dates (YYYY-MM-DD) to cumulative daily intake in ml
  • Goal config: goal.json — stores your current daily goal (default: 2000ml)
  • Max history: 30 days of lookback for the history command
  • All data is stored locally in JSON format; no external services, accounts, or network access required

Requirements

  • Bash 4+
  • Python 3 (standard library only — used for JSON read/write)
  • Standard POSIX utilities (date, seq)
  • No API keys or external dependencies

When to Use

  1. Building a daily hydration habit — log each drink throughout the day and let the progress tracker keep you motivated with goal-reached celebrations
  2. Checking mid-day progress — use check to see if your intake is on track relative to the time of day, so you can catch up before evening
  3. Reviewing weekly trends — run week to see a 7-day summary with emoji indicators showing which days you hit your goal
  4. Adjusting your hydration goal — use goal to increase or decrease your daily target based on activity level, weather, or health needs
  5. Getting gentle reminders — run remind for evidence-based hydration tips to keep healthy habits top of mind

Examples

# Log 300ml of water
hydration-tracker drink 300

# Quick-log a cup (250ml)
hydration-tracker cup

# Quick-log a bottle (500ml)
hydration-tracker bottle

# Check today's progress
hydration-tracker today

# Set a custom daily goal of 2500ml
hydration-tracker goal 2500

Example Output

$ hydration-tracker drink 300
Logged 300ml. Today's total: 1200ml / 2000ml.
Almost there! Keep going!

$ hydration-tracker today
Today's intake (2026-03-18): 1200ml / 2000ml
Remaining: 800ml

$ hydration-tracker week
--- Weekly Hydration Summary ---
2026-03-18: (1200ml / 2000ml) 💧
2026-03-17: (2100ml / 2000ml) 🎉
2026-03-16: (1800ml / 2000ml) 💧
...
Weekly total: 12300ml
Daily average: 1757ml (Goal: 2000ml)

$ hydration-tracker remind
💧 Hydration Tip: Drink a glass of water before each meal.

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-03-29 17:45 安全 安全
  • v1.0.6
    2026-03-19 06:00

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,873
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 147,780

Cad

bytesagain1
CAD参考工具
★ 0 📥 2,733