/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-messages.py
Print all messages received by your 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.

print-traceroute.py
print out all traceroutes heard by your node

request-telemetry-simple.py
send a request for a telemetry packet to a node of your choice

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-nodeinfo.py
broadcast your node's nodeinfo packet

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

send-traceroute-simple.py
send a traceroute request to a node of your choosing and wait for a response.

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.