AB Agents Meter Reader ๐
Read meter readings from photos โ electricity and water meters.
Features
- โก Read electricity meters (single or dual tariff)
- ๐ง Read water meters (hot and cold)
- ๐ Save readings history with dates
- ๐จ Generate message for landlord
- ๐ Track multiple apartments
Setup
Requirements
- MiniMax Token Plan API key (for vision)
- Linux/macOS
Quick Start
# First run - it will ask questions
./meter-reader.sh
# Later runs - just send photos
./meter-reader.sh photo.jpg
First Run Setup
The script will ask:
- Tenant name โ your name
- Apartment address โ full address
- Meter layout โ how to tell meters apart:
- "left=hot,right=cold" (default)
- Or custom description
Supported Meter Types
Electricity
- Single tariff
- Dual tariff (day/night) โ T1=day, T2=night
- Multi-tariff (cycle through screens)
Water
- Cold water (usually on left)
- Hot water (usually on right)
- Cubic meters (mยณ)
Usage
# Interactive mode (asks for photo)
./meter-reader.sh
# With photo
./meter-reader.sh /path/to/meter.jpg
# Generate message for landlord
./meter-reader.sh --message
How It Works
- Analyzes photo using MiniMax VL API
- Identifies meter type automatically
- Reads the numbers
- Saves to readings history
- Generates formatted message
History
Readings saved to: ~/.meter-readings/history.json
Format:
{
"apartments": {
"address": {
"tenant": "Name",
"layout": "left=hot,right=cold",
"readings": [
{"date": "2026-04-26", "electricity_day": 8495, "electricity_night": 3008, "water_cold": 423, "water_hot": 240}
]
}
}
}
Troubleshooting
| Issue | Solution |
|---|
| Wrong numbers | Check meter photo quality, ensure numbers are clear |
| Can't identify meter type | Name photo file: electricity.jpg, water.jpg |
| Vision error | Check MINIMAX_API_KEY is set |
AB-Agents ๐ฆ
Requirements
๐๏ธ AB Agents Vision (MiniMax) โ Required for image analysis. Install first:
clawhub install AB-Agents-Vision-MiniMax
AB-Agents ๐ฆ