From 94bbad27a135ed05b3eaaa5a5da1dfb9c37457e8 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 9 Jul 2024 13:43:49 -0700 Subject: [PATCH] ChangeDMfaults --- README.md | 14 ++++++-------- mesh_bot.py | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e382df1..1a2852f 100644 --- a/README.md +++ b/README.md @@ -33,27 +33,25 @@ other features ### Configurations Currently config modifications is edit to code. Be sure to uncomment the appropriate interface for your method (serial/BLE/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 interface = meshtastic.serial_interface.SerialInterface() #serial interface +# you can specify SerialInterface('/dev/ttyUSB0') + #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) - ``` the enhanced bot is all modules by default, to disable extra modules comment out ``` # comment out unwanted funtionality, defined in corresponding files/modules -trap_list = trap_list + trap_list_location # items tide, whereami, wxc, wx +trap_list = trap_list + trap_list_location # items tide, whereami, wxc, wx, wxa, wxalert trap_list = trap_list + trap_list_solarconditions # items hfcond, solar, sun, moon trap_list = trap_list + trap_list_bbs # items bbslist, bbspost, bbsread, bbsdelete ``` - Solar Data needs the LAT LONG for your area on the [solarconditions.py](solarconditions.py) used for when node has no location in the db + Solar Data needs the LAT LONG for your area on the [solarconditions.py](solarconditions.py) used for when node has no location in the db, the settings are not used in weather data yet ``` LATITUDE = 48.50 LONGITUDE = -123.0 diff --git a/mesh_bot.py b/mesh_bot.py index 5042ffc..dfb88bf 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -32,7 +32,7 @@ trap_list = trap_list + trap_list_bbs # items bbslist, bbspost, bbsread, bbsdele welcome_message = "MeshBot, here for you like a friend who is not. Try sending: ping @foo or, help" help_message = "CMD?: ping, motd, sitrep, joke, sun, hfcond, solar, moon, tide, whereami, wx, wxc, wxa, bbslist, bbshelp" MOTD = "Thanks for using PongBOT! Have a good day!" # Message of the Day -RESPOND_BY_DM_ONLY = True # Set to True to respond messages via DM only (keeps the channel clean) +RESPOND_BY_DM_ONLY = False # Set to True to respond messages via DM only, False uses smart response DEFAULT_CHANNEL = 0 # Default channel on your node, also known as "public channel" 0 on new devices #Get the node number of the device, check if the device is connected