Read the statement by Michael Teeuw here.
Issues after update - restoring?
-
@nakulbende said in Issues after update - restoring?:
[10:59:56.969] [ERROR] TypeError: PythonShell.run is not a function
at Class.setCreds (/home/pi/MagicMirror/modules/MMM-fitbit/node_helper.js:32:15)some error with the fitbit module…
-
Upgrade started - Sun Jan 19 15:52:57 EST 2020 system is Linux magicmirror 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster user requested to apply changes doing test run = false saving custom.css remote name = origin upgrading from version 2.9.0 to 2.10.1 fetching latest revisions git fetch rc=0 current branch = master On branch master Your branch is behind 'origin/master' by 2836 commits, and can be fast-forwarded. (use "git pull" to update your local branch) Changes to be committed: (use "git reset HEAD <file>..." to unstage) deleted: css/custom.css Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: package.json Untracked files: (use "git add <file>..." to include in what will be committed) 0 core css/save_custom.css there are 1 local files that are different than the master repo package.json save/restore files selection = y Saved working directory and index state WIP on master: 500147e Merge pull request #1776 from MichMich/develop test merge result rc='' , if empty, no conflicts executing merge, apply specified merge result rc= 0 Updating 500147e..5bf90ae Fast-forward .gitignore 6 - .snyk 14 - .travis.yml 8 +- CHANGELOG.md 33 +- README.md 210 +- config/config.js.sample 7 +- css/custom.css 14 - installers/dumpactivemodules.js 15 + installers/fixuppm2.sh 183 + installers/raspberry.sh 560 ++- installers/screensaveroff.sh 101 + installers/upgrade-script.sh 361 ++ js/app.js 6 + js/main.js 17 +- .../node_helper/index.js => js/node_helper.js 2 +- js/server.js 2 +- modules/default/calendar/calendar.js 1 + modules/default/calendar/calendarfetcher.js 7 +- modules/default/calendar/debug.js 4 +- modules/default/compliments/compliments.js 39 +- modules/default/weatherforecast/weatherforecast.js 4 +- package-lock.json 4187 +++++++++++--------- package.json 17 +- run-start.sh 64 +- tests/e2e/modules/weather_spec.js 138 +- tests/e2e/vendor_spec.js 5 +- untrack-css.sh 2 +- vendor/package-lock.json 2 +- 28 files changed, 3652 insertions(+), 2357 deletions(-) delete mode 100644 .snyk delete mode 100644 css/custom.css create mode 100644 installers/dumpactivemodules.js create mode 100755 installers/fixuppm2.sh mode change 100644 => 100755 installers/raspberry.sh create mode 100755 installers/screensaveroff.sh create mode 100755 installers/upgrade-script.sh rename modules/node_modules/node_helper/index.js => js/node_helper.js (98%) mode change 100644 => 100755 run-start.sh processor architecture is armv7l updating MagicMirror runtime, please wait > console-stamp@0.2.9 postinstall /home/pi/MagicMirror/node_modules/console-stamp > node ./msg.js Attention Console-stamp version 3.0.0 Release Candidate is out. Install by using the tag '@next'. NB: Breaking changes. For more details goto: https://www.npmjs.com/package/console-stamp/v/next > magicmirror@2.10.1 install /home/pi/MagicMirror > cd vendor && npm install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) audited 2191 packages in 12.474s 1 package is looking for funding run `npm fund` for details found 0 vulnerabilities > magicmirror@2.10.1 postinstall /home/pi/MagicMirror > sh untrack-css.sh && sh installers/postinstall/postinstall.sh && npm run install-fonts [32mMagicMirror installation successful! > magicmirror@2.10.1 install-fonts /home/pi/MagicMirror > cd fonts && npm install audited 1 package in 1.105s found 0 vulnerabilities added 6 packages from 12 contributors and audited 3684 packages in 55.242s 14 packages are looking for funding run `npm fund` for details found 0 vulnerabilities npm install completed - Sun Jan 19 15:54:14 EST 2020 on base processing dependency changes for active modules with package.json files processing for module MMM-Buller please wait ---------------------------------- npm WARN Invalid version: "1.0" npm WARN MMM-Buller No description npm WARN MMM-Buller No repository field. npm WARN MMM-Buller No README data npm WARN MMM-Buller No license field. up to date in 0.866s found 0 vulnerabilities processing complete for module MMM-Buller processing for module MMM-DarkSkyForecast please wait ---------------------------------- audited 12091 packages in 15.608s found 1 low severity vulnerability run `npm audit fix` to fix them, or `npm audit` for details processing complete for module MMM-DarkSkyForecast processing for module MMM-DailyPokemon please wait ---------------------------------- npm WARN deprecated time-grunt@2.0.0: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates. npm WARN notsup Unsupported engine for eslint@6.8.0: wanted: {"node":"^8.10.0 || ^10.13.0 || >=11.10.1"} (current: {"node":"9.11.2","npm":"6.13.4"}) npm WARN notsup Not compatible with your version of node/npm: eslint@6.8.0 npm WARN stylelint-config-standard@19.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself. npm WARN grunt-stylelint@0.13.0 requires a peer of stylelint@^12.0.0 but none is installed. You must install peer dependencies yourself. npm WARN stylelint-config-recommended@3.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself. npm WARN MMM-DailyPokemon@1.0.0 No repository field. added 225 packages from 138 contributors and audited 432 packages in 39.173s 3 packages are looking for funding run `npm fund` for details found 0 vulnerabilities processing complete for module MMM-DailyPokemon processing for module MMM-Bring please wait ---------------------------------- audited 6 packages in 1.008s found 0 vulnerabilities processing complete for module MMM-Bring processing for module MMM-MyCommute please wait ---------------------------------- npm WARN grunt-stylelint@0.13.0 requires a peer of stylelint@^12.0.0 but none is installed. You must install peer dependencies yourself. npm WARN stylelint-config-recommended@3.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself. npm WARN stylelint-config-standard@19.0.0 requires a peer of stylelint@>=10.1.0 but none is installed. You must install peer dependencies yourself. audited 3140 packages in 19.219s 14 packages are looking for funding run `npm fund` for details found 3 vulnerabilities (1 low, 2 high) run `npm audit fix` to fix them, or `npm audit` for details processing complete for module MMM-MyCommute processing for module MMM-pihole-stats please wait ---------------------------------- npm ERR! code EJSONPARSE npm ERR! file /home/pi/MagicMirror/modules/MMM-pihole-stats/package.json npm ERR! JSON.parse Failed to parse json npm ERR! JSON.parse Unexpected token ] in JSON at position 271 while parsing near '...", npm ERR! JSON.parse "Pi-Hole", npm ERR! JSON.parse ], npm ERR! JSON.parse "author": "shey...' npm ERR! JSON.parse Failed to parse package.json data. npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-01-19T20_55_54_012Z-debug.log processing complete for module MMM-pihole-stats restoring custom.css removing git alias we stashed a set of files that appear changed from the latest repo versions. you should review them Upgrade ended - Sun Jan 19 15:55:54 EST 2020
-
@nakulbende said in Issues after update - restoring?:
can u post the package.json file from the MMM-pihole-stats module folder
-
{ "name": "mmm-pihole-stats", "version": "1.0.0", "description": "Pi-Hole stats for MagicMirror2", "repository": { "type": "git", "url": "git+https://github.com/sheyabernstein/mmm-pihole-stats.git" }, "keywords": [ "MagicMirror", "Pi-Hole", ], "author": "sheyabernstein", "license": "MIT", "bugs": { "url": "https://github.com/sheyabernstein/mmm-pihole-stats/issues" }, "homepage": "https://github.com/sheyabernstein/mmm-pihole-stats#readme" }
-
remove the trailing comma
"Pi-Hole", // < -- here
then go to the module folder and do
npm install
but I don’t see pihole-stats starting in the startup… but it is listed as not disabled in config.js
(can u show me its config.js entry)for MMM-GoogleFit module, it looks like
: Cannot read property ‘startOnMonday’ of undefined
that property is not defined in the config.js module entry -
@sdetweil Thank you so much for your time. If you are ever in Boston area, please let me buy you dinner. You have been a huge help and a great teacher.
I think I fixed the pihole-stats thing as you said. Here is the config.json entry
// Pihole stats { module: 'MMM-pihole-stats', position: 'bottom_bar', config: { apiURL: 'http://pi.hole/admin/api.php' } },
-
@nakulbende cool, thanks for the feedback… are you running ok now?
-
I am! It ran overnight without crashing, as soon as I disabled fitbit. Sad that I cant use it.
I am still having issues with ssh. I ran your update script again, but it said it is already on new version. Did my update go well, except that stupid error pi-hole stats threw?
-
@nakulbende yes, I think update worked…
I posted a link in the other topic about a new fitbit module
u could try to do the update again use ‘force’, instead of ‘apply’
-
I saw that - the new fitbit module looks great, I am going to try it later today. Thanks!