A python command line script to receive messages from Meshtastic. Run either the 'read_messages_serial.py' script OR the 'read_messages_tcp.py' script, and it will connect to your radio (via either Serial or TCP) and display any text messages received by your node, on any channel, including private/direct messages.
Script is confirmed to work on Windows and Linux (and possibly other OSs).
I built this because this functionality is not available using the Meshtastic CLI (as of time of publishing).
- git clone https://github.com/brad28b/meshtastic-cli-receive-text.git
- cd meshtastic-cli-receive-text
- pip3 install -r requirements.txt
-
Firstly, decide if you will be connecting to your node via serial or via TCP. If using serial, edit 'read_messages_serial.py' and set the serial port for your Meshtastic node (usually /dev/ttyUSB0 or /dev/ttyACM0 on Linux, or COMx on Windows). If using TCP, edit 'read_messages_tcp.py' and set the IP address of your Meshtastic node.
-
Then to run the script:
-
For Serial: python read_messages_serial.py
-
For TCP: python read_messages_tcp.py
-
To exit, use Ctrl-C