mirror of
https://github.com/hanzoskill/milkee.git
synced 2026-10-30 21:03:08 +00:00
3.6 KiB
3.6 KiB
MILKEE Skill - Installation Guide
Prerequisites
- Python 3.8+
- MILKEE account with API access
- Bot installed
Step 1: Get Your Credentials
API Token
- Log in to MILKEE (https://app.milkee.ch)
- Go to Settings → API Settings
- Copy your User ID and API Key
- Combine as:
USER_ID|API_KEY
Example: 28014|MqF8I04nbuFd4aT4A5Y6hBqaDDd9T2sjVT5Xu2ZAc799c9d2
Company ID
- In MILKEE, check the URL:
https://app.milkee.ch/companies/XXXX/ - XXXX is your Company ID
Example: 4086
Step 2: Choose Installation Method
Method A: Upload to Skill Hub (Recommended)
- Extract
milkee.skillfrom this package - Go to your Skill Hub (https://hub.bot.com or your instance)
- Click "Upload New Skill"
- Select
milkee.skill - Fill in metadata:
- Name:
milkee - Category:
Accounting / Time Tracking - Tags:
time-tracking, accounting, projects, swiss - Description: See README.md
- Name:
- Review and publish
- Install via Bot:
bot skill install milkee
Method B: Manual Installation
- Extract the ZIP package
- Unzip
milkee.skillto~/.bot/skills/milkee/ - Configure Bot (see Step 3 below)
Step 3: Configure Bot
Edit ~/.bot/bot.json and add:
{
"skills": {
"milkee": {
"env": {
"MILKEE_API_TOKEN": "USER_ID|API_KEY",
"MILKEE_COMPANY_ID": "YOUR_COMPANY_ID"
}
}
}
}
Replace:
USER_ID|API_KEYwith your actual credentialsYOUR_COMPANY_IDwith your actual company ID
Example:
{
"skills": {
"milkee": {
"env": {
"MILKEE_API_TOKEN": "28014|MqF8I04nbuFd4aT4A5Y6hBqaDDd9T2sjVT5Xu2ZAc799c9d2",
"MILKEE_COMPANY_ID": "4086"
}
}
}
}
Step 4: Test Installation
Run this command to verify everything works:
export MILKEE_API_TOKEN="USER_ID|API_KEY"
export MILKEE_COMPANY_ID="YOUR_COMPANY_ID"
python3 ~/.bot/skills/milkee/scripts/milkee.py list_projects
Expected output:
📋 X Projects:
• Project Name (ID: 123)
• Another Project (ID: 456)
Step 5: Start Using
Basic Commands
Start a timer:
python3 scripts/milkee.py start_timer "ProjectName" "What you're working on"
Stop the timer:
python3 scripts/milkee.py stop_timer
View today's times:
python3 scripts/milkee.py list_times_today
List all projects:
python3 scripts/milkee.py list_projects
Troubleshooting
"HTTP 401: Unauthorized"
- Check API token format:
USER_ID|API_KEY(with pipe) - Verify credentials in MILKEE Settings
- Token might be expired, regenerate in MILKEE
"HTTP 403: Forbidden"
- Wrong Company ID
- Check URL:
https://app.milkee.ch/companies/XXXX/ - Use correct XXXX value
"HTTP 404: Not Found"
- Project/customer ID doesn't exist
- Try listing:
python3 scripts/milkee.py list_projects
"Command not found: milkee.py"
- Make sure path is correct
- Try full path:
python3 ~/.bot/skills/milkee/scripts/milkee.py
Security Notes
⚠️ Important:
- Never commit API tokens to git
- Use
.gitignoreto protect config files - Rotate keys regularly
- Use environment variables, not hardcoded credentials
Next Steps
- ✅ Installation complete
- 📖 Read SKILL.md (inside milkee.skill) for full documentation
- ⏱️ Start tracking time!
- 📚 Check references/ folder for API details
Support
For issues:
- Check this guide
- Review SKILL.md in milkee.skill
- Check official MILKEE docs: https://apidocs.milkee.ch/api
Happy time tracking! ⏱️🦭