Refactor weather plugin structure and update imports

- Moved weather plugin files into a new 'plugins' directory for better organization.
- Updated import statements in command_handlers.py and message_processing.py to reflect the new file structure.
- Adjusted .gitignore to exclude nested .ini files.
- Removed obsolete weather plugin files and documentation as part of the restructuring.
This commit is contained in:
default 2025-04-03 20:45:56 +00:00
parent 3e3bc7f1f6
commit 24f329d07e
10 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@ -4,5 +4,5 @@ venv/
.venv
.idea
config.ini
*/*.ini
*/*/*.ini
fortunes.txt

View File

@ -4,7 +4,7 @@ import random
import time
from meshtastic import BROADCAST_NUM
from weather_plugin.menu import get_weather_menu_text
from plugins.weather_plugin.menu import get_weather_menu_text
from db_operations import (
add_bulletin, add_mail, delete_mail,

View File

@ -10,10 +10,10 @@ from command_handlers import (
handle_check_bulletin_command, handle_read_bulletin_command, handle_read_channel_command,
handle_post_channel_command, handle_list_channels_command, handle_quick_help_command
)
from weather_plugin.command_router import handle_weather_command, handle_weather_steps
from plugins.weather_plugin.command_router import handle_weather_command, handle_weather_steps
from db_operations import add_bulletin, add_mail, delete_bulletin, delete_mail, get_db_connection, add_channel
from js8call_integration import handle_js8call_command, handle_js8call_steps, handle_group_message_selection
from utils import get_user_state, get_node_short_name, get_node_id_from_num, send_message
from utils import get_node_short_name, get_node_id_from_num, send_message, get_user_state, update_user_state
main_menu_handlers = {
"q": handle_quick_help_command,

0
plugins/__init__.py Normal file
View File