Skip to content

Releases: c4g7-dev/untis-calendar-sync

v1.1.0 - Intelligent Holiday Detection 🎊

09 Nov 21:38

Choose a tag to compare

🎊 Intelligent Holiday Detection

This release introduces smart holiday detection to prevent the day-shift bug when school holidays occur.

✨ New Features

  • 🗓️ Automatic Holiday Detection: Recognizes German public holidays for all federal states (Bundesländer)
  • 📝 Manual Configuration: Add school-specific free days via school_holidays.json
  • 🐛 Fixed Day-Shift Bug: Lessons no longer shift by one day when holidays exist
  • 🔧 Flexible: Works for any weekday (Monday-Friday), not hardcoded

🔄 How It Works

# Automatic: Public holidays for your state
parser = ImprovedUntisParser('week.json', bundesland='BY')  # Bayern

# Manual: School-specific days
{
  "custom_holidays": [
    "2025-11-19",  # Buß- und Bettag (outside Sachsen)
    "2025-05-30",  # Bridge day
    "2025-03-15"   # Pedagogical day
  ]
}

📦 Installation

pip install -r requirements.txt  # Includes new 'holidays' library

🧪 Testing

Verified with real data:

  • ✅ Week with Wednesday holiday (Nov 19, 2025 - Buß- und Bettag)
  • ✅ Normal 5-day weeks
  • ✅ Multiple missing days

� Documentation

See README.md for configuration guide.


Full Changelog: v1.0.0...v1.1.0