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

    Posts

    Recent Best Controversial
    • RE: Add JS Code to the Mirror

      @sdetweil

      so then i throw mpd client folder in trash and follow your
      install instructions?

      because I believe there have been a problem when I first installed mpd_client, I did not been clear where the npm install should been placed, if you read in mpd-client readme.md maybe you understand, english is not my first language, and my linux-fu is below first grade :)

      posted in Troubleshooting
      D
      dnj0104
    • RE: Add JS Code to the Mirror

      yes and and result is

      pi@raspberrypi:~/MagicMirror $ grep version package.json
      	"version": "2.13.0",
      
      posted in Troubleshooting
      D
      dnj0104
    • RE: Add JS Code to the Mirror

      I got version 20.13.0

      from your git command i get output

      pi@raspberrypi:~/MagicMirror $ git checkout modules/node_modules/node_helper/index.js
      error: pathspec 'modules/node_modules/node_helper/index.js' did not match any file(s) known to git
      
      posted in Troubleshooting
      D
      dnj0104
    • RE: Add JS Code to the Mirror

      @sdetweil said in Add JS Code to the Mirror:

      mod_client

      errors folder and file config.js (mmm-mpd) renamed to mod:

      [2020-10-24 00:03:42.600] [ERROR]  WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: NodeHelper is not defined
          at Object.<anonymous> (/home/pi/MagicMirror/modules/mod_client/node_helper.js:4:18)
          at Module._compile (internal/modules/cjs/loader.js:786:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
          at Module.load (internal/modules/cjs/loader.js:645:32)
          at Function.Module._load (internal/modules/cjs/loader.js:560:12)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at loadModule (/home/pi/MagicMirror/js/app.js:134:17)
          at loadNextModule (/home/pi/MagicMirror/js/app.js:169:5)
          at /home/pi/MagicMirror/js/app.js:171:6
      [2020-10-24 00:03:42.601] [LOG]    Loading module helpers ...
      [2020-10-24 00:03:42.602] [LOG]    No helper found for module: alert.
      [2020-10-24 00:03:42.603] [LOG]    Initializing new module helper ...
      [2020-10-24 00:03:42.604] [LOG]    Module helper loaded: updatenotification
      [2020-10-24 00:03:42.605] [LOG]    No helper found for module: clock.
      [2020-10-24 00:03:42.616] [LOG]    Initializing new module helper ...
      [2020-10-24 00:03:42.617] [LOG]    Module helper loaded: calendar
      [2020-10-24 00:03:42.618] [LOG]    No helper found for module: .
      [2020-10-24 00:03:42.619] [LOG]    No helper found for module: currentweather.
      [2020-10-24 00:03:42.620] [LOG]    No helper found for module: weatherforecast.
      [2020-10-24 00:03:42.621] [LOG]    Initializing new module helper ...
      [2020-10-24 00:03:42.621] [LOG]    Module helper loaded: newsfeed
      [2020-10-24 00:03:42.623] [ERROR]  App threw an error during load
      [2020-10-24 00:03:42.625] [ERROR]  ReferenceError: NodeHelper is not defined
          at Object.<anonymous> (/home/pi/MagicMirror/modules/mod_client/node_helper.js:4:18)
          at Module._compile (internal/modules/cjs/loader.js:786:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
          at Module.load (internal/modules/cjs/loader.js:645:32)
          at Function.Module._load (internal/modules/cjs/loader.js:560:12)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at loadModule (/home/pi/MagicMirror/js/app.js:134:17)
          at loadNextModule (/home/pi/MagicMirror/js/app.js:169:5)
          at /home/pi/MagicMirror/js/app.js:171:6
      [2020-10-24 00:03:42.627] [ERROR]  Whoops! There was an uncaught exception...
      [2020-10-24 00:03:42.628] [ERROR]  ReferenceError: NodeHelper is not defined
          at Object.<anonymous> (/home/pi/MagicMirror/modules/mod_client/node_helper.js:4:18)
          at Module._compile (internal/modules/cjs/loader.js:786:30)
      

      ------result---- dark—screen electron just showed black----------

      roll back, Folder named to mod-client and in config.js and mpd_client.js to mod_client.
      Result; electron start with no error all my modules shows, but not mod_client aka mpd_client

      posted in Troubleshooting
      D
      dnj0104
    • RE: Add JS Code to the Mirror

      @sdetweil

      then I got

      [2020-10-23 23:46:08.836] [INFO]   Checking file...  /home/pi/MagicMirror/config/config.js
      [2020-10-23 23:46:09.049] [INFO]   Your configuration file doesn't contain syntax errors :)
      
      posted in Troubleshooting
      D
      dnj0104
    • RE: Add JS Code to the Mirror

      @sdetweil said in Add JS Code to the Mirror:

      npm run config:check

      in magicmirror/modules

      or in magicmirror/modules/mpd-module ?

      Thinks the whole module has to be rebuilt…

      posted in Troubleshooting
      D
      dnj0104
    • RE: Add JS Code to the Mirror

      @Leobo said in Add JS Code to the Mirror:

      Thank You @stro, This work great. Im rename folder MMM-MPD to mod_client and move to MagicMirror module, From MagicMirror/module/mpd_client npm install and work.

      Something like this happens to me, but my module is from user coderpussy @github , pretty new fork, maybe I got some failure from moodeaudio devs, but I dont think, so anyway here is some of my errors.

      if change folder name mmm-mpd to mpd_client errors in MM startup:
      
      alerts in MagicMirror startup:
      WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: NodeHelper is not defined
          at Object.<anonymous> (/home/pi/MagicMirror/modules/mpd_client/node_helper.js:4:18)
          at Module._compile (internal/modules/cjs/loader.js:786:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
          at Module.load (internal/modules/cjs/loader.js:645:32)
          at Function.Module._load (internal/modules/cjs/loader.js:560:12)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
          at loadModule (/home/pi/MagicMirror/js/app.js:134:17)
          at loadNextModule (/home/pi/MagicMirror/js/app.js:169:5)
          at /home/pi/MagicMirror/js/app.js:171:6
      
      change folder name from mmm-mpd to mpd-client:
      Result: No errors in MM-startup but mpd-module does not start.
      
      **Looking for errors in MM-dev tools with folder named to mpd-module>** 
      
      Errors:
      Load script: modules/mpd_client//mpd_client.js
      :8080/modules/mpd_cl…nt//mpd_client.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
      loader.js:186 Error on loading script: modules/mpd_client//mpd_client.js
      
      
      module in mm-config array looks like 
      this.
      
      {
      		module: "mpd_client",
      		position: "top_right",	// This can be any of the regions.
      		config: {
      			  // See 'Configuration options' for more information.
      			hostname:"mpd@moodeaudio@rpi3b+=IPnumber)",
      			port:6600 
      			
      		}
              
           },    
      
      
      posted in Troubleshooting
      D
      dnj0104
    • RE: Big landscape mirror with two displays

      Wait What!

      Do Ikea Toftbyn has spyglass mounted from manufacturer or you just
      used the frame of Toftbyn?

      posted in Show your Mirror
      D
      dnj0104
    • RE: moving configfile and modules

      @sdetweil

      @sdetweil said in moving configfile and modules:

      @dnj0104 i think U can copy the module folders and the config file…

      you ‘should’ do

      rm -rf node_modules
      npm install 
      

      in any module folder that contains a package.json file to insure the various dependencies match the MM as it is installed now

      hmm okey, I move modules and the the config.js fiel from old copy from my windows-pc to my rpi where i will run magicmirror

      After copiyng is made I run:

      rm -rf node_modules
      npm install

      to check if things is okey.
      ps Im a noob, so if you can please explain as I was five year old :)

      posted in Troubleshooting
      D
      dnj0104
    • moving configfile and modules

      Hello!

      My first question here but maybe not last.

      Problem: My rpi3b+ made a crash with a config of a magicmirror I was satisfied with.
      But I was in luck, I made a copy of the home>MagicMirror folder and saved it on my windows-laptop
      I made a fresh install of raspbian buster latest, and yesterday I installed a fresh image of Magicmirror.

      So everything is saved…I believe.

      Question: can I take the modules and everything from my copy of magicmirror that I saved and just drag n drop into the fresh copy of MagicMirror? Or I have to install the Modules again and, just copy the configfiles from the MMcopy. Or is it to start from beginning?

      I ask here first before doing things.
      Help Please…

      Greetings
      David.

      posted in Troubleshooting copy config modules old t
      D
      dnj0104
    • 1 / 1