C-J
October 11, 2024, 2:33pm
1
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.
An Arduino API that sits on top of Linux and other operating systems. This lets you run Arduino code on Raspberry PI, desktops, etc... All as a standard user-space application.
GUVWAF
October 11, 2024, 4:30pm
2
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.
C-J
October 11, 2024, 5:40pm
5
Tnx. Will make sure I use the right one. Much appreciated.
1 Like
C-J
October 18, 2024, 7:40pm
6
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?
GUVWAF
October 18, 2024, 9:36pm
7
You still need to install the Python CLI, e.g. with pip install meshtastic
assuming you have pip installed.
C-J
October 19, 2024, 7:41am
8
OK. Understand.
Thought all was bundled into one .exe perhaps. Will give it a try.
C-J
October 19, 2024, 10:10am
9
Frustrating. Still get same error “bash: meshtastic: command not found” eventhough I have now installed meshtastic. See embedded screendump.
Hm. All ideas welcome
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.