Read the statement by Michael Teeuw here.
MMM-Tado not working.
-
@Wrangler i don’t know what that means… just now or before?
show me the ~/MagicMirror/installers/upgrade.log -
First time I used you’re script, everything was working fine except the MMM-Tado module after the update.
then I did a fresh install using you’re install script and started from scratch so I don’t think the log will give you the info you need but here it is:pi@MagicMirror:~/MagicMirror/installers $ nano upgrade.log GNU nano 3.2 upgrade.log installers/mm.sh package-lock.json save/restore files selection = n restoring installers/mm.sh from repo restoring package-lock.json from repo test merge result rc='' , if empty, no conflicts executing merge, apply specified merge result rc= 0 Already up to date. processor architecture is armv7l updating MagicMirror runtime, please wait > electron@6.1.7 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js Downloading tmp-2885-0-electron-v6.1.7-linux-armv7l.zip [> ] 0.0% (0 B/s) ^[[1000D^[[0K^[[1A^[[1000D^[[0K^[[1A^[[1000D^[[0KDownloading tmp-2885-0-electron-v6.1.7-linux-armv7l.zip <####> ^[[1000D^[[0K^[[1A^[[1000D^[[0K^[[1A^[[1000D^[[0KDownloading tmp-2885-1-SHASUMS256.txt-6.1.7 [============================================>] 100.0% of 5.56 kB (5.56 kB/s) > magicmirror@2.11.0 install /home/pi/MagicMirror > echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error Installing vendor files ... audited 150 packages in 6.864s found 8 vulnerabilities (7 low, 1 high) run `npm audit fix` to fix them, or `npm audit` for details > magicmirror@2.11.0 postinstall /home/pi/MagicMirror > npm run install-fonts && echo "MagicMirror installation finished successfully! " > magicmirror@2.11.0 install-fonts /home/pi/MagicMirror > echo "Installing fonts ... " && cd fonts && npm install --loglevel=error Installing fonts ... audited 1 package in 0.877s found 0 vulnerabilities MagicMirror installation finished successfully! added 3 packages from 39 contributors, removed 1 package, updated 30 packages and audited 1031 packages in 136.887s 11 packages are looking for funding run `npm fund` for details found 27 vulnerabilities (24 low, 3 moderate) run `npm audit fix` to fix them, or `npm audit` for details npm install completed - do mei 14 20:53:51 CEST 2020 on base fixing sandbox permissions downloading dumpactivemodules script processing dependency changes for active modules with package.json files processing for module MMM-Buienradar please wait ---------------------------------- npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN MMM-Buienradar@1.0.1 No repository field. up to date in 1.353s found 0 vulnerabilities processing complete for module MMM-Buienradar processing for module MMM-NewPIR please wait ---------------------------------- npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 > epoll@3.0.0 install /home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll > node-gyp rebuild make: Map '/home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build' wordt binnengegaan CXX(target) Release/obj.target/epoll/src/epoll.o SOLINK_MODULE(target) Release/obj.target/epoll.node COPY Release/epoll.node make: Map '/home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build' wordt verlaten > MMM-NewPIR@2.3.1 install /home/pi/MagicMirror/modules/MMM-NewPIR > scripts/installer.sh npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm notice created a lockfile as package-lock.json. You should commit this file. + electron-rebuild@1.11.0 updated 1 package and audited 171 packages in 28.741s found 0 vulnerabilities - Searching dependency tree ✔ Rebuild Complete added 171 packages from 120 contributors and audited 171 packages in 127.848s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities processing complete for module MMM-NewPIR processing for module MMM-NOAA3 please wait ---------------------------------- npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm notice created a lockfile as package-lock.json. You should commit this file. added 83 packages from 74 contributors and audited 83 packages in 11.955s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities processing complete for module MMM-NOAA3 processing for module MMM-SystemStats please wait ---------------------------------- npm notice created a lockfile as package-lock.json. You should commit this file. added 1 package from 1 contributor and audited 1 package in 1.621s found 0 vulnerabilities processing complete for module MMM-SystemStats restoring custom.css removing git alias Upgrade ended - do mei 14 20:57:27 CEST 2020 Upgrade started - do mei 14 21:02:17 CEST 2020 system is Linux MagicMirror 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster user requested to force apply changes doing test run = false saving custom.css remote name = origin upgrading from version 2.11.0 to 2.11.0 fetching latest revisions git fetch rc=0 current branch = master On branch master Your branch is up to date with 'origin/master'. 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-lock.json modified: package.json Untracked files: (use "git add <file>..." to include in what will be committed) 0 css/save_custom.css installers/pm2_MagicMirror.json run-start.sh no changes added to commit (use "git add" and/or "git commit -a") there are 2 local files that are different than the master repo package-lock.json package.json save/restore files selection = n restoring package-lock.json from repo restoring package.json from repo test merge result rc='' , if empty, no conflicts executing merge, apply specified merge result rc= 0 Already up to date. processor architecture is armv7l updating MagicMirror runtime, please wait > magicmirror@2.11.0 install /home/pi/MagicMirror > echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error Installing vendor files ... audited 150 packages in 7.296s found 8 vulnerabilities (7 low, 1 high) run `npm audit fix` to fix them, or `npm audit` for details > magicmirror@2.11.0 postinstall /home/pi/MagicMirror > npm run install-fonts && echo "MagicMirror installation finished successfully! " > magicmirror@2.11.0 install-fonts /home/pi/MagicMirror > echo "Installing fonts ... " && cd fonts && npm install --loglevel=error Installing fonts ... audited 1 package in 0.849s found 0 vulnerabilities MagicMirror installation finished successfully! added 3 packages from 3 contributors, removed 20 packages, updated 3 packages and audited 1031 packages in 59.72s 11 packages are looking for funding run `npm fund` for details found 27 vulnerabilities (24 low, 3 moderate) run `npm audit fix` to fix them, or `npm audit` for details npm install completed - do mei 14 21:03:28 CEST 2020 on base fixing sandbox permissions downloading dumpactivemodules script processing dependency changes for active modules with package.json files processing for module MMM-Buienradar please wait ---------------------------------- npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN MMM-Buienradar@1.0.1 No repository field. up to date in 1.384s found 0 vulnerabilities processing complete for module MMM-Buienradar processing for module MMM-NewPIR please wait ---------------------------------- npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 > epoll@3.0.0 install /home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll > node-gyp rebuild make: Map '/home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build' wordt binnengegaan CXX(target) Release/obj.target/epoll/src/epoll.o SOLINK_MODULE(target) Release/obj.target/epoll.node COPY Release/epoll.node make: Map '/home/pi/MagicMirror/modules/MMM-NewPIR/node_modules/epoll/build' wordt verlaten > MMM-NewPIR@2.3.1 install /home/pi/MagicMirror/modules/MMM-NewPIR > scripts/installer.sh npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm notice created a lockfile as package-lock.json. You should commit this file. + electron-rebuild@1.11.0 updated 1 package and audited 171 packages in 23.5s found 0 vulnerabilities - Searching dependency tree ✔ Rebuild Complete added 171 packages from 120 contributors and audited 171 packages in 84.616s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities processing complete for module MMM-NewPIR processing for module MMM-NOAA3 please wait ---------------------------------- npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm notice created a lockfile as package-lock.json. You should commit this file. added 83 packages from 74 contributors and audited 83 packages in 12.286s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities processing complete for module MMM-NOAA3 processing for module MMM-SystemStats please wait ---------------------------------- npm notice created a lockfile as package-lock.json. You should commit this file. added 1 package from 1 contributor and audited 1 package in 3.883s found 0 vulnerabilities processing complete for module MMM-SystemStats restoring custom.css removing git alias Upgrade ended - do mei 14 21:06:07 CEST 2020 Upgrade started - zo mei 17 08:02:04 CEST 2020 system is Linux MagicMirror 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 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 local version 2.11.0 already same as master 2.11.0 restoring custom.css removing git alias Upgrade ended - zo mei 17 08:02:05 CEST 2020 Upgrade started - do mei 21 08:02:38 CEST 2020 system is Linux MagicMirror 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 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 local version 2.11.0 already same as master 2.11.0 restoring custom.css removing git alias Upgrade ended - do mei 21 08:02:39 CEST 2020 Upgrade started - za mei 23 07:56:26 CEST 2020 Upgrade started - za mei 23 07:56:26 CEST 2020 system is Linux MagicMirror 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 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 local version 2.11.0 already same as master 2.11.0 restoring custom.css removing git alias Upgrade ended - za mei 23 07:56:27 CEST 2020 Upgrade started - vr mei 29 23:01:44 CEST 2020 system is Linux MagicMirror 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 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 local version 2.11.0 already same as master 2.11.0 restoring custom.css removing git alias Upgrade ended - vr mei 29 23:01:45 CEST 2020
-
@Wrangler ok, got it…
MMM-Tado has a bug really… it USES stuff but doesn’t document them
const TadoClient = require(“tado-client”);
const logger = require(“mocha-logger”);but there is no package.json, and he loads a previous copy of node_modules in his folder which is now out of synch
so, you need to do these updates manually
cd MMM-Tado rm -rf node_modules rm package-lock.json npm install tado-client --save npm install mocha-logger --save
then you can restart MM and it should work…
my script looks for package.json, and there isn’t one…
-
@sdetweil said in MMM-Tado not working.:
No luck ```
pi@MagicMirror:~/MagicMirror/modules/MMM-Tado $ npm install tado-client --save npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/tado-client - Not found npm ERR! 404 npm ERR! 404 'tado-client@latest' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-05-30T14_54_13_631Z-debug.log pi@MagicMirror:~/MagicMirror/modules/MMM-Tado $
pi@MagicMirror:~/MagicMirror/modules/MMM-Tado $ npm install mocha-logger --save npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) + mocha-logger@1.0.6 removed 3 packages, updated 1 package and audited 1120 packages in 37.011s 74 packages are looking for funding run `npm fund` for details found 3 low severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details pi@MagicMirror:~/MagicMirror/modules/MMM-Tado $
-
@Wrangler yep, looks like he used a private tado-client module… there is a public node-tado-client , but some of the code would have to change…
sorry…
-
Thanks for the effort, I wait for a update or try to live with it :confused_face:
-
@Wrangler I added this topic to the issue already open on the node-modules libraries
https://github.com/WouterEekhout/MMM-Tado/issues/8 -
:thumbs_up:
-
Thanks for the feedback. The master-branch has been updated. After
git pull
, do anpm install
. -
Thanks,
Git pull dit not work.
pi@MagicMirror:~/MagicMirror/modules/MMM-Tado $ git pull remote: Enumerating objects: 20, done. remote: Counting objects: 100% (20/20), done. remote: Compressing objects: 100% (9/9), done. remote: Total 14 (delta 8), reused 9 (delta 5), pack-reused 0 Unpacking objects: 100% (14/14), done. From https://github.com/WouterEekhout/MMM-Tado 7e91b79..59a7fc1 master -> origin/master * [new branch] 2020-june -> origin/2020-june Updating 7e91b79..59a7fc1 error: Your local changes to the following files would be overwritten by merge: MMM-Tado.js Please commit your changes or stash them before you merge. Aborting
But after removing MMM-Tado and reinstalling it works.
Thanks.