MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    v2.18.0 update gave black screen, then nothing.

    Scheduled Pinned Locked Moved Solved Troubleshooting
    73 Posts 4 Posters 32.5k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @Richard238
      last edited by

      @richard238 added it to me config.js and it doesn’t matter…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Richard238
        last edited by

        @richard238 ok, lets start back somewhere

        save your config.js

        copy the sample back to config.js

        and start

        this should work …

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Richard238
          last edited by

          @richard238 i copied your config above to my system
          and it starts ok…

          my node/npm are

          node -v
          v16.1.0
          npm -v
          7.24.2

          so, lets try that , we will use the node version of node version manager (nvm) called n

          # install n globally
          npm i n -g 
          # install node version 16.1.0
          n i 16.1.0
          # use the setup path from node version install
          PATH="$PATH"
          # verify node and npm versions
          node -v
          npm -v
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            Richard238 @sdetweil
            last edited by

            @sdetweil

            run those from
            pi@magicmirror:~/MagicMirror $

            or

            pi@magicmirror:~ $

            Or, does it not matter?

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @Richard238
              last edited by

              @richard238 does not matter

              not MM specific

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Richard238
                last edited by

                @richard238 did u try the initial config.js

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  Richard238 @sdetweil
                  last edited by

                  @sdetweil

                  No, took me a while to restore one back from archive, but it’s there now, ready to go.

                  
                  /* Magic Mirror Config Sample
                   *
                   * By Michael Teeuw http://michaelteeuw.nl
                   * MIT Licensed.
                   */
                  
                  var config = {
                  	port: 8080,
                  	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
                  
                  	language: 'en',
                  	timeFormat: 24,
                  	units: 'metric',
                  
                  	modules: [
                  		{
                  			module: 'alert',
                  		},
                  		{
                  			module: "updatenotification",
                  			position: "top_bar"
                  		},
                  		{
                  			module: 'clock',
                  			position: 'top_left'
                  		},
                  		{
                  			module: 'calendar',
                  			header: 'US Holidays',
                  			position: 'top_left',
                  			config: {
                  				calendars: [
                  					{
                  						symbol: 'calendar-check-o ',
                  						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                  					}
                  				]
                  			}
                  		},
                  		{
                  			module: 'compliments',
                  			position: 'lower_third'
                  		},
                  		{
                  			module: 'currentweather',
                  			position: 'top_right',
                  			config: {
                  				location: 'New York',
                  				locationID: '',  //ID from http://www.openweathermap.org
                  				appid: 'YOUR_OPENWEATHER_API_KEY'
                  			}
                  		},
                  		{
                  			module: 'weatherforecast',
                  			position: 'top_right',
                  			header: 'Weather Forecast',
                  			config: {
                  				location: 'New York',
                  				locationID: '5128581',  //ID from http://www.openweathermap.org
                  				appid: 'YOUR_OPENWEATHER_API_KEY'
                  			}
                  		},
                  		{
                  			module: 'newsfeed',
                  			position: 'bottom_bar',
                  			config: {
                  				feeds: [
                  					{
                  						title: "New York Times",
                  						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                  					}
                  				],
                  				showSourceTitle: true,
                  				showPublishDate: true
                  			}
                  		},
                  	]
                  
                  };
                  
                  /*************** DO NOT EDIT THE LINE BELOW ***************/
                  if (typeof module !== 'undefined') {module.exports = config;}
                  
                  
                  

                  My versions:

                  pi@magicmirror:~ $ node -v
                  v16.1.0
                  pi@magicmirror:~ $ npm -v
                  7.11.2
                  

                  NPM is different to yours, but OK to try?

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Richard238
                    last edited by sdetweil

                    @richard238 said in v2.18.0 update gave black screen, then nothing.:

                    @sdetweil
                    No, took me a while to restore one back from archive, but it’s there now, ready to go.

                    in the config folder is the config.js.sample file which is what I wanted you to use
                    just to eliminate other things,

                    but

                    cd ~/MagicMirror
                    npm start
                    

                    may have to clean and nom install again as node version changed…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      Richard238 @sdetweil
                      last edited by

                      @sdetweil

                      It’s still throwing the log.log error!

                      pi@magicmirror:~/MagicMirror $ npm start
                      
                      > magicmirror@2.18.0 start
                      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                      
                      App threw an error during load
                      TypeError: Log.log is not a function
                          at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:20:5)
                          at Module._compile (node:internal/modules/cjs/loader:1116:14)
                          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
                          at Module.load (node:internal/modules/cjs/loader:988:32)
                          at Module._load (node:internal/modules/cjs/loader:829:12)
                          at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
                          at Module.require (node:internal/modules/cjs/loader:1012:19)
                          at require (node:internal/modules/cjs/helpers:94:18)
                          at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:4:14)
                          at Module._compile (node:internal/modules/cjs/loader:1116:14)
                      (node:6752) [DEP0025] DeprecationWarning: sys is deprecated. Use util instead.
                      (Use `electron --trace-deprecation ...` to show where the warning was created)
                      A JavaScript error occurred in the main process
                      Uncaught Exception:
                      TypeError: Log.log is not a function
                          at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:20:5)
                          at Module._compile (node:internal/modules/cjs/loader:1116:14)
                          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
                          at Module.load (node:internal/modules/cjs/loader:988:32)
                          at Module._load (node:internal/modules/cjs/loader:829:12)
                          at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
                          at Module.require (node:internal/modules/cjs/loader:1012:19)
                          at require (node:internal/modules/cjs/helpers:94:18)
                          at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:4:14)
                          at Module._compile (node:internal/modules/cjs/loader:1116:14)
                      [6808:0106/162138.316545:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
                      [6828:0106/162138.716857:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
                      
                      
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Richard238
                        last edited by

                        @richard238 ok, fun times…

                        so, do

                        cd ~
                        mv MagicMirror MagicMirror.save
                        git clone  https://github.com/MichMich/MagicMirror.git
                        cd MagicMirror
                        npm install --only=prod
                        cd config
                        cp config.js.sample config.js
                        cd ..
                        

                        then npm start

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        R 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 8
                        • 3 / 8
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy