Use the bundled script to log in and fetch the timetable via JSON-RPC.
Single profile:
WEBUNTIS_BASE_URL (e.g. https://xyz.webuntis.com)WEBUNTIS_SCHOOL (school name / key used by WebUntis)WEBUNTIS_USERWEBUNTIS_PASSWEBUNTIS_ELEMENT_TYPE (default 5 = student)WEBUNTIS_ELEMENT_ID (if auto-detect fails)Multiple profiles (parallel):
WEBUNTIS_PROFILE= or pass --profile cdg:WEBUNTIS_CDG_BASE_URLWEBUNTIS_CDG_SCHOOLWEBUNTIS_CDG_USERWEBUNTIS_CDG_PASSWEBUNTIS_CDG_ELEMENT_TYPE, WEBUNTIS_CDG_ELEMENT_IDToday:
cd skills/webuntis/scripts
./webuntis.py today
# or pick a profile
./webuntis.py --profile cdg today
Range:
cd skills/webuntis/scripts
./webuntis.py range 2026-02-10 2026-02-14
If you get "Could not determine element-id":
1) Run once and capture the error.
2) Add WEBUNTIS_ELEMENT_ID= and retry.
If auth fails:
WEBUNTIS_BASE_URL is correct for your school.WEBUNTIS_SCHOOL matches the school key used by WebUntis.The script prints one line per lesson/event:
YYYY-MM-DD HH:MM-HH:MM ·
共 1 个版本