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

    Posts

    Recent Best Controversial
    • RE: Updating MagicMirror from v2.1.3 to v2.5.0

      @justjim1220 … still not working :(… I’m going to rename or move Current MM and install new version … thank you…;)

      posted in Troubleshooting
      C
      chetnaik
    • RE: Updating MagicMirror from v2.1.3 to v2.5.0

      after performing above steps still package.json says version": “2.1.3”

      so my question is did above process upgraded my magicmirror to v2.5.0? ??

      here are more info from package.json file.
      {
      “name”: “magicmirror”,
      “version”: “2.1.3”,
      “description”: “The open source modular smart mirror platform.”,
      “main”: “js/electron.js”,
      “scripts”: {
      “start”: “sh run-start.sh”,
      “install”: “cd vendor && npm install”,
      “install-fonts”: “cd fonts && npm install”,
      “postinstall”: “sh installers/postinstall/postinstall.sh && npm run install-fonts”,
      “test”: “NODE_ENV=test ./node_modules/mocha/bin/mocha tests --recursive”,
      “test:unit”: “NODE_ENV=test ./node_modules/mocha/bin/mocha tests/unit --recursive”,
      “test:e2e”: “NODE_ENV=test ./node_modules/mocha/bin/mocha tests/e2e --recursive”,
      “config:check”: “node tests/configs/check_config.js”
      },
      “repository”: {
      “type”: “git”,
      “url”: “git+https://github.com/MichMich/MagicMirror.git”
      },
      “keywords”: [
      “magic mirror”,
      “smart mirror”,
      “mirror UI”,
      “modular”
      ],
      “author”: “Michael Teeuw”,
      “contributors”: [
      “https://github.com/MichMich/MagicMirror/graphs/contributors”
      ],
      “license”: “MIT”,
      “bugs”: {
      “url”: “https://github.com/MichMich/MagicMirror/issues”
      },
      “homepage”: “https://magicmirror.builders”,
      “devDependencies”: {
      “chai”: “^3.5.0”,
      “chai-as-promised”: “^6.0.0”,
      “current-week-number”: “^1.0.7”,
      “grunt”: “^1.0.3”,
      “grunt-eslint”: “latest”,
      “grunt-jsonlint”: “latest”,
      “grunt-markdownlint”: “^1.0.39”,
      “grunt-stylelint”: “latest”,
      “grunt-yamllint”: “latest”,
      “http-auth”: “^3.1.3”,
      “jshint”: “^2.9.6”,
      “mocha”: “^5.2.0”,
      “mocha-each”: “^1.1.0”,
      “spectron”: “^4.0.0”,
      “stylelint”: “^9.6.0”,
      “stylelint-config-standard”: “latest”,
      “time-grunt”: “latest”
      },
      “dependencies”: {
      “body-parser”: “^1.17.2”,
      “colors”: “^1.1.2”,
      “electron”: “^3.0.2”,
      “express”: “^4.15.3”,
      “express-ipfilter”: “0.3.1”,
      “feedme”: “latest”,
      “helmet”: “^3.6.1”,
      “iconv-lite”: “latest”,
      “mocha-logger”: “^1.0.6”,
      “moment”: “^2.22.2”,
      “request”: “^2.88.0”,
      “rrule-alt”: “^2.2.5”,
      “simple-git”: “^1.73.0”,
      “socket.io”: “^2.1.1”,
      “valid-url”: “latest”,
      “walk”: “latest”
      }
      }

      posted in Troubleshooting
      C
      chetnaik
    • RE: Updating MagicMirror from v2.1.3 to v2.5.0

      Here what I did

      1. sudo apt-get update
      2. sudo apt-get full-upgrade
      3. sudo rpi-update
      4. sudo reboot
        pi@raspi:~ $ node -v
        v10.11.0
        pi@raspi:~ $ apt list nodejs
        Listing… Done
        nodejs/unknown,now 10.11.0-1nodesource1 armhf [installed]
        N: There are 2 additional versions. Please use the ‘-a’ switch to see them.
        pi@raspi:~ $ sudo apt update
        Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
        Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
        Hit:3 https://deb.nodesource.com/node_10.x stretch InRelease
        Reading package lists… Done
        Building dependency tree
        Reading state information… Done
        All packages are up to date.
        pi@raspi:~ $ sudo apt install nodejs
        Reading package lists… Done
        Building dependency tree
        Reading state information… Done
        nodejs is already the newest version (10.11.0-1nodesource1).
        The following packages were automatically installed and are no longer required:
        lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier
        Use ‘sudo apt autoremove’ to remove them.
        0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
        pi@raspi:~ $ node -v
        v10.11.0

      pi@raspi:~/MagicMirror $ npm run config:check

      magicmirror@2.1.3 config:check /home/pi/MagicMirror
      node tests/configs/check_config.js

      Checking file… /home/pi/MagicMirror/config/config.js
      Your configuration file don’t containt syntax error :)
      pi@raspi:~/MagicMirror $ ls -a
      . core .github js package.json splashscreen
      … css .gitignore jsconfig.json package-lock.json tests
      CHANGELOG.md .eslintignore Gruntfile.js LICENSE.md README.md translations
      clientonly .eslintrc.json index.html modules run-start.sh .travis.yml
      config fonts installers node_modules serveronly vendor
      pi@raspi:~/MagicMirror $ sudo git pull && npm install
      fatal: Not a git repository (or any of the parent directories): .git
      pi@raspi:~/MagicMirror $ git stash
      fatal: Not a git repository (or any of the parent directories): .git
      pi@raspi:~/MagicMirror $ fatal: Not a git repository (or any of the parent directories): .git
      -bash: syntax error near unexpected token `(’
      pi@raspi:~/MagicMirror $ ^C
      pi@raspi:~/MagicMirror $ git init
      Initialized empty Git repository in /home/pi/MagicMirror/.git/
      pi@raspi:~/MagicMirror $ git stash
      fatal: bad revision ‘HEAD’
      fatal: bad revision ‘HEAD’
      fatal: Needed a single revision
      You do not have the initial commit yet
      pi@raspi:~/MagicMirror $ sudo git pull && npm install
      fatal: No remote repository specified. Please, specify either a URL or a
      remote name from which new revisions should be fetched.
      pi@raspi:~/MagicMirror $ ^C
      pi@raspi:~/MagicMirror $ git init
      Reinitialized existing Git repository in /home/pi/MagicMirror/.git/
      pi@raspi:~/MagicMirror $ sudo git pull
      fatal: No remote repository specified. Please, specify either a URL or a
      remote name from which new revisions should be fetched.
      pi@raspi:~/MagicMirror $ git remote add origin https://github.com/MichMich/MagicMirror.git
      pi@raspi:~/MagicMirror $ git stash
      fatal: bad revision ‘HEAD’
      fatal: bad revision ‘HEAD’
      fatal: Needed a single revision
      You do not have the initial commit yet
      pi@raspi:~/MagicMirror $ sudo git pull
      remote: Enumerating objects: 25, done.
      remote: Counting objects: 100% (25/25), done.
      remote: Compressing objects: 100% (20/20), done.
      remote: Total 10389 (delta 7), reused 16 (delta 5), pack-reused 10364
      Receiving objects: 100% (10389/10389), 12.11 MiB | 5.68 MiB/s, done.
      Resolving deltas: 100% (5930/5930), done.
      From https://github.com/MichMich/MagicMirror

      • [new branch] develop -> origin/develop

      • [new branch] master -> origin/master

      • [new branch] snyk-fix-zrd9ko -> origin/snyk-fix-zrd9ko

      • [new branch] v1.0.0 -> origin/v1.0.0

      • [new branch] weather-refactor -> origin/weather-refactor

      • [new tag] v2.5.0 -> v2.5.0

      • [new tag] V2.2.1 -> V2.2.1

      • [new tag] v.2.1.3 -> v.2.1.3

      • [new tag] v2.0.0 -> v2.0.0

      • [new tag] v2.0.1 -> v2.0.1

      • [new tag] v2.0.2 -> v2.0.2

      • [new tag] v2.0.3 -> v2.0.3

      • [new tag] v2.0.4 -> v2.0.4

      • [new tag] v2.0.5 -> v2.0.5

      • [new tag] v2.1.0 -> v2.1.0

      • [new tag] v2.1.1 -> v2.1.1

      • [new tag] v2.1.2 -> v2.1.2

      • [new tag] v2.2.0 -> v2.2.0

      • [new tag] v2.2.2 -> v2.2.2

      • [new tag] v2.3.0 -> v2.3.0

      • [new tag] v2.3.1 -> v2.3.1

      • [new tag] v2.4.0 -> v2.4.0

      • [new tag] v2.4.1 -> v2.4.1
        There is no tracking information for the current branch.
        Please specify which branch you want to merge with.
        See git-pull(1) for details.

        git pull

      If you wish to set tracking information for this branch you can do so with:

      git branch --set-upstream-to=origin/<branch> master
      

      pi@raspi:~/MagicMirror $ npm install

      magicmirror@2.1.3 install /home/pi/MagicMirror
      cd vendor && npm install

      audited 5 packages in 2.014s
      found 2 low severity vulnerabilities
      run npm audit fix to fix them, or npm audit for details

      magicmirror@2.1.3 postinstall /home/pi/MagicMirror
      sh installers/postinstall/postinstall.sh && npm run install-fonts

      MagicMirror installation successful!

      magicmirror@2.1.3 install-fonts /home/pi/MagicMirror
      cd fonts && npm install

      audited 1 package in 1.909s
      found 0 vulnerabilities

      audited 2152 packages in 35.461s
      found 65 vulnerabilities (27 low, 27 moderate, 8 high, 3 critical)
      run npm audit fix to fix them, or npm audit for details
      pi@raspi:~/MagicMirror $ ^C
      pi@raspi:~/MagicMirror $ npm audit

                         === npm audit security report ===
      				   found 65 vulnerabilities (27 low, 27 moderate, 8 high, 3 critical) in 2152 scanned packages
      

      run npm audit fix to fix 23 of them.
      41 vulnerabilities require semver-major dependency updates.
      1 vulnerability requires manual review. See the full report for details.
      pi@raspi:~/MagicMirror $ npm audit fix

      phantomjs-prebuilt@2.1.16 install /home/pi/MagicMirror/node_modules/phantomjs-prebuilt
      node install.js

      PhantomJS not found on PATH
      Unexpected platform or architecture: linux/arm
      It seems there is no binary available for your platform/architecture
      Try to install PhantomJS globally
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 (node_modules/phantomjs-prebuilt):
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 install: node install.js
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

      • grunt@1.0.3
      • request@2.88.0
      • jshint@2.9.6
      • mocha-logger@1.0.6
      • socket.io@2.1.1
      • moment@2.22.2
        added 55 packages from 547 contributors, removed 16 packages and updated 36 packages in 126.138s
        fixed 23 of 65 vulnerabilities in 2152 scanned packages
        1 vulnerability required manual review and could not be updated
        4 package updates for 41 vulns involved breaking changes
        (use npm audit fix --force to install breaking changes; or refer to npm audit for steps to fix these manually)
        pi@raspi:~/MagicMirror $ npm audit fix --force
        npm WARN using --force I sure hope you know what you are doing.

      phantomjs-prebuilt@2.1.16 install /home/pi/MagicMirror/node_modules/phantomjs-prebuilt
      node install.js

      PhantomJS not found on PATH
      Unexpected platform or architecture: linux/arm
      It seems there is no binary available for your platform/architecture
      Try to install PhantomJS globally

      electron-chromedriver@2.0.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver
      node ./download-chromedriver.js

      successfully downloaded and extracted!

      electron@3.0.2 postinstall /home/pi/MagicMirror/node_modules/electron
      node install.js

      Downloading tmp-1923-1-SHASUMS256.txt-3.0.2
      [============================================>] 100.0% of 4.74 kB (4.74 kB/s)
      npm WARN grunt-stylelint@0.9.0 requires a peer of stylelint@^8.0.0 but none is installed. You must install peer dependencies yourself.
      npm WARN stylelint-config-recommended@1.0.0 requires a peer of stylelint@^8.0.0 but none is installed. You must install peer dependencies yourself.
      npm WARN stylelint-config-standard@17.0.0 requires a peer of stylelint@^8.0.0 but none is installed. You must install peer dependencies yourself.

      • mocha@5.2.0
      • spectron@4.0.0
      • electron@3.0.2
      • stylelint@9.6.0
        added 674 packages from 887 contributors, removed 60 packages, updated 125 packages and moved 4 packages in 214.794s
        fixed 37 of 38 vulnerabilities in 2324 scanned packages
        1 vulnerability required manual review and could not be updated
        4 package updates for 29 vulns involved breaking changes
        (installed due to --force option)
        pi@raspi:~/MagicMirror $ git status
        On branch master

      Initial commit

      Untracked files:
      (use “git add …” to include in what will be committed)

          .eslintignore
          .eslintrc.json
          .github/
          .gitignore
          .travis.yml
          CHANGELOG.md
          Gruntfile.js
          LICENSE.md
          README.md
          clientonly/
          config/
          core
          css/
          fonts/
          index.html
          installers/
          js/
          jsconfig.json
          modules/
          package-lock.json
          package.json
          run-start.sh
          serveronly/
          splashscreen/
          tests/
          translations/
          vendor/
      

      nothing added to commit but untracked files present (use “git add” to track)
      pi@raspi:~/MagicMirror $ npm run config:check

      magicmirror@2.1.3 config:check /home/pi/MagicMirror
      node tests/configs/check_config.js

      Checking file… /home/pi/MagicMirror/config/config.js
      Your configuration file don’t containt syntax error :)
      pi@raspi:~/MagicMirror $

      posted in Troubleshooting
      C
      chetnaik
    • Updating MagicMirror from v2.1.3 to v2.5.0

      Hi , Is it possible to update MagicMirror from v2.1.3 to v2.5.0 ?
      if yes then how
      because below method is not working on my MM version 2.1.3… please advise

      Updating
      If you want to update your MagicMirror² to the latest version, use your terminal to go to your Magic Mirror folder and type the following command:

      git pull && npm install
      If you changed nothing more than the config or the modules, this should work without any problems. Type git status to see your changes, if there are any, you can reset them with git reset --hard. After that, git pull should be possible.

      posted in Troubleshooting
      C
      chetnaik
    • 1 / 1