optimized webuntil getbearer loading directly school login

This commit is contained in:
Tobias Lehmann 2025-10-20 11:33:55 +02:00
parent 1163b61374
commit b535d45e97

View File

@ -5,14 +5,14 @@
export default async function ({ page, context }) {
const {
url = "https://webuntis.com/#/basic/login",
url = "https://mese.webuntis.com/WebUntis/?school=LMG+Crailsheim",
username = "LehmanLuc",
password = "",
school = "LMG Crailsheim", // ggf. "Lise-Meitner-Gymnasium"
debug = true,
timeoutMs = 60000,
maxTimeout = 15000,
screenshotFullPage = true,
timeoutMs = 10000,
maxTimeout = 3000,
screenshotFullPage = false,
output = "json" // "png" | "json"
} = context || {};
@ -438,6 +438,7 @@ export default async function ({ page, context }) {
const buf = await takePngBuffer();
const screenshot_b64 = buf ? "data:image/png;base64," + buf.toString("base64") : null;