- name
- lametric-cli
- description
- Control LaMetric TIME/SKY smart displays from the command line. Use when sending notifications, controlling device brightness/volume, managing timers, or displaying data on LaMetric devices. Triggers on "LaMetric", "smart display", "notification to device", "set timer", "send alert to clock".
- license
- MIT
- homepage
- https://github.com/dedene/lametric-cli
- metadata
- author
- dedene
- version
- 1.1.0
- openclaw
- primaryEnv
- LAMETRIC_API_KEY
- requires
- bins
- install
- tap
- dedene/tap
- formula
- lametric
- bins
- [lametric]
- package
- github.com/dedene/lametric-cli/cmd/lametric
- bins
- [lametric]
LaMetric CLI
CLI tool for controlling LaMetric TIME/SKY devices. Send notifications, control settings, manage timers, and stream content.
Prerequisites
Installation
# Homebrew (macOS/Linux)
brew install dedene/tap/lametric
# Or Go install
go install github.com/dedene/lametric-cli/cmd/lametric@latestSetup
- Get API key from LaMetric mobile app: Device Settings > API Key
- Run setup wizard:
lametric setupOr configure manually:
# Store API key securely
lametric auth set-key --device=living-room
# Or use environment variables
export LAMETRIC_API_KEY=your-api-key
export LAMETRIC_DEVICE=192.168.1.100Config file location: ~/.config/lametric-cli/config.yaml
Core Workflows
Sending Notifications
Simple notification:
lametric notify "Hello World"With icon and sound:
lametric notify "Build passed" --icon=checkmark --sound=positive1Critical alert (wakes device, plays alarm):
lametric notify "ALERT: Server down" --priority=critical --sound=alarm1Progress indicator:
lametric notify "Upload progress" --goal=75/100 --icon=uploadSparkline chart:
lametric notify "CPU Usage" --chart=10,25,50,30,45,80,60From stdin (for pipelines):
echo "Build complete" | lametric notify
git log -1 --format="%s" | lametric notify --icon=githubWait for user dismissal:
lametric notify "Confirm deployment?" --waitDevice Control
Get device info:
lametric deviceDisplay brightness:
lametric display get
lametric display brightness 50 # Set to 50%
lametric display mode auto # Auto brightnessAudio volume:
lametric audio get
lametric audio volume 30 # Set to 30%Bluetooth:
lametric bluetooth get
lametric bluetooth on
lametric bluetooth offBuilt-in Apps
Timer:
lametric app timer set 5m # Set 5 minute timer
lametric app timer set 1h30m # Set 1 hour 30 minutes
lametric app timer start
lametric app timer pause
lametric app timer resetStopwatch:
lametric app stopwatch start
lametric app stopwatch pause
lametric app stopwatch resetRadio:
lametric app radio play
lametric app radio stop
lametric app radio next
lametric app radio prevApp navigation:
lametric app list # List installed apps
lametric app next # Switch to next app
lametric app prev # Switch to previous appStreaming
Stream images or video to the display:
lametric stream start # Start streaming session
lametric stream image logo.png # Send static image
lametric stream gif animation.gif # Send animated GIF
lametric stream stop # End streamingPipe from ffmpeg:
ffmpeg -i video.mp4 -vf "scale=37:8" -f rawvideo -pix_fmt rgb24 - | lametric stream pipeDiscovery
Find LaMetric devices on your network:
lametric discover
lametric discover --timeout=10sCommon Patterns
Build/CI Notifications
# Success
lametric notify "Build #123 passed" --icon=checkmark --sound=positive1
# Failure
lametric notify "Build #123 failed" --icon=error --sound=negative1 --priority=warning
# Deployment
lametric notify "Deployed to prod" --icon=rocket --sound=positive2System Monitoring
# CPU alert
lametric notify "High CPU: 95%" --priority=warning --icon=warning
# Disk space
lametric notify "Disk: 85% full" --goal=85/100 --icon=harddrivePomodoro Timer
lametric app timer set 25m && lametric app timer startMeeting Reminder
lametric notify "Meeting in 5 min" --icon=calendar --sound=alarm3 --priority=warningQuick Reference
Popular Icons
| Alias | Description |
|---|---|
checkmark | Success/complete |
error | Error/failure |
warning | Warning/caution |
info | Information |
rocket | Deploy/launch |
github | GitHub |
slack | Slack |
mail | |
calendar | Calendar/meeting |
download | Download |
upload | Upload |
Run lametric icons for full list.
Popular Sounds
| Sound | Category |
|---|---|
positive1-5 | Success sounds |
negative1-5 | Error sounds |
alarm1-13 | Alarm sounds |
notification1-4 | Gentle notifications |
Run lametric sounds for full list.
Global Flags
| Flag | Description |
|---|---|
-d, --device | Device name or IP |
-j, --json | Output JSON |
--plain | Output TSV (for scripting) |
-v, --verbose | Verbose logging |
Troubleshooting
Connection Failed
- Verify device IP:
lametric discover - Check device is on same network
- Ensure API key is correct:
lametric auth get-key --device=NAME
Authentication Error
# Re-set API key
lametric auth set-key --device=living-room
# Or use environment variable
export LAMETRIC_API_KEY=your-api-keyDevice Not Found
# Discover devices
lametric discover --timeout=10s
# Add to config
lametric setupInstallation
brew install dedene/tap/lametric