From fdb1d309154acd1264cffab85d85690059c8bb74 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 12 Jun 2024 16:26:06 -0700 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 2be9497..8c77881 100644 --- a/README.md +++ b/README.md @@ -7,4 +7,21 @@ Random Mesh Scripts ![alt text](pong-bot.jpg "Example Use") Little bot which will trap keywords like ping and respond on a DM with pong. The script will also monitor the group channels for keywords to trap on. you can also `Ping@Data to Echo` as a example for further processing. + ### Configurations + Currently config modifications is edit to code. Be sure to uncomment the approprate interface combo for your method (serial/BLEW/TCP). Only one at a time is supported to a single node at a time. + ``` +# Uncomment the interface you want to use depending on your device connection +import meshtastic.serial_interface +#import meshtastic.tcp_interface +#import meshtastic.ble_interface + +interface = meshtastic.serial_interface.SerialInterface() #serial interface +#interface=meshtastic.tcp_interface.TCPInterface(hostname="192.168.0.1") # IP of your device +#interface=meshtastic.ble_interface.BLEInterface("AA:BB:CC:DD:EE:FF") # BLE interface +``` +It is recomended to leave this setting as default `True` to keep the channel clear in larger mesh. + +``` +RESPOND_BY_DM_ONLY = True # Set to True to respond messages via DM only (keeps the channel clean) + ```