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.

    Update MMM

    Scheduled Pinned Locked Moved Solved Troubleshooting
    75 Posts 8 Posters 42.1k Views 9 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.
    • StoffbeuteluweS Offline
      Stoffbeuteluwe Project Sponsor
      last edited by

      patrickhahn@Patricks-Mini MagicMirror % git pull
      Updating 5bf90ae..447c0bf
      Fast-forward
       .eslintrc.json                                     |    1 +
       .github/ISSUE_TEMPLATE.md                          |   21 +-
       .travis.yml                                        |   27 +-
       CHANGELOG.md                                       |   59 +-
       Gruntfile.js                                       |   13 +-
       clientonly/index.js                                |    2 -
       config/config.js.sample                            |   18 +-
       index.html                                         |    2 +-
       installers/dumpactivemodules.js                    |   15 -
       installers/fixuppm2.sh                             |  183 -
       installers/mm.sh                                   |    1 +
       installers/pm2_MagicMirror.json                    |    7 -
       installers/postinstall/postinstall.sh              |    2 -
       installers/raspberry.sh                            |  569 ---
       installers/screensaveroff.sh                       |  101 -
       installers/upgrade-script.sh                       |  361 --
       js/app.js                                          |   11 +-
       js/electron.js                                     |    2 -
       js/loader.js                                       |    6 +-
       js/main.js                                         |   15 +-
       js/module.js                                       |   11 +-
       js/node_helper.js                                  |    4 +-
       js/server.js                                       |   14 +-
       js/socketclient.js                                 |    8 +-
       modules/README.md                                  |  721 ----
       modules/default/alert/README.md                    |   63 +-
       modules/default/calendar/README.md                 |  105 +-
       modules/default/calendar/calendar.js               |    4 +-
       modules/default/calendar/calendarfetcher.js        |   13 +-
       modules/default/calendar/debug.js                  |    2 +-
       .../default/calendar/vendor/ical.js/node-ical.js   |   15 +-
       modules/default/clock/README.md                    |   54 +-
       modules/default/clock/clock.js                     |   58 +-
       modules/default/clock/clock_screenshot.png         |  Bin 30525 -> 0 bytes
       modules/default/clock/clock_styles.css             |   10 +
       modules/default/compliments/README.md              |  148 +-
       modules/default/compliments/compliments.js         |   41 +-
       .../default/compliments/compliments_screenshot.png |  Bin 26157 -> 0 bytes
       modules/default/currentweather/README.md           |   86 +-
       modules/default/currentweather/currentweather.js   |   23 +-
       .../default/currentweather/weather_screenshot.png  |  Bin 38566 -> 0 bytes
       modules/default/helloworld/README.md               |   23 +-
       modules/default/newsfeed/README.md                 |  104 +-
       modules/default/newsfeed/newsfeed.js               |    5 +-
       modules/default/newsfeed/newsfeed_screenshot.png   |  Bin 45375 -> 0 bytes
       modules/default/updatenotification/README.md       |   24 +-
       modules/default/updatenotification/node_helper.js  |   74 +-
       .../updatenotification/updatenotification.js       |    1 +
       modules/default/weather/README.md                  |  117 +-
       modules/default/weather/current.png                |  Bin 8141 -> 0 bytes
       modules/default/weather/forecast.png               |  Bin 16385 -> 0 bytes
       modules/default/weatherforecast/README.md          |   79 +-
       .../weatherforecast/forecast_screenshot.png        |  Bin 86206 -> 0 bytes
       package-lock.json                                  | 4524 +++++++++-----------
       package.json                                       |   21 +-
       run-start.sh                                       |   67 -
       serveronly/index.js                                |    3 +-
       tests/configs/check_config.js                      |   14 +-
       .../modules/compliments/compliments_date.js        |   41 +
       .../modules/weather/forecastweather_default.js     |   46 +-
       .../modules/weather/forecastweather_options.js     |   52 +-
       tests/e2e/modules/compliments_spec.js              |   15 +
       tests/e2e/modules/mocks/weather_current.js         |   98 +-
       tests/e2e/modules/mocks/weather_forecast.js        |  184 +-
       tests/e2e/modules/weather_spec.js                  |   39 +-
       tests/e2e/vendor_spec.js                           |   15 +-
       tests/node_modules/webdriverajaxstub/index.js      |    4 +-
       tests/unit/functions/currentweather_spec.js        |    1 +
       tests/unit/functions/weatherforecast_spec.js       |    1 +
       translations/fi.json                               |    5 +-
       translations/he.json                               |   36 +
       translations/hr.json                               |    2 +-
       translations/pl.json                               |    3 +-
       translations/pt-br.json                            |    5 +-
       translations/tr.json                               |   14 +-
       translations/translations.js                       |   10 +-
       translations/uk.json                               |   36 +
       untrack-css.sh                                     |   11 -
       78 files changed, 2680 insertions(+), 5790 deletions(-)
       mode change 100755 => 100644 CHANGELOG.md
       delete mode 100644 installers/dumpactivemodules.js
       delete mode 100755 installers/fixuppm2.sh
       delete mode 100644 installers/pm2_MagicMirror.json
       delete mode 100644 installers/postinstall/postinstall.sh
       delete mode 100755 installers/raspberry.sh
       delete mode 100755 installers/screensaveroff.sh
       delete mode 100755 installers/upgrade-script.sh
       delete mode 100644 modules/README.md
       delete mode 100644 modules/default/clock/clock_screenshot.png
       delete mode 100644 modules/default/compliments/compliments_screenshot.png
       delete mode 100644 modules/default/currentweather/weather_screenshot.png
       delete mode 100644 modules/default/newsfeed/newsfeed_screenshot.png
       delete mode 100644 modules/default/weather/current.png
       delete mode 100644 modules/default/weather/forecast.png
       delete mode 100644 modules/default/weatherforecast/forecast_screenshot.png
       delete mode 100755 run-start.sh
       create mode 100644 tests/configs/modules/compliments/compliments_date.js
       create mode 100644 translations/he.json
       create mode 100644 translations/uk.json
       delete mode 100755 untrack-css.sh
      patrickhahn@Patricks-Mini MagicMirror % npm install
      npm WARN deprecated @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
      npm WARN ws@7.2.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
      npm WARN ws@7.2.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
      
      npm ERR! path /Users/patrickhahn/MagicMirror/node_modules/.bin/jsonlint
      npm ERR! code EEXIST
      npm ERR! Refusing to delete /Users/patrickhahn/MagicMirror/node_modules/.bin/jsonlint: ../jsonlint/lib/cli.js symlink target is not controlled by npm /Users/patrickhahn/MagicMirror/node_modules/@prantlf/jsonlint
      npm ERR! File exists: /Users/patrickhahn/MagicMirror/node_modules/.bin/jsonlint
      npm ERR! Move it away, and try again.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /Users/patrickhahn/.npm/_logs/2020-04-01T16_02_31_101Z-debug.log
      
      

      i have some errors to…need help please

      thanks

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Stoffbeuteluwe
        last edited by

        @Stoffbeuteluwe erase that jsonlint file, and npm install again

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        StoffbeuteluweS 1 Reply Last reply Reply Quote 0
        • M Offline
          mattx38 @sdetweil
          last edited by

          @sdetweil How can I acknowledge the update anyway (it will overwrite the two files) ?

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @mattx38
            last edited by

            @mattx38 it will not overwrite

            U have to do the two commands I said before

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              mattx38 @sdetweil
              last edited by

              @sdetweil said in Update MMM:

              @mattx38 erase package-lock.json

              Did u modify package.json?

              And git checkout package.json to restore it if u are ok w that

              Ok, I erased the package-lock.json file.
              What command should I use to check package.json ?
              I’m a beginner…

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @mattx38
                last edited by

                @mattx38 do

                cd ~/MagicMirror
                git checkout package.json
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 1
                • StoffbeuteluweS Offline
                  Stoffbeuteluwe Project Sponsor @sdetweil
                  last edited by

                  @sdetweil Perfect Sam thanks…

                  S 1 Reply Last reply Reply Quote 0
                  • M Offline
                    mattx38 @sdetweil
                    last edited by

                    @sdetweil said in Update MMM:

                    @mattx38 do

                    cd ~/MagicMirror
                    git checkout package.json
                    

                    I did it but the command did not return any information.

                    1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @Stoffbeuteluwe
                      last edited by

                      @Stoffbeuteluwe you guys should really use my upgrade script

                      see here https://github.com/sdetweil/MagicMirror_scripts

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                      • M Offline
                        mattx38
                        last edited by mattx38

                        I did the “npm install”.
                        I fixed 2 moderate vulnerabilities and it still remains 8 low severity vulnerabilities.

                        I don’t get if this can have consequences or not.

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @mattx38
                          last edited by

                          @mattx38 don’t worry about the audit stuff… does it run?

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            mattx38
                            last edited by

                            No, the mirror stays black with the mouse arrow in the left upper corner.
                            I did a reboot and a “pm2 restart mm”, but nothing works…

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @mattx38
                              last edited by

                              @mattx38
                              pm2 stop mm
                              cd ~/magicMirror
                              npm start dev
                              alt-spacebar, n to minimize MM,… any messages on the terminal window?
                              select the MM window to reopen, select the console, and scroll up to see if any errors…
                              there is a fatal one somewhere

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                mattx38
                                last edited by mattx38

                                Yes there is an error in red :

                                [2020-04-01 22:06:21.797] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
                                was compiled against a different Node.js version using
                                NODE_MODULE_VERSION 64. This version of Node.js requires
                                NODE_MODULE_VERSION 73. Please try re-compiling or re-installing
                                the module (for instance, using npm rebuild or npm install).

                                and other errors still with PIR module, but the errors are written in white

                                EDIT : I try a “npm rebuild” ?

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @mattx38
                                  last edited by

                                  @mattx38 pir is a pain in the rear… I would disable it in config.js for now

                                  add

                                  disabled:true, 
                                  

                                  after module:“MMM-PIR-Sensor”,

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    mattx38
                                    last edited by

                                    Done.

                                    I did again a “npm start dev” and I have new errors written in red :

                                    [2020-04-01 22:14:46.668] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘/home/pi/MagicMirror/modules/MMM-Hotword/snowboy/lib/node/binding/Release/electron-v6.1-linux-arm/snowboy.node’
                                    Require stack:

                                    • /home/pi/MagicMirror/modules/MMM-Hotword/snowboy/lib/node/index.js
                                    • /home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js
                                    • /home/pi/MagicMirror/js/app.js
                                    • /home/pi/MagicMirror/js/electron.js
                                    • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @mattx38
                                      last edited by

                                      @mattx38 yep, snowboy is broke too… disable MMM-Hotword

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        mattx38
                                        last edited by

                                        This update broke a lot of things… What a pain !

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @mattx38
                                          last edited by sdetweil

                                          @mattx38 for hotword, from the hotword doc, try
                                          in the MMm_Hotword folder

                                          git clone https://github.com/Kitt-AI/snowboy.git
                                          cd snowboy
                                          rm -rf .git
                                          cp -r resources/models ..
                                          npm install -y nan node-pre-gyp
                                          ./node_modules/node-pre-gyp/bin/node-pre-gyp clean configure build
                                          npm install -y
                                          npm install -y electron-rebuild
                                          ./node_modules/.bin/electron-rebuild
                                          

                                          its because electron changed versions… some modules are compiled at certain node and electron versions
                                          if u change the versions (how would u know), then these modules break… Hotword and PIR are two such modules…

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            mattx38
                                            last edited by

                                            Now it is the Jarvis Assitant :

                                            [2020-04-01 22:22:29.776] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Failed to load gRPC binary module because it was not installed for the current system
                                            Expected directory: electron-v6.1-linux-arm-glibc
                                            Found: [electron-v3.1-linux-arm-glibc, node-v64-linux-arm-glibc]
                                            This problem can often be fixed by running “npm rebuild” on the current system
                                            Original error: Cannot find module ‘/home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/node/extension_binary/electron-v6.1-linux-arm-glibc/grpc_node.node’
                                            Require stack:

                                            • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/grpc_extension.js
                                            • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client_interceptors.js
                                            • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/src/client.js
                                            • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/grpc/index.js
                                            • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/google-assistant/components/assistant.js
                                            • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_modules/google-assistant/index.js
                                            • /home/pi/MagicMirror/modules/MMM-AssistantMk2/components/assistant.js
                                            • /home/pi/MagicMirror/modules/MMM-AssistantMk2/node_helper.js
                                            • /home/pi/MagicMirror/js/app.js
                                            • /home/pi/MagicMirror/js/electron.js
                                            • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • 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