Read the statement by Michael Teeuw here.
MMM-Webuntis
-
Hi @HeikoGr ,
like your module.
Unfortunately, I receive an error, when trying to start it.
"/home/../MagicMirror/modules/MMM-Webuntis/check.js:18 const untis = new webuntis(s.school, s.username, s.password, s.server); ^ TypeError: webuntis is not a constructor"
Any idea how to fix that?
Best,
Robert -
Hello @RobertMuc,
did this error occur when you run
npm check
?
unfortunately i was not able to adopt the check.js file from https://github.com/r3wald/MMM-Webuntis -
@RobertMuc did you run
npm install
? i was able to reconstruct your error message by uninstalling the npm package. -
@HeikoGr Yes.
I did fresh reinstall of MMM and all modules and then it suddenly worked… :-)
Thanks for the support and thanks for the module.
Best
-
@HeikoGr really cool. I was about to start something like this, but even better now :) I’ll give it a try soon! Thanks!
-
Hello @HeikoGr ,
i become the following error:
[ERROR] [MMM-Webuntis] Error: Error: Can not find person in person array. at WebUntisQR._otpLogin (/home/pi/MagicMirror/modules/MMM-Webuntis/node_modules/webuntis/dist/webuntis.js:957:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async WebUntisQR.login (/home/pi/MagicMirror/modules/MMM-Webuntis/node_modules/webuntis/dist/webuntis.js:1057:12)
i think, the reason is, i just have a parent account, not a student account. is it possible to use the pearent account?
Thank you
-
@schmucke at the moment this module asks explicitly for the „own“ timetable. So the error is absolutely because of the parents account. I will look, if i can get the students data out of an existing parents account.
-
@HeikoGr said in MMM-Webuntis:
@schmucke at the moment this module asks explicitly for the „own“ timetable. So the error is absolutely because of the parents account. I will look, if i can get the students data out of an existing parents account.
this would be nice! If i can help you to get any debuginfo, tell me.
Thank you.
-
@schmucke unfortunately I am not able to get the informations via the npm webuntis class from the untis API.
Don’t your children have own accounts you can use? Or do they have an MS365 login? In this case you can use the qr code login method.
-
@HeikoGr no Problem.
Of cource, they have a login - but they dont know they passwords… i just try to get the Information from the teachers. Thank you!