Read the statement by Michael Teeuw here.
Black Screen... I have not upgraded the MM2 system software.
-
@earnestrichards sadly nothing here,
SO, we need to open the developers window to see if there are any errors in the front end (modulename.js files)
ctrl-shift-i on the mirror keyboard select the tab labeled console scroll up to see any errors, usually red text
-
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?
-
@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 initiallybut usually the openweather problem doesn’t case a black screen
-
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
-
@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:???
-
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!
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.
-
and it happened… black screen on the Pi4 and MM is still running in the Chrome window on my MacMini.
-
@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 executablechmod +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 thisserverOnly: "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 serverif u need to go back, edit config.js, change serverOnly to false,
then npm run start1