DEV Community

Solve Computer Science
Solve Computer Science

Posted on • Originally published at youtube.com on

restmesh: a simple Meshtastic REST API

restmesh is a Meshtastic-related REST API app I’m developing. Its purpose is to have a simple REST interface to send messages via Meshtastic using other software such as Apprise.

Messages can be sent to channels (IDs 0 to 7) — Meshtastic can handle up to 8 channels, with 0 being the primary one — or to single nodes. If a message is too long, it is automatically truncated to the first 200 bytes, which is more or less Meshtastic’s MTU.

Personally, I use restmesh for important and critical system notifications. Since restmesh is a Python package, you can install it via pip.

The app stack is as follows:

  • FastAPI: provides a nice and self-documenting REST API which you can use in other projects
  • Meshtasic: the Python bindings to manage the radio

Chapters

Top comments (0)