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".
用于控制LaMetric TIME/SKY设备的CLI工具。发送通知、控制设置、管理计时器和流式传输内容。
bash
bash
lametric setup
或手动配置:
bash
配置文件位置:~/.config/lametric-cli/config.yaml
简单通知:
bash
lametric notify Hello World
带图标和声音:
bash
lametric notify Build passed --icon=checkmark --sound=positive1
关键警报(唤醒设备,播放闹铃):
bash
lametric notify ALERT: Server down --priority=critical --sound=alarm1
进度指示器:
bash
lametric notify Upload progress --goal=75/100 --icon=upload
迷你折线图:
bash
lametric notify CPU Usage --chart=10,25,50,30,45,80,60
从标准输入(用于管道操作):
bash
echo Build complete | lametric notify
git log -1 --format=%s | lametric notify --icon=github
等待用户关闭:
bash
lametric notify Confirm deployment? --wait
获取设备信息:
bash
lametric device
显示亮度:
bash
lametric display get
lametric display brightness 50 # 设置为50%
lametric display mode auto # 自动亮度
音频音量:
bash
lametric audio get
lametric audio volume 30 # 设置为30%
蓝牙:
bash
lametric bluetooth get
lametric bluetooth on
lametric bluetooth off
计时器:
bash
lametric app timer set 5m # 设置5分钟计时器
lametric app timer set 1h30m # 设置1小时30分钟
lametric app timer start
lametric app timer pause
lametric app timer reset
秒表:
bash
lametric app stopwatch start
lametric app stopwatch pause
lametric app stopwatch reset
收音机:
bash
lametric app radio play
lametric app radio stop
lametric app radio next
lametric app radio prev
应用导航:
bash
lametric app list # 列出已安装应用
lametric app next # 切换到下一个应用
lametric app prev # 切换到上一个应用
将图像或视频流式传输到显示屏:
bash
lametric stream start # 开始流式传输会话
lametric stream image logo.png # 发送静态图像
lametric stream gif animation.gif # 发送动画GIF
lametric stream stop # 结束流式传输
从ffmpeg管道传输:
bash
ffmpeg -i video.mp4 -vf scale=37:8 -f rawvideo -pix_fmt rgb24 - | lametric stream pipe
在网络中查找LaMetric设备:
bash
lametric discover
lametric discover --timeout=10s
bash
bash
bash
lametric app timer set 25m && lametric app timer start
bash
lametric notify Meeting in 5 min --icon=calendar --sound=alarm3 --priority=warning
| 别名 | 描述 |
|---|---|
| checkmark | 成功/完成 |
| error |
运行 lametric icons 查看完整列表。
| 声音 | 类别 |
|---|---|
| positive1-5 | 成功音效 |
| negative1-5 |
运行 lametric sounds 查看完整列表。
| 标志 | 描述 |
|---|---|
| -d, --device | 设备名称或IP |
| -j, --json |
bash
bash
bash
brew install dedene/tap/lametric
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 lametric-cli-1776420063 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 lametric-cli-1776420063 技能
skillhub install lametric-cli-1776420063
文件大小: 2.81 KB | 发布时间: 2026-4-17 18:24