Skip to content

Steallight/UntisIntegration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UntisIntegration

A simple Discord bot to fetch your school schedule from Untis.

maven-central progress-release

Quick Links

Installation

  1. Clone the repository:
git clone https://github.com/your-username/UntisIntegration.git
  1. Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure environment variables:

Create a .env file in the project root with the following:  

UNTIS_SERVER=<your_untis_server_address>
UNTIS_USERNAME=<your_untis_username>
UNTIS_PASSWORD=<your_untis_password>
UNTIS_SCHOOL=<your_untis_school_name>
DC_TOKEN=<your_discord_bot_token>
UNTIS_KLASSE=<your_untis_class_name>  # Optional: For specific class schedules

Usage

  1. Run the bot:
python main.py
  1. In Discord:

Send !plan in a channel where the bot is present. Your schedule will be sent as a DM.

How it works

  • PeriodObject: Represents a single class period with details like time, subject, teacher, and room.
  • erstelle_stundenplan: Processes Untis data and formats it into a readable schedule string.
  • Discord Bot: Listens for !plan commands, fetches the schedule, and sends it via DM.

Additional Notes

  • Use a secure method for storing environment variables.
  • Consider error handling and caching for performance.
  • Customize the schedule format and Discord integration.

Potential Enhancements

  • Command-line arguments for class selection.
  • Caching for frequent schedule requests.
  • Support for multiple classes.
  • Cloud deployment for continuous availability.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages