qmxme-pi-lametric-notify

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

pi-lametric-notify

A pi package that sends a LaMetric Time notification when pi finishes a task and is waiting for input.

What it shows

  • success: icon a8813 + done
  • error: icon a423 + error
  • next frame: hostname
  • next frame: current tmux pane via #S:#I.#P, if available

Config

Set these environment variables before starting pi:

export LAMETRIC_TIME_HOST=192.168.1.100
export LAMETRIC_TIME_API_KEY=your-api-key

# Optional: enable sound (knock-knock for success, negative1 for error)
export LAMETRIC_TIME_SOUND=1

LAMETRIC_TIME_HOST can be either:

  • a host or IP like 192.168.1.100
  • a full base URL like http://192.168.1.100:8080

If either variable is missing, the extension does nothing. If LaMetric is unreachable, the IP is wrong, or the request fails, the extension stays silent, times out quickly, and does not block or crash pi.

Install

From this repo:

pi install .

Once published:

pi install npm:@qmxme/pi-lametric-notify

Or load it directly for a single run:

pi -e .

Notes

  • notifications are sent to the local LaMetric notifications API
  • the message repeats for 3 cycles
  • tmux info is only shown when pi is running inside tmux
  • the extension sends notifications on agent_end