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

    Posts

    Recent Best Controversial
    • RE: Can't upgrade MM 2.7.0 on Raspberry Pi Zero W

      @tjk031 edit the package.json and change the electron version from ^3.0.13 to ^2.0.4

      then erase node_modules

      rm -rf node_modules
      

      and then

      npm install 
      

      again

      posted in Troubleshooting
      S
      sdetweil
    • RE: Beginner mistakes

      @bhepler there is an ongoing problem w custom.css being overwritten.

      My new upgrade script saves and restores

      posted in Troubleshooting
      S
      sdetweil
    • RE: MMM-network-signal module ALWAYS displays message text

      @MMush that needs to be in the config block

      {
      module:
      position:
        config:{
            showMessage: false
        }
      },
      
      posted in Troubleshooting
      S
      sdetweil
    • RE: Help figuring out what portion of this code is erroring out?

      @stalker401 for the future, all u need to do is add

      disabled: true,

      To the module definition

      posted in Troubleshooting
      S
      sdetweil
    • new script to install/fix PM2 config for start on boot

      i have just created a script for pm2 setup only…

      bash -c  "$(curl -sL  https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)"
      

      this will remove any current MM definition and create a new one
      install pm2 if need be, and set it up for restart on boot…

      I also replicated this code in the installer to fix the problems there

      all these scripts (raspberry.sh, update-script.sh and fixuppm2.sh) now create log files of their processing

      let me know how it goes…

      posted in Troubleshooting
      S
      sdetweil
    • RE: new script to install/fix PM2 config for start on boot

      @sdetweil said in new script to install/fix PM2 config for start on boot:

      bash -c “$(curl -sL https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)”

      i added a couple fixes in case pm2 was already installed but didn’t work…

      posted in Troubleshooting
      S
      sdetweil
    • RE: Magic Mirror wont start

      @everybodyfloats try my updated installer.

      Rename the MagicMirror folder out of the way first

      https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer

      posted in Troubleshooting
      S
      sdetweil
    • RE: Raspian buster & MM 2.8

      @buzzkc Use my new scripts. Search for fixuppm2

      posted in Troubleshooting
      S
      sdetweil
    • RE: MagicMirror won't start with newest build

      @roooooony
      can you do

      ls /usr/lib/arm-linux-gnueabihf/libnss3.so -laF
      and
      ls /lib/arm-linux-gnueabihf/libdbus-1.so.3 -laF
      

      mine are dated aug 22 and Jun 9 (libdbus-1.so.3.19.11) respectively

      and a thing to test out
      rename the ~/MagicMirror/node_modules/electron folder to some other name
      then do

      cd ~/MagicMirror
      npm install electron@6.0.12
      

      then try to start MagicMirror

      posted in Troubleshooting
      S
      sdetweil
    • RE: Was working fine, now just a blank screen

      @davidkmcw said in Was working fine, now just a blank screen:

      Error: Cannot find module 'node_helper

      that thing again

      do

      cd ~/MagicMirror
      git checkout  modules/node_modules/node_helper/index.js
      

      this was caused by doing an npm install in a folder that did NOT have a package.json file

      posted in Troubleshooting
      S
      sdetweil
    • RE: Black Screen: "cannot find module 'node_helper'"

      @dankerthrone said in Black Screen: "cannot find module 'node_helper'":

      Cannot find module ‘node_helper’

      u did an npm install in a folder that had no package.json file I think

      workaround do

      cd ~/MagicMiror
      git checkout modules/node_modules/node_helper/index.js
      
      posted in Troubleshooting
      S
      sdetweil
    • creating a logger to capture module console.log/Log.log output

      I have been fighting some crashes for a while, but using the dev window doesn’t help. it dies when Electron dies…

      I found this logger, and it has helped a LOT…

      thought others would be interested…

      you put the javascript in a file (I used js/logger.js)
      and then add the two lines to the index.html file (change the path/name of the logger.js file to match what you do)

      https://stackoverflow.com/questions/55032227/tips-on-solving-devtools-was-disconnected-from-the-page-and-electron-helper-di/56111557#56111557

      the log file will be in ~/.config/Electron/logs
      (note the leading dot on config)

      posted in Troubleshooting
      S
      sdetweil
    • RE: Can someone do the coding for me? $$

      @Hellonoonan I am willing to discuss. send me a better description. My email is my user ID here on Gmail.

      We can also chat on discord.

      posted in Troubleshooting
      S
      sdetweil
    • RE: Can't get a module to update

      @valid8r you only need to update the module… the mm update does NOT update any non-default modules…

      go to the module folder

      cd~/MagicMirror/modules/MMM-Holidaylights
      git pull
      

      if it has a package.json file then in the module folder do

      npm install
      
      posted in Troubleshooting
      S
      sdetweil
    • RE: Two Instance of MagicMirror

      @KalboDave
      pm2 stop 0
      pm2 delete 0

      posted in Troubleshooting
      S
      sdetweil
    • RE: Something went wrong after updating MM

      @DæmonEyes and you have to do

      npm install
      

      In the MagicMirror folder too

      posted in Troubleshooting
      S
      sdetweil
    • RE: Can't install; trouble with nodejs and npm

      @bm erase the MagicMirror folder and use my install script from here
      https://github.com/sdetweil/MagicMirror_scripts

      Node and npm are way downlevel.

      npm ERR! node -v v0.10.29
      npm ERR! npm -v 1.4.21
      

      current node is 10.17 or higher
      current npm is 6.x

      The automated install script fixes that

      posted in Troubleshooting
      S
      sdetweil
    • RE: Black screen on start up of Magic Mirror

      @bkrand95 if u comment out a module, you must comment out the braces too,
      Not like this

      {
      //  module : "compliments"'
      //
      },
      

      That leaves an empty entry in the modules array. Thus the problem

      You can also disable a module, by adding

      disabled: true,
      

      After the module: statement without commenting anything out

      posted in Troubleshooting
      S
      sdetweil
    • RE: have 2 instances of newsfeed

      @chassain-0 because the copied module is in the default folder, but NOT in the list of default modules
      you have to use the folder name in front of the module name

      module: "default/newsfeed2",
      

      works for me

      posted in Troubleshooting
      S
      sdetweil
    • RE: Update the mirror for the first time in six months, won't start now

      @redink can I ask what device u are loading on? Pi 3?

      in addition to what @Stoffbeuteluwe posted, I suggest you use my updater script from
      https://github.com/sdetweil/MagicMirror_scripts

      upgrade-script.sh will do the git pull and npm install, and refresh npm setup for any modules that might need it
      it should handle all the work… and give you a trial run of all that…

      only applying changes if u request them

      give it a try this works on Mac as well

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
      

      no changes are made to the local repo or the working copy

      if you WANT to actually apply the changes do

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
      

      if you have already done the git pull, you will need to use force to get the script update the same version

      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
      

      there is a log file (upgrade.log) in the MagicMirror/installers folder…

      posted in Troubleshooting
      S
      sdetweil
    • 1
    • 2
    • 6
    • 7
    • 8
    • 9
    • 10
    • 86
    • 87
    • 8 / 87