How aivietnam-aio-ilovearti/timetable_widget_in_desktop works
This is a desktop timetable chatbot: a user asks for a schedule, a frontend sends the prompt to a local WebSocket backend, and the backend prepares date context, reads timetable data, queries Groq, and returns an answer. It offers separate standard-window and Wayland interfaces. The backend and standard-window launcher are excerpted; frontend wiring and the Wayland interface are represented only where the README documents them.
Main entry points: Logic.py WebSocket server · UI_Window.qml Window UI · UI_wayland.qml Wayland UI · connect_Window.py Window launcher
Components 8
Desktop frontends
- Window launcher
Frontend/connect_Window.py - Window UI
Frontend/UI_Window.qml - Wayland UI
Frontend/UI_wayland.qml
Chat backend
- WebSocket server
Backend/Logic.py - Prompt and date logic
Backend/Logic.py
Timetable and AI
- Timetable data
Backend/source.txt - Groq API
Other components
- User
Connections 10
- User → Window UI: asks schedule
README.md - User → Wayland UI: asks schedule
README.md - Window launcher → Window UI: loads
Frontend/connect_Window.py - Window UI → WebSocket server: sends prompt
README.md - Wayland UI → WebSocket server: sends prompt
README.md - WebSocket server → Prompt and date logic: dispatches prompt
Backend/Logic.py - Prompt and date logic → Timetable data: reads data
- Prompt and date logic → Groq API: queries schedule
Backend/Logic.py - WebSocket server → Window UI: returns response
README.md - WebSocket server → Wayland UI: returns response
README.md