Skip to content

OH1KK/Meshtastic-mesh-replier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is python bot for meshtastic intended to run on raspberry pi. Bot can be used to measure signal strength using ping, show telemetry and position data from nodes and send messages to channels/nodes.

Usage example

Install

Python depencies

pip install meshtatic pyserial

Start this on your home node.

git clone https://github.com/OH1KK/Meshtastic-mesh-replier.git
cd Meshtastic-mesh-replier
chmod +x mesh-replier.py

Starting

./mesh-replier.py

You should see messages

Connected to radio. My node ID: 1129887680 (0x4358b7c0)
Waiting for messages

and then you should se messages received from radio. There are messages, telemetry, position reports. They are visible on screen as they arrives. Same data is also logged into /tmp/mesh-replier.log

Usage

Then send 'ping' message from another node to your node.

If your node hears it, it replies

pong 2025-05-11 15:06:46. rxSNR 6.25 dB RSSI -63 dBm (direct)

and if packet is relayed through another node then you see reply like

pong 2025-05-11 15:07:53. rxSNR 6.5 dB RSSI -30 dBm (relayed via 24)

Sending messages

mesh-replier.py sets http listener to port 8080 and listens for message requests.

Sending message to channel

curl "http://192.168.1.123:8080/?ch_index=0&sendtext=Testing%201234"

Sending message to single node

curl "http://192.168.1.123:8080/?dest=ea0a0b88&sendtext=Testing%201234"

This assumes that your raspi has ip address 192.168.1.123.

About

Python bot script that sends pong, when you send ping to node. Also reports rxSNR, RSSI and was packet relayed or not

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages