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

    Posts

    Recent Best Controversial
    • RE: MMM-SystemStats (cpu temp/load, fre ram ...)

      UPDATE:

      I included into the custom.css

      /**
       * MMM-SystemStats
       */
      
      .MMM-SystemStats table {
              width: 350px;
              color: #666;
              font-size: 20px;
       }
      
      .MMM-SystemStats td {
          line-height: 20px;
      }
      

      that works for me. Not sure if that was the right way. But hey, its fine.

      posted in Utilities
      M
      MajorC
    • Timetable from Units.at

      Hi,
      my school is using https://www.untis.at/

      There is a website and a mobile-app that shows the daily timetable. Do you see any chance to show the timetable on the MagicMirror?

      The website I use at the moment requires a login and then looks like this:

      Thank you

      <!DOCTYPE html>
      <html>
      <head>
          <meta http-equiv="expires" content="0">
          <meta http-equiv="content-type" content="text/html; charset=UTF-8">
          <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
      
          <title>WebUntis</title>
      
          <script type="text/javascript">
              window.untisUIVersion = 2;
              window.untisMomentLocale= "de";
              window.untis__webpack_public_path__ = "/WebUntis/static/2021.3.3/js/untis/";
              untis = {
                  config: {"mode":"STANDARD","locale":"de","contextPath":"/WebUntis","licence":{"name":"Käthe-Kollwitz-Gymnasium Berlin","name2":"Berlin, Dunckerstr. 65-66"},"mandantName":"Käthe-Kollwitz-Gymnasium","mandant":17761,"customerNumber":60150,"imageServiceConfig":{"customLogo":false},"loginServiceConfig":{"ssoType":"none","samlProviderLabel":"","idpName":"","loginError":"","lastUserName":"","lastMandantName":"","anonymousMode":false,"userRegistrationEnabled":false,"user":{"name":"8.2","id":163,"departmentId":0,"roleId":1,"userGroupId":11,"personId":160,"persons":[{"id":160,"type":1,"displayName":"","longName":"Fnt,Brin","foreName":""}],"email":"fontes@kkos.net"},"ssoOffice365":false,"adminEmail":null,"hideWuLogin":false,"oidcProviderLabel":null,"ssoOidc":false},"staticResourcesUrl":"/WebUntis/static/2021.3.3","calendarServiceConfig":{"today":null,"currentDate":"2020-09-28","currentSchoolyearId":6,"schoolyears":[{"startDate":"2015-08-31","endDate":"2016-08-20","finalMarkActive":true,"semesters":[],"name":"2015/2016","id":1},{"startDate":"2016-09-05","endDate":"2017-07-19","finalMarkActive":true,"semesters":[],"name":"2016/2017","id":2},{"startDate":"2017-09-04","endDate":"2018-07-04","finalMarkActive":true,"semesters":[],"name":"2017/18","id":3},{"startDate":"2018-08-20","endDate":"2019-06-19","finalMarkActive":true,"semesters":[],"name":"2018/19","id":4},{"startDate":"2019-08-05","endDate":"2020-06-24","finalMarkActive":true,"semesters":[],"name":"2019/2020","id":5},{"startDate":"2020-08-10","endDate":"2021-06-24","finalMarkActive":true,"semesters":[],"name":"2020/2021","id":6}],"holidays":[{"startDate":"2020-10-12","endDate":"2020-10-25","bookingAllowed":false,"longName":"12.10.2020-12.10.2020","name":"Herbstferien"},{"startDate":"2020-12-21","endDate":"2021-01-03","bookingAllowed":false,"longName":"21.12.2020-21.12.2020","name":"Weihnachtsferien"},{"startDate":"2021-02-01","endDate":"2021-02-07","bookingAllowed":false,"longName":"1.2.2021-1.2.2021","name":"Winterferien"},{"startDate":"2021-03-29","endDate":"2021-04-11","bookingAllowed":false,"longName":"29.3.2021-29.3.2021","name":"Osterferien"},{"startDate":"2021-05-13","endDate":"2021-05-14","bookingAllowed":false,"longName":"14.5.2021-14.5.2021","name":"Ferien1"},{"startDate":"2020-10-03","endDate":"2020-10-03","bookingAllowed":false,"longName":"3.10.2020","name":"3.10."},{"startDate":"2021-03-08","endDate":"2021-03-08","bookingAllowed":false,"longName":"8.3.2021","name":"Pfingstferien"},{"startDate":"2021-05-13","endDate":"2021-05-13","bookingAllowed":false,"longName":"13.5.2021","name":"13.5."},{"startDate":"2021-05-24","endDate":"2021-05-24","bookingAllowed":false,"longName":"24.5.2021","name":"24.5."}],"showWeekNumbers":false,"weekendDays":[0,6],"firstDayOfWeek":1,"minNumberOfDaysInFirstWeek":5},"serviceDescriptors":{"jsonBookingService":{"url":"jsonBookingService","methods":["changeBookingDate","getBookableRooms","isValidBookingId"]},"jsonStudentLessonMatrixService":{"url":"jsonStudentLessonMatrixService","methods":["getFilter","load","save"]},"jsonStudentgroupService":{"url":"jsonStudentgroupService","methods":["getStudentLessonPeriodMatrix","submitStudentLessonPeriodData"]},"jsonTeacherService":{"url":"jsonTeacherService","methods":["getEmailAddressesOfTeachers","updateTeacherVarQuota","updateTeacherVarStatus","getAllTeacherStatuses"]},"jsonLessonTopicService":{"url":"jsonLessonTopicService","methods":["renumberLessonTopics"]},"jsonSmsService":{"url":"jsonSmsService","methods":["deleteSms","getSmsAddressOptions","getFormData","getSms","send","getFormDataForAbsenceSms"]},"jsonUserProfileService":{"url":"jsonUserProfileService","methods":["activateTotp","getTotpKey","setNewAdminDetails","deactivateTotp","getPasswordRules","generateTotpKey","isTotpEnabled"]},"jsonHomeworkService":{"url":"jsonHomeworkService","methods":["save","deleteHomework"]},"jsonStudentDutyService":{"url":"jsonStudentDutyService","methods":[]},"jsonAddressService":{"url":"jsonAddressService","methods":["getMobileNumberAvailability","readFor","save","deleteAddress"]},"jsonKlasseService":{"url":"jsonKlasseService","methods":["getUserIdsOfKlassen","getStudentIdsOfKlassen","getTeacherIdsOfKlassen","getPersonIdsOfKlassen"]}},"publicAppAccessAllowed":false,"appCredentials":null,"appColors":[{"id":1,"labelKey":"LBL_FREE_HOUR","backColor":"#eceded"},{"id":2,"labelKey":"IDC_LESSON","backColor":"#f49f25"},{"id":3,"labelKey":"LBL_NOT_CONFIRMED","backColor":"#d7dd7a"},{"id":4,"labelKey":"LBL_ACTIVITY","backColor":"#b0bc00"},{"id":5,"labelKey":"LBL_STORNO_BK","backColor":"#f3c480"},{"id":6,"labelKey":"LBL_HOUR_NOT_ALLOWED","backColor":"#b1b3b4"},{"id":7,"labelKey":"LBL_HOLIDAY_BK","backColor":"#53aedd"},{"id":8,"labelKey":"LBL_HOLIDAY_NO_BK","backColor":"#a2d8f4"},{"id":9,"labelKey":"HDR_CONFLICT_LIST","backColor":"#e53527"},{"id":10,"labelKey":"LBL_SUBSTITUTION","backColor":"#a781b5"},{"id":11,"labelKey":"LBL_CANCELLED","backColor":"#b1b3b4"},{"id":12,"labelKey":"LBL_WITHOUT_ELEM","backColor":"#b1b3b4"},{"id":13,"labelKey":"LBL_ELEM_CHANGED","backColor":"#a781b5"},{"id":14,"labelKey":"LBL_SHIFT","backColor":"#a781b5"},{"id":15,"labelKey":"LBL_SPECIALDUTY","backColor":"#a781b5"},{"id":16,"labelKey":"LBL_EXAM","backColor":"#ffed00"},{"id":17,"labelKey":"IDC_BREAKSUPERVISION","backColor":"#ea6ea3"},{"id":18,"labelKey":"IDC_STANDBY","backColor":"#f49f25"},{"id":19,"labelKey":"IDC_OFFICEHOUR","backColor":"#f49f25"},{"id":20,"labelKey":"LBL_ABSENCE","backColor":"#e53527"},{"id":21,"labelKey":"LBL_WORKTIME","backColor":"#a4fa9e"}],"forceAdminDetailsChange":false,"gradeIntegrationConfig":{"isAvailable":false,"viewConfigUrl":null,"viewEnterGradesUrl":null,"viewEnterExamGradesUrl":null,"viewEvaluationUrl":null},"timetableConfig":{"weeklyElementTypes":[1,2]},"contentUrl":null,"kioskMode":false,"departmentServiceConfig":{"globalDepartmentFilterEnabled":false,"globalDepartmentId":0,"departments":[]},"messageServiceConfig":{"unreadCount":0,"messageCenterNewView":false,"can":{"readMessage":null,"sendMessage":null,"sendSms":null,"createDistributionList":null}},"menuConfig":[{"children":[],"lbl":"LBL_TODAY","action":{"args":["main"],"cmd":"loadContent"},"id":10,"group":0},{"children":[{"lbl":"IDM_TT_CLASS","action":{"args":["/basic/timetable?selectedTab=1"],"cmd":"loadContent"},"id":101,"group":0},{"lbl":"IDM_TT_TEACHER","action":{"args":["/basic/timetable?selectedTab=2"],"cmd":"loadContent"},"id":102,"group":0},{"lbl":"IDM_BK_CLASSES","action":{"args":["selectelementform?elemTypeStr=1"],"cmd":"loadContent"},"id":208,"group":2},{"lbl":"IDM_BK_TEACHERS","action":{"args":["selectelementform?elemTypeStr=2"],"cmd":"loadContent"},"id":205,"group":2}],"lbl":"IDM_TT_TIMETABLE","id":1,"group":0},{"children":[{"lbl":"IDM_USERTASKS","action":{"args":["usertasklist"],"cmd":"loadContent"},"id":508,"group":6}],"lbl":"IDM_LS_LESSON","id":8,"group":4},{"children":[{"lbl":"IDM_AM_MESSAGES","action":{"args":["messagedaylist"],"cmd":"loadContent"},"id":503,"group":24}],"lbl":"IDM_AM_ADMIN","id":4,"group":24}],"userServiceConfig":{"roles":[],"searchAllowed":false,"mustSetupGoogleAuthenticator":false,"googleAuthenticatorSetupLoginRetries":0,"isGoogleAuthenticatorSet":false,"locale":"de"},"timetablingConfig":null,"inputAssistantConfig":{"active":false,"stepTimetablingCompleted":true},"canEditMessageOfDay":true,"ttSidebarMinimized":false,"isBackupWarningEnabled":false,"messengerAppData":null,"messengerFeedbackUrl":null,"messengerAdsEnabled":true,"messengerAdsUrl":"https://messenger.untis.at","sessionTimeout":300,"testSchedule":false,"navItems":["TODAY","TIMETABLE"],"embedNewUI":false,"schoolAdminHasMessengerButton":true,"schoolHasMessengerModule":false,"hasDrive":false,"hasOneDrive":false,"oneDriveClientId":"d4acf9ca-5400-48f0-96db-e356769fa9fb","hasMessenger":false,"isMessengerWebSocketDisabled":false,"isMessengerManualActivationRequired":false,"hasMessengerBeenActivated":false,"canOfferMessengerTrial":true,"hasStartedMessengerTrial":false,"messengerTrialDaysLeft":0,"isAdmin":false,"isDirectorate":false,"isStaff":false,"isTeacher":false,"isWUSSO":false,"schoolQueryUrl":"https://webuntis.com","isPlayground":false,"isIntegrationsDisabledMessage":null,"runningPollingJobs":[],"pollingConfig":[{"pollingType":"REPORT","pollingInterval":5000}],"playgrounds":[],"imprintUrl":"https://www.untis.at/HTML/impressum.php","hasPrivacyPolicy":false,"csrfHeader":"X-CSRF-TOKEN","csrfToken":"c882054c-9cc8-4602-abb6-b52be2588a65","ui2020":true,"isUI2020ActiveForCurrentUser":false},
              };
              // R�ckw�rtskompatibilit�t
              window.dojoConfig = {grupet: untis.config};
          </script>
      
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/moment/moment.min.js"></script>
      
      
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/moment/locale/de.js"></script>
          <script type="text/javascript">moment.locale("de");</script>
      
      
          
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/webpack.js"></script>
      
          
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/react.js"></script>
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/ramda.js"></script>
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/rx.js"></script>
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/ag-grid.js"></script>
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/draft-js.js"></script>
          <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/immutable.js"></script>
      
      
      
      
          
      
          <script type="text/javascript">
              // IE 9 console patch
              var method;
              var noop = function () {};
              var methods = [
                  'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
                  'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
                  'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
                  'timeStamp', 'trace', 'warn'
              ];
              var length = methods.length;
              var console = (window.console = window.console || {});
      
              while (length--) {
                  method = methods[length];
      
                  // Only stub undefined methods.
                  if (!console[method]) {
                      console[method] = noop;
                  }
              }
      
              // IE 10 Fix
              if (window.navigator.language === undefined) {
                  window.navigator.language = window.navigator.userLanguage;
              }
          </script>
      
          <link rel="shortcut icon" type="image/x-icon" href="/WebUntis/static/2021.3.3/Images/favicon.ico">
          <link rel="stylesheet" type="text/css" href="/WebUntis/static/2021.3.3/Styles/icons.css">
          <link rel="stylesheet" href="/WebUntis/appColor/viewColors.css">
      
          
          <link rel="stylesheet" type="text/css" href="/WebUntis/static/2021.3.3/Styles/font-awesome.css">
          <style type="text/css">
              @font-face {
                  font-family: "Noto Sans";
                  src: url(/WebUntis/static/2021.3.3/js/untis/fonts/NotoSans-Regular.ttf) format("truetype");
              }
              @font-face {
                  font-family: "Space Grotesk";
                  src: url(/WebUntis/static/2021.3.3/js/untis/fonts/SpaceGrotesk-Regular.ttf) format("truetype");
              }
              @font-face {
                  font-family: "UNIcons";
                  src: url(/WebUntis/static/2021.3.3/js/untis/fonts/UNIcons.woff) format("woff");
              }
          </style>
          <link rel="stylesheet" type="text/css" href="/WebUntis/static/2021.3.3/js/untis/styles/main.css">
      </head>
      <body class="untis-bootstrap">
      <!--[if lt IE 9]>
      <div style="background: yellow; padding: 5px;">
          
              
                  <a href="/WebUntis/static/2021.3.3/html/browser-not-supported-de.html" style="text-decoration: none; color: black;">
                      Ihr Browser wird von WebUntis eventuell nicht unterst�tzt - klicken Sie hier f�r weitere Informationen!
                  </a>
              
              
          
      </div>
      <![endif]-->
      
          
      
      
      <script src="/WebUntis/static/2021.3.3/js/socket.io-2.1.1.js"></script>
      
      <div id="app">
          WebUntis wird geladen ...
      </div>
      
      
      <script>
          untis.messages = {};
          function define(nameOrMessages, messages) {
              if (typeof nameOrMessages === "object") {
                  messages = nameOrMessages;
              }
              // Object.assign polyfill wird erst sp�ter geladen. Daher werden die Messages hier direkt eingemischt.
              for (var p in messages) {
                  untis.messages[p] = messages[p];
              }
          }
      </script>
      <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/grupet/nls/de/messages.js"></script>
      
      
      <script type="text/javascript" src="/WebUntis/static/2021.3.3/js/untis/main.js"></script>
      </body>
      </html>```
      posted in Requests
      M
      MajorC
    • RE: MMM-SystemStats (cpu temp/load, fre ram ...)

      Hi,

      is there a good way to shrink the font size and the icon size?

      I tried

      .MMM-SystemStats {
      Font-size: 70%;
      }
      

      but now there are a lot of space between each line.

      Or if I use

      transform: scale(0.90, 0.90);
      

      than the module is moved into the middle of the screen.

      Thank you

      posted in Utilities
      M
      MajorC
    • RE: MMM-bergfex not working

      Thanks for your very fast help. Maybe someone will rewrite this MMM. Winter is coming!

      posted in Troubleshooting
      M
      MajorC
    • RE: MMM-bergfex not working

      And it is working.

      This is important:

      This is an array with strings of the skiareas to display. String must exactly match the name on http://www.bergfex.at/oesterreich/schneewerte/
      
      posted in Troubleshooting
      M
      MajorC
    • RE: MMM-bergfex not working

      well, I have my mirror back, including Bergfex Snow Report. At the moment there is only “loading…” visible.

      I will double check my config.

      Maybe you can include the help to the git? Would be nice to have it working as smooth as the rest in this wonderful project.

      posted in Troubleshooting
      M
      MajorC
    • RE: MMM-bergfex not working

      sorry, I am totaly new to this world, my first Raspberry project.

      
      pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install async --save
      npm WARN MMM-bergfex@ license should be a valid SPDX license expression
      
      + async@3.2.0
      added 1 package from 1 contributor and audited 66 packages in 2.709s
      
      2 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install sys -- save
      npm WARN MMM-bergfex@ license should be a valid SPDX license expression
      
      + sys@0.0.1
      + save@2.4.0
      added 13 packages from 11 contributors and audited 79 packages in 8.763s
      
      2 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $
      
      
      posted in Troubleshooting
      M
      MajorC
    • RE: MMM-bergfex not working

      @sdetweil said in MMM-bergfex not working:

      npm install async --save
      npm install sys – save

      in the MMM-bergfex folder?

      posted in Troubleshooting
      M
      MajorC
    • RE: MMM-bergfex not working

      @sdetweil

      
      pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install cheerio
      npm WARN MMM-bergfex@ license should be a valid SPDX license expression
      
      + cheerio@1.0.0-rc.3
      updated 1 package and audited 65 packages in 5.877s
      
      2 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install
      npm WARN MMM-bergfex@ license should be a valid SPDX license expression
      
      audited 65 packages in 2.257s
      
      2 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $
      
      

      I just did it again, but I am quite sure I already did it before.

      posted in Troubleshooting
      M
      MajorC
    • RE: MMM-bergfex not working
      /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-bergfex/node_helper.js:11:13)
      0|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:786:30)
      0|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
      0|MagicMir |     at Module.load (internal/modules/cjs/loader.js:645:32) {
      0|MagicMir |   code: 'MODULE_NOT_FOUND',
      0|MagicMir |   requireStack: [
      0|MagicMir |     '/home/pi/MagicMirror/modules/MMM-bergfex/node_helper.js',
      0|MagicMir |     '/home/pi/MagicMirror/js/app.js',
      0|MagicMir |     '/home/pi/MagicMirror/js/electron.js',
      0|MagicMir |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
      0|MagicMir |     undefined
      0|MagicMir |   ]
      0|MagicMir | }
      0|MagicMir | [2020-09-27 17:30:56.629] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [2020-09-27 17:30:56.630] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      
      
      posted in Troubleshooting
      M
      MajorC
    • 1
    • 2
    • 15
    • 16
    • 17
    • 18
    • 19
    • 18 / 19