mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 01:13:14 +02:00
Merge branch 'main' of https://github.com/SpudGunMan/meshing-around
This commit is contained in:
@@ -72,6 +72,7 @@ pip install dadjokes
|
||||
dev enhancments if using visual studio
|
||||
```
|
||||
pip install mock
|
||||
pip install unittest
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# K7MHI Kelly Keeton 2024
|
||||
|
||||
import signal # for catching CTL+C
|
||||
import time # for sleep, get some when you can :)
|
||||
from pubsub import pub # pip install pubsub
|
||||
import meshtastic.serial_interface #pip install meshtastic
|
||||
import meshtastic.tcp_interface
|
||||
@@ -66,6 +67,9 @@ def auto_response(message, snr, rssi, hop):
|
||||
bot_response = "Last 5 nodes heard:\n" + str(get_node_list())
|
||||
else:
|
||||
bot_response = "I'm sorry, I'm afraid I can't do that."
|
||||
|
||||
# wait a 700ms to avoid message collision from lora-ack
|
||||
time.sleep(0.7)
|
||||
|
||||
return bot_response
|
||||
|
||||
|
||||
+2
-1
@@ -7,4 +7,5 @@ geopy
|
||||
maidenhead
|
||||
beautifulsoup4
|
||||
dadjokes
|
||||
mock
|
||||
mock
|
||||
unittest
|
||||
Reference in New Issue
Block a user