Available Python API to Meshtastic on LInux native device?

Hi,
Using RPI Zero Portduino framework as described in links below:

  • Can you access Meshtastic on that same RPI zero device using Python CLI?

Asking as I’d like to write my own Python application on that same RPI zero device which then would access Meshtastic through Python CLI.

Your confirmation would make me happy.

Yes, you can connect to it via TCP using localhost (it will try this by default if it doesn’t find any device connected via serial).

You need a Rpi Zero 2 for arm64, but yes, all day every day.

Great. You made my day :slight_smile:

Tnx. Will make sure I use the right one. Much appreciated.

1 Like

Hi, I have now installed meshtasticd on my Raspberry PI 3 hosting a Waveshare SX126X (SPI version) HAT.
Installation made by following this link:

All is good when accessing through web interface.

However I cannot access Meshtastic via the command line.
pi@raspberrypi:~ $ meshtastic --host localhost
“bash: meshtastic: command not found”

Any idea what I’m doing wrong?

You still need to install the Python CLI, e.g. with pip install meshtastic assuming you have pip installed.

OK. Understand.
Thought all was bundled into one .exe perhaps. Will give it a try.

Frustrating. Still get same error “bash: meshtastic: command not found” eventhough I have now installed meshtastic. See embedded screendump.
Hm. All ideas welcome :slight_smile:

Perhaps problem is more related to missing path / virtual environment?

Solution:
I realized I needed to better understand virtual environmemt. Created one and made all install from there. Seems to work.