Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mesh-api

БесплатноБез исполняемых скриптовНе проверен

Interact with a Meshtastic LoRa mesh network through MESH-API — list nodes, read messages, send texts, and check connection status.

mr-tbotот mr-tbot★ 188 звёзд на GitHub

Об этом скилле

MESH-API Skill

You can interact with a Meshtastic LoRa mesh network through a running MESH-API instance. MESH-API exposes a REST API (default port 5000) that lets you list online nodes, read recent messages, send texts to specific nodes or broadcast to channels, and check device connectivity.

Configuration

  • MESH_API_URL — Base URL of the MESH-API instance (e.g. http://192.168.1.50:5000). Required.
  • MESH_API_KEY — Optional bearer token for future authentication support. If set, include it as Authorization: Bearer <token> on every request. If empty or unset, omit the header entirely — MESH-API has no auth by default.

Available Endpoints

GET /nodes

List all mesh nodes the MESH-API instance can see.

Request:

curl -s "$MESH_API_URL/nodes"

Response: JSON array of node objects.

[
  {"id": "!a1b2c3d4", "shortName": "TBot", "longName": "TBot Base Station"},
  {"id": "!e5f6a7b8", "shortName": "Hike", "longName": "Hiker Node"}
]
  • id is the Meshtastic hex node ID (always starts with ! followed by 8 hex characters).
  • shortName is a 4-character display name.
  • longName is the full node name.

GET /messages

Retrieve recent messages from the mesh.

Request:

curl -s "$MESH_API_URL/messages"

Response: JSON array of message objects. Each message contains sender info, text, timestamp, and channel.

POST /send

Send a message to a specific node (direct) or broadcast to a channel.

Direct message to a node:

curl -s -X POST "$MESH_API_URL/send" \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello from OpenClaw", "node_id": "!a1b2c3d4", "direct": true}'

Broadcast to a channel:

curl -s -X POST "$MESH_API_URL/send" \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello mesh!", "channel_index": 0}'

Body parameters:

  • message (string, required) — The text to send.
  • node_id (string, required for direct) — Target node hex ID (e.g. !a1b2c3d4).
  • direct (boolean) — Set true for a direct message to node_id.
  • channel_index (integer) — Channel index for broadcast (default 0 = LongFast).

Response:

{"status": "sent", "to": "!a1b2c3d4", "direct": true, "message": "Hello from OpenClaw"}

POST /ui_send

Broadcast a message to a channel (form-encoded, primarily used by the web UI).

Request:

curl -s -X POST "$MESH_API_URL/ui_send" \
  -d "message=Hello+mesh!&channel_index=0"

Parameters (form-encoded):

  • message (string, required) — The text to send.
  • channel_index (integer) — Channel index (default 0).
  • destination_node (string, optional) — If provided, sends a direct message instead of broadcast.

For programmatic use, prefer POST /send with JSON. Use /ui_send only when mimicking the web UI.

GET /connection_status

Check whether MESH-API is connected to its Meshtastic radio device.

Request:

curl -s "$MESH_API_URL/connection_status"

Response:

{"status": "connected", "error": null}
  • status will be "connected" or "disconnected".
  • error contains an error description string if disconnected, otherwise null.

GET /commands_info

List all available slash commands registered on the mesh (including extension commands).

Request:

curl -s "$MESH_API_URL/commands_info"

Response: JSON array of command objects.

[
  {"command": "/ping", "description": "Check if the bot is online"},
  {"command": "/ai-9z", "description": "Ask the AI a question"},
  {"command": "/nodes", "description": "List online mesh nodes"}
]

Natural Language Examples

When the user says something like the phrases below, map their intent to the corresponding API call:

User says Action
"Who is online on the mesh?" GET /nodes — list all visible nodes and summarize who is online.
"What nodes are on the mesh network?" GET /nodes
"Send 'hello' to TBot" GET /nodes first to resolve the name "TBot" to a node ID, then POST /send with {"message": "hello", "node_id": "<resolved_id>", "direct": true}.
"Send a message to !a1b2c3d4" POST /send with {"message": "<user's message>", "node_id": "!a1b2c3d4", "direct": true}.
"What's been said on the mesh recently?" GET /messages — retrieve and summarize the recent messages.
"Show me mesh messages" GET /messages
"Is the mesh connected?" GET /connection_status — report whether the radio link is up.
"Check mesh connection" GET /connection_status
"Broadcast 'weather alert' to the mesh" POST /send with {"message": "weather alert", "channel_index": 0}.
"Broadcast on channel 2: meeting at noon" POST /send with {"message": "meeting at noon", "channel_index": 2}.
"What commands does the mesh bot support?" `
Полный SKILL.md на GitHub

Установить mesh-api в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл mesh-api?

Interact with a Meshtastic LoRa mesh network through MESH-API — list nodes, read messages, send texts, and check connection status.

Как установить скилл mesh-api?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mesh-api запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mesh-api с