Use this skill for MeshMonitor API work.
/api/v1/api/v1/docs/Use the helper script:
python3 scripts/meshmonitor_api.py --base-url http://HOST:PORT --token 'mm_v1_...' info
If auth fails, stop and ask for a fresh token. Do not guess token format.
This skill is designed to use as much of the API as practical. Prefer these endpoint groups when available:
info → API/version metadatanodes → list nodes, inspect node, position historychannels → channel configurationtelemetry → telemetry history and summariesmessages → mesh messages/historytraceroutes → route/path historynetwork → network-wide statistics/topology summariespackets → raw packet logssolar → forecast/solar views when enabledBefore building reports or automation:
This tells you which features are populated on the actual instance.
When the user asks for a report, return concise structured sections such as:
Many MeshMonitor endpoints are history-oriented. Prefer explicit params like:
sincebeforelimitactivesinceDaysWhen unsure, start with conservative limits.
references/api-notes.md → known API groups and verified live behavior notesscripts/meshmonitor_api.py → helper CLI for authenticated calls, endpoint discovery, message sending, and report generationRead references/api-notes.md when you need a quick endpoint map.
The helper now has first-class commands for:
infonodesnodeposition-historychannelschanneltelemetrytelemetry-counttelemetry-nodemessagesmessagesend-messagetraceroutestraceroutenetworktopologypacketspacketsolarsolar-rangedocsrawhealth-summarynode-reporttraffic-reporttopology-reportpython3 scripts/meshmonitor_api.py --base-url http://HOST:PORT --token 'TOKEN' health-summary
python3 scripts/meshmonitor_api.py --base-url http://HOST:PORT --token 'TOKEN' node-report '!a1b2c3d4'
python3 scripts/meshmonitor_api.py --base-url http://HOST:PORT --token 'TOKEN' traffic-report --limit 20
python3 scripts/meshmonitor_api.py --base-url http://HOST:PORT --token 'TOKEN' topology-report
python3 scripts/meshmonitor_api.py --base-url http://HOST:PORT --token 'TOKEN' send-message --channel 0 'hello from the API'
python3 scripts/meshmonitor_api.py --base-url http://HOST:PORT --token 'TOKEN' docs
Authorization: Bearer ... header is present.That usually means the instance has the feature but no stored data yet. Report that clearly instead of treating it as a hard failure.
共 1 个版本