/Meshtastic-Python-Examples

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

autoresponder.py
Send a message reply_message every time a message is received by the connected node.

get-channels.py
Get and print all the channels saved on the connected node.

get-config-modem-preset.py
Get and print the active modem preset on the connected node.

print-nodedb.py
List the nodes with telemetry in the nodedb of the connected node.

print-packets-basic.py
This script print all data packets.

print-packets-json-log-and-plot.py
This script print all data packets in json format, saves to a file and creates bar charts for portnum and node number.

print-packets-json-log.py
This script print all data packets in json format, and saves to a json file.

print-packets-json.py
This script print all data packets in json format.

print-packets.py
Parse and print all data packets.

send-and-receive.py
Send messages typed into the terminal, and display any message received by the connected node.

send-device-metrics.py
Send device telemetry to the mesh from the connected node

send-environment-metrics.py
Send environment telemetry to the mesh from the connected node

send-position.py
Send a location to the mesh from your connected node.

serial-mqtt.py
Send JSON formatted packets to an MQTT broker from your connected node. Useful for nRF's without WiFi, and for LAN-less configurations such as a node connected via USB to a Raspberry Pi running Mosquitto.