MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. RobertMuc
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Online
    • Profile
    • Following 1
    • Followers 0
    • Topics 0
    • Posts 8
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-Webuntis

      HI @HeikoGr,

      bei mir sieht der Call ganz anders aus und keine der IDs funktioniert (siehe unten). Wenn ich mir den call für die Entries anschaue , sieht das ganze so aus.
      /WebUntis/api/rest/view/v1/timetable/entries?start=2026-01-12&end=2026-01-16&format=1&resourceType=STUDENT&resources=823&periodTypes=&timetableType=MY_TIMETABLE&layout=START_TIME

      Aber diese id funktioniert auch nicht, wenn ich sie als StudentID übergebe …

      Puh.

      Robert

      {
          "currentSchoolYear": {
              "dateRange": {
                  "start": "2025-09-16",
                  "end": "2026-07-31"
              },
              "id": 16,
              "name": "2025/2026",
              "timeGrid": {
                  "schoolyearId": 16,
                  "units": [
                    }
                  ]
              }
          },
          "departments": [],
          "isPlayground": false,
          "oneDriveData": {
              "hasOneDriveRight": false,
              "oneDriveClientVersion": "V8",
              "oneDriveClientId": "d4acf9ca-5400-48f0-96db-e356769fa9fb"
          },
          "tenant": {
              "displayName": "xx",
              "id": "xx",
              "wuHostName": null,
              "name": "xx"
          },
          "ui2020": true,
          "user": {
              "id": xxx,
              "locale": "de",
              "name": "xx",
              "email": "xxx",
              "permissions": {
                  "views": [
                      "TODAY",
                      "TIMETABLE_NEW_STUDENTS_MY",
                      "TIMETABLE_NEW_CLASSES",
                      "MESSAGE_CENTER",
                      "MESSAGE_CENTER_2021",
                      "PROFILE",
                      "PERMISSION_STUDENT_TT_OWN",
                      "PERMISSION_CLASS_TT_OWN",
                      "PERMISSION_CLASS_TT_ALL",
                      "MY_DATA",
                      "STUDENT_HOMEWORK",
                      "STUDENT_CLASSREG_ENTRIES"
                  ]
              },
              "person": {
                  "displayName": "xxx",
                  "id": xx,
                  "imageUrl": null
              },
              "roles": [
                  "STUDENT"
              ],
              "students": [],
              "lastLogin": "2026-01-15T07:18:16.425"
          },
          "permissions": [
              "CONTACTDETAILS:R:0:ASSIGNED",
              "LESSONTOPIC:R:0:ALL",
              "TT_VIEW:R:1:ASSIGNED",
              "TT_VIEW:R:5:ASSIGNED",
              "HOMEWORK:R:0:ALL",
              "MESSAGES:R:0:ALL",
              "TT_OVERVIEW:R:1:ALL",
              "CLASSEVENT:R:0:ASSIGNED"
          ],
          "settings": [
              "system.linesperpage:15",
              "system.firstDayOfWeek:2",
              "system.showlessonsofday:false",
              "system.emailadmin:xxx"
          ],
          "pollingJobs": [],
          "isSupportAccessOpen": true,
          "licenceExpiresAt": "2999-12-31",
          "holidays": [
          ]
      }
      
      posted in Education
      R
      RobertMuc
    • RE: MMM-Webuntis

      Hi @HeikoGr ,

      erst einmal wieder Danke.

      Hier meine Response. Ich habe alle IDs mal ausprobiert. Keine davon wurde akzeptiert.

      QRCode sieht bei mir auch ganz anders aus.

      Andere Webuntis Version?

      Robert

      {
          "currentSchoolYear": {
              "dateRange": {
                  "start": "2025-09-16",
                  "end": "2026-07-31"
              },
              "id": 16,
              "name": "2025/2026",
              "timeGrid": {
                  "schoolyearId": 16,
                  "units": [
                    }
                  ]
              }
          },
          "departments": [],
          "isPlayground": false,
          "oneDriveData": {
              "hasOneDriveRight": false,
              "oneDriveClientVersion": "V8",
              "oneDriveClientId": "d4acf9ca-5400-48f0-96db-e356769fa9fb"
          },
          "tenant": {
              "displayName": "xx",
              "id": "xx",
              "wuHostName": null,
              "name": "xx"
          },
          "ui2020": true,
          "user": {
              "id": xxx,
              "locale": "de",
              "name": "xx",
              "email": "xxx",
              "permissions": {
                  "views": [
                      "TODAY",
                      "TIMETABLE_NEW_STUDENTS_MY",
                      "TIMETABLE_NEW_CLASSES",
                      "MESSAGE_CENTER",
                      "MESSAGE_CENTER_2021",
                      "PROFILE",
                      "PERMISSION_STUDENT_TT_OWN",
                      "PERMISSION_CLASS_TT_OWN",
                      "PERMISSION_CLASS_TT_ALL",
                      "MY_DATA",
                      "STUDENT_HOMEWORK",
                      "STUDENT_CLASSREG_ENTRIES"
                  ]
              },
              "person": {
                  "displayName": "xxx",
                  "id": xx,
                  "imageUrl": null
              },
              "roles": [
                  "STUDENT"
              ],
              "students": [],
              "lastLogin": "2026-01-15T07:18:16.425"
          },
          "permissions": [
              "CONTACTDETAILS:R:0:ASSIGNED",
              "LESSONTOPIC:R:0:ALL",
              "TT_VIEW:R:1:ASSIGNED",
              "TT_VIEW:R:5:ASSIGNED",
              "HOMEWORK:R:0:ALL",
              "MESSAGES:R:0:ALL",
              "TT_OVERVIEW:R:1:ALL",
              "CLASSEVENT:R:0:ASSIGNED"
          ],
          "settings": [
              "system.linesperpage:15",
              "system.firstDayOfWeek:2",
              "system.showlessonsofday:false",
              "system.emailadmin:xxx"
          ],
          "pollingJobs": [],
          "isSupportAccessOpen": true,
          "licenceExpiresAt": "2999-12-31",
          "holidays": [
          ]
      }
      
      posted in Education
      R
      RobertMuc
    • RE: MMM-Webuntis

      BTW, ich fand MMM-Pages, da man damit besser gleiche Module auf unterschiedliche Pages verteilen kann (z.B. unterschiedliche Google Sheets, oder calendar).

      Robert

      posted in Education
      R
      RobertMuc
    • RE: MMM-Webuntis

      Hi @Heikogr ,

      wieder mal ich. Bei uns gibt es leider keinen ElternAccount. Habe aber 3 Kinder mit 3 mal den direct credentials. Funktioniert eigentlich alles, aber es bleibt halt leer… Any idea?

      Hier mal ein Auszug aus dem Log.

      [DEBUG] [lib] [AuthService] REST auth token obtained successfully
      [DEBUG] [lib] [AuthService] Student login (direct credentials): personId=5500 = studentId (same person)
      [INFO] 👤 Login PersonId: 5500
      [INFO] ⚠️ No valid studentId resolved (check config)
      Gruß
      Robert

      posted in Education
      R
      RobertMuc
    • RE: MMM-Webuntis

      Danke Heiko für die schnelle Antwort. Ich hatte tatsächlich das lessons Objekt falsch. Danke auch nochmal für den Hinweis mit dem Carousel. Sehr gute Idee.

      Gruß und Danke!!!

      Robert

      posted in Education
      R
      RobertMuc
    • RE: MMM-Webuntis

      Hallo @heikogr.

      Danke für die Arbeit und die ganzen Updates der letzten Tage …

      Die haben mich leider nur rein bisschen überfordert. Was für einen displayMode muss ich denn einstellen, dass ich wieder nur die Stundenausfälle sehe - also wirklich nur eine Info, wenn eine Stunde ausfällt. Hab leider nicht allzuviel Platz für die Grid View auf meinem MM, sonst würde ich die natürlich nehmen.

      DANKE!!!

      Schönen Abend.
      Robert

      posted in Education
      R
      RobertMuc
    • RE: MMM-Webuntis

      @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

      posted in Education
      R
      RobertMuc
    • RE: 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

      posted in Education
      R
      RobertMuc
    • 1 / 1