MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Webuntis

    Scheduled Pinned Locked Moved Education
    30 Posts 6 Posters 5.2k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      Eli @HeikoGr
      last edited by

      @HeikoGr really cool. I was about to start something like this, but even better now :) I’ll give it a try soon! Thanks!

      E 1 Reply Last reply Reply Quote 0
      • S Offline
        schmucke
        last edited by

        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

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          HeikoGr @schmucke
          last edited by

          @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.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            schmucke @HeikoGr
            last edited by

            @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.

            H 1 Reply Last reply Reply Quote 0
            • H Offline
              HeikoGr @schmucke
              last edited by

              @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.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                schmucke @HeikoGr
                last edited by

                @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!

                1 Reply Last reply Reply Quote 0
                • E Offline
                  Eli @Eli
                  last edited by

                  It works on my mirror now. But I can only see the info page telling that all is according to plan. Unfortunately, the school is only striking the lessons in the schedule without any comment. But I can’t manage to display the students schedule. I log in with password, not qr. Maybe I miss a simple option?

                  Maybe as a small improvement you might want to update your example config and add a few options+screenshots? Might help some of us…

                  But great work! Thumbs up!

                  H 1 Reply Last reply Reply Quote 0
                  • H Offline
                    HeikoGr
                    last edited by

                    The default is to show only changes in the schedule.
                    But you are right: a few more examples and screenshots are on my todo list!

                    You can try this (look for showRegularLessons).

                            {
                                disabled: false,
                                module: "MMM-Webuntis",
                                header: "schedule for next 3 days",
                                position: "top_right",
                                config: {
                                    students: [
                                        {
                                            title: "children",
                                            qrcode: "untis://s[...]",
                                        },
                                    ],
                                    days: 3,
                                    showRegularLessons: true
                                }
                            },
                    
                    E 1 Reply Last reply Reply Quote 0
                    • E Offline
                      Eli @HeikoGr
                      last edited by Eli

                      @HeikoGr Thanks for coming back on this, appreciate!

                      Unfortunately I have no luck with this either.
                      I added the days option, also the examsDays.
                      I still get only “Unterricht nach Plan - no changes, all according to plan” (and now also “no exams planned” - of course).

                      I also added useClassTimeTable and showRegularLessons and showSubject - no change.

                      It seems the school is hiding all info :)

                      On the web interface I can see the schedule and the changes are visible in that schedule/table by stroke thru boxes for the specific lessons only, no comments in addition.

                      But it would already help if I could see the table in my mirror.

                      I tried without any options - I guess this is what brings up your screenshot - but same result.

                      I assume the QR option should be no difference compared to user/password, right?

                      I checked startup log and I see an error for this module now - no clue how to fix though…
                      using latest version

                      [2025-01-21 17:40:37.807] [ERROR] ERROR! Could not find main module js file for untis
                      [2025-01-21 17:40:37.961] [ERROR] GitError: Error: spawn git ENOENT
                      at ChildProcess._handle.onexit (node:internal/child_process:284:19)
                      at onErrorNT (node:internal/child_process:477:16)
                      at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
                      at Object.action (C:\MagicMirror\modules\MMM-Remote-Control\node_modules\simple-git\dist\cjs\index.js:1445:25)
                      at PluginStore.exec (C:\MagicMirror\modules\MMM-Remote-Control\node_modules\simple-git\dist\cjs\index.js:1494:29)
                      at C:\MagicMirror\modules\MMM-Remote-Control\node_modules\simple-git\dist\cjs\index.js:1921:43
                      at new Promise ()
                      at GitExecutorChain.handleTaskData (C:\MagicMirror\modules\MMM-Remote-Control\node_modules\simple-git\dist\cjs\index.js:1919:16)
                      at GitExecutorChain. (C:\MagicMirror\modules\MMM-Remote-Control\node_modules\simple-git\dist\cjs\index.js:1903:44)
                      at Generator.next ()
                      at fulfilled (C:\MagicMirror\modules\MMM-Remote-Control\node_modules\simple-git\dist\cjs\index.js:52:24) {
                      task: {
                      commands: [ ‘remote’, ‘-v’ ],
                      format: ‘utf-8’,
                      parser: [Function: parseGetRemotesVerbose]
                      }
                      }

                      If I use the debug option, I don’t get the above error, but I see:
                      [2025-01-21 17:49:39.758] [LOG] Connecting socket for: MMM-Webuntis
                      [2025-01-21 17:49:39.879] [INFO] [MMM-Webuntis] Node helper started
                      [2025-01-21 17:49:39.984] [LOG] Sockets connected & modules started …
                      [2025-01-21 17:49:40.077] [INFO]

                      Ready to go! Please point your browser to: blabla
                      [2025-01-21 17:49:47.299] [LOG] Create new calendarfetcher for url: https://calendar.googlblabla
                      [2025-01-21 17:49:47.643] [INFO] [MMM-Webuntis] Successfully fetched data
                      [2025-01-21 17:49:47.648] [INFO] updatenotification: Updater Class Loaded!
                      [2025-01-21 17:49:47.652] [INFO] updatenotification: Checking PM2 using…
                      [2025-01-21 17:49:47.659] [INFO] Checking git for module: MMM-Webuntis
                      [2025-01-21 17:49:47.746] [INFO] updatenotification: [PM2] You are not using pm2
                      [2025-01-21 17:49:47.759] [INFO] Checking git for module: MMM-Videoplayer
                      [2025-01-21 17:49:47.836] [INFO] Checking git for module: MagicMirror
                      [2025-01-21 17:49:48.305] [LOG] [MMM-Webuntis] ERROR for student: TypeError: Cannot read properties of undefined (reading ‘0’)

                      H 1 Reply Last reply Reply Quote 0
                      • H Offline
                        HeikoGr @Eli
                        last edited by

                        @Eli looks interesting

                        • Why are the references to c:\ do you run magicmirror on windows?
                        • what’s your way to install a new module? Do you use an module for this?
                        E 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy