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.

    Black Screen... I have not upgraded the MM2 system software.

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 2 Posters 1.8k Views 2 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.
    • earnestrichardsE Offline
      earnestrichards
      last edited by

      I knew about the ctrl-shift-i sequence to see the developers window but I hang my head in shame that I didn’t think about looking at the console log… especially since I’m in the middle of a Udemy JS course!

      These errors appeared multiple times:

      Refused to apply style from 'http://localhost:8080/css/custom.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
      
      api.openweathermap.org/data/2.5/forecast/daily?id=4692400&cnt=40&units=imperial&lang=en&APPID=(myAPIkey):1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
      
      moment-timezone-with-data.js:472 Moment Timezone has no data for America/Houston. See http://momentjs.com/timezone/docs/#/data-loading/.
      logError @ moment-timezone-with-data.js:472
      
      

      I checked the moment.js link and changed the “America/Houston” to “America/Chicago”

      I’m not sure what’s up with the OpenWeatherMap error… Maybe I’m making too many calls? The weather areas on my mirror seem to stay current…

      the next thing for me to do is to search the custom.css file(s) and find the css error… probably misplaced punctuation?

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

        @earnestrichards said in Black Screen... I have not upgraded the MM2 system software.:

        Refused to apply style from ‘http://localhost:8080/css/custom.css’

        no. its not there by default (unless you use my script to install)
        its just an empty file initially

        but usually the openweather problem doesn’t case a black screen

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • earnestrichardsE Offline
          earnestrichards
          last edited by

          The only error now is the custom.css reference.

          The OpenWeatherMap has a yellow warning triangle about my APPID not supporting long term forecasts - and says it is reverting to fallback endpoint. I will check to make sure that I’m using the correct link for my APPID.

          then while I was typing that out above (on my macmini) the mirror halted, the screen went white (like it did when I tried to open the devtools) and when I ctrl-q’ed the terminal had this…

          [12267:1016/181241.288155:ERROR:CONSOLE(24)] "Empty response arrived for script 'devtools://devtools/remote/serve_file/@18cb630b22a61c92d65ba4e4ff2f765dcdf5368b/product_registry_impl/product_registry_impl_module.js'", source: devtools://devtools/bundled/shell.js (24)
          [12267:1016/181241.423121:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423398:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423473:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423541:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423588:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423656:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423703:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423759:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423805:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423864:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423908:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.423983:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.424968:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.425638:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.425754:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.425801:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.425868:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.425912:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.425979:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426024:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426077:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426118:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426172:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426214:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426269:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426311:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426369:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426412:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426468:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426512:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426565:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426607:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426663:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426705:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426760:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426803:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426858:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426900:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.426956:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427002:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427059:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427101:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427157:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427206:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427261:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427303:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427358:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427399:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427457:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.427499:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431191:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431307:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431400:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431450:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431510:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431556:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431616:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431659:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431718:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431758:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431812:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431854:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431911:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.431953:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.432407:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.432460:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.432517:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.432558:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.432612:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.432655:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.432711:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [12267:1016/181241.432766:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: devtools://devtools/bundled/shell.js (109)
          [2020-10-16 18:14:00.014] [LOG]    Shutting down server...
          [2020-10-16 18:14:00.016] [LOG]    Stopping module helper: updatenotification
          [2020-10-16 18:14:00.017] [LOG]    Stopping module helper: calendar
          [2020-10-16 18:14:00.018] [LOG]    Stopping module helper: MMM-AVStock
          [2020-10-16 18:14:00.018] [LOG]    Stopping module helper: newsfeed
          [2020-10-16 18:14:00.019] [LOG]    Stopping module helper: MMM-PiTemp
          [2020-10-16 18:14:00.020] [LOG]    Stopping module helper: MMM-BackgroundSlideshow
          
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @earnestrichards
            last edited by

            @earnestrichards weird… I have seen one or two of those errors over the years…

            if you have address:“0.0.0.0”,
            and ipWhiltelist:[],

            you can connect to the mirror from anywhere in your house with any device that has a browser (hopefully chrome)… if would be interesting if the system was still up…

            i run MM on a mac catalina (virtual machine as I don’t have a real mac), and don’t see anything like this…

            it might be interesting if u run in server mode (npm start server) and then open chrome app to the server port http://localhost:???

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • earnestrichardsE Offline
              earnestrichards
              last edited by

              I finally quit procrastinating and read the config.js instructions, coupled with your comments above… and a few other posts here about the same subject

              Voila! MM2 runs natively on my Pi4 and in Chrome on my MacMini!
              Screen Shot 2020-10-20 at 8.24.13 PM.png

              Now the next time the screen goes black with the cursor visible we’ll be able to see if MM is still running.

              …and thanks again for your help and guidance.

              1 Reply Last reply Reply Quote 1
              • earnestrichardsE Offline
                earnestrichards
                last edited by

                and it happened… black screen on the Pi4 and MM is still running in the Chrome window on my MacMini.

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

                  @earnestrichards cool… so… try running server mode

                  npm start server

                  and then use chromium browser on the pi4

                  i have a config that does all this , i tried to have this as the default setup so one could chnage in config.js and voila… but it wasn’t accepted
                  (I do this on pi 0 as electron doesn’t run there anymore)

                  down load this file to MagicMirror folder
                  https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/run-start.sh
                  make it executable

                  chmod +x run-start.sh
                  

                  edit package. json
                  copy the start line
                  change the word “start” to “start1”
                  looks like this

                  "start1": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
                  

                  this saves the old start command
                  change the right side of the new start to “./run-start,sh”
                  looks like this

                    "start":"./run-start.sh",
                  

                  edit config.js
                  and uncomment this line

                  	// serverOnly:  true/false/"local" ,
                  

                  set to local
                  so it looks like this

                  	serverOnly:  "local" ,
                  

                  now npm start or pm2 start will launch the MM in server mode (no ui)
                  and then launch chromium-browser over it.
                  mac still talks to server

                  if u need to go back, edit config.js, change serverOnly to false,
                  then npm run start1

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 2 / 2
                  • 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