Change printed lines, and add .gitignore

This commit is contained in:
2026-01-18 00:03:24 +00:00
parent 458e35943a
commit 9d8c964218
2 changed files with 179 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ class MeshtasticController:
def __init__(self):
self.logs = {}
self.load_logs()
self.config = {
self.config = { # These settings can be changed by authorized users while running
"debug": False,
"mute_public_channel": True,
"mute_public_commands": True,
@@ -150,7 +150,7 @@ class MeshtasticController:
"role": "assistant" if log_entry['from'] == "Qwen" else "user",
"content": log_entry['message']
}
print(f'Message parts: {message_parts}')
#print(f'Message parts: {message_parts}')
clean_logs.append(message_parts)
return clean_logs
@@ -338,7 +338,7 @@ class MeshtasticController:
elif self.config["mute_public_channel"] and not destination:
print(f"Public channel muted: {message}")
else:
#print(f"Sending to {destination or 'public channel'}: {message}")
print(f"Sending to {destination or 'public channel'}: {message}")
self.interface.sendText(message, destinationId=destination)
self.log(
from_node="Qwen",