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 after 2.13 update - tentatively resolved

    Scheduled Pinned Locked Moved Troubleshooting
    53 Posts 9 Posters 16.3k Views 9 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 @swvalenti
      last edited by sdetweil

      @swvalenti hm… connection timeout

      it should handle that for sure.
      I will look at the code in a while

      that url worked here just now

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • swvalentiS Offline
        swvalenti Project Sponsor
        last edited by

        Hmm weird, two other updates went fine and this one only has the error shown giving black screen. Ran script again too and didn’t do anything. Restarted pi and nothing still error and black screen.

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

          @swvalenti that calendar problem is from Sept 29. so not relevant now

          can u open the dev window, see the instructions a few messages back

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • K Offline
            Klinge @sdetweil
            last edited by

            @sdetweil you are right. After an npm install it works. But I don´t understand it. Because, I run an update script with git pull && npm install in the MagicMirror Folder.

            Whtatever, after the npm install it works. Is it running now because the electron was rebuilt?

            Thank you for your help.

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

              @Klinge said in Black screen after 2.13 update - tentatively resolved:

              after the npm install it works

              where did u run this npm install?

              that command stinks,

              git pull && npm install
              

              if git pull returns non-0, then the npm install will not be executed

              "&&" is used to chain commands together, such that the next command is run if and only if the preceding command exited without errors
              

              use my script!..

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply Reply Quote 0
              • swvalentiS Offline
                swvalenti Project Sponsor
                last edited by

                This is what the dev console error is…

                /home/pi/MagicMirror…rity-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure
                  protocols.This exposes users of this app to unnecessary security risks.
                  Consider loading the following resources over HTTPS or FTPS. 
                 - http://0.0.0.0:8080/css/main.css
                - http://0.0.0.0:8080/fonts/roboto.css
                - http://0.0.0.0:8080/socket.io/socket.io.js
                - http://0.0.0.0:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
                - http://0.0.0.0:8080/js/defaults.js
                - http://0.0.0.0:8080/config/config.js
                - http://0.0.0.0:8080/vendor/vendor.js
                - http://0.0.0.0:8080/modules/default/defaultmodules.js
                - http://0.0.0.0:8080/js/logger.js
                - http://0.0.0.0:8080/translations/translations.js
                - http://0.0.0.0:8080/js/translator.js
                - http://0.0.0.0:8080/js/class.js
                - http://0.0.0.0:8080/js/module.js
                - http://0.0.0.0:8080/js/loader.js
                - http://0.0.0.0:8080/js/socketclient.js
                - http://0.0.0.0:8080/js/main.js
                - http://0.0.0.0:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
                - http://0.0.0.0:8080/translations/en.json
                - http://0.0.0.0:8080/translations/en.json
                - http://0.0.0.0:8080/modules/default/alert//alert.js
                - http://0.0.0.0:8080/modules/default/alert/notificationFx.js
                - http://0.0.0.0:8080/modules/default/alert/notificationFx.css
                - http://0.0.0.0:8080/vendor/css/font-awesome.css
                - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css
                - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css
                  
                 
                For more information and help, consult
                https://electronjs.org/docs/tutorial/security.
                 This warning will not show up
                once the app is packaged.
                /home/pi/MagicMirror…ity-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
                    Policy set or a policy with "unsafe-eval" enabled. This exposes users of
                    this app to unnecessary security risks.
                 
                For more information and help, consult
                https://electronjs.org/docs/tutorial/security.
                 This warning will not show up
                once the app is packaged.
                
                S 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @swvalenti
                  last edited by sdetweil

                  @swvalenti said in Black screen after 2.13 update - tentatively resolved:

                  Electron Security Warning (Insecure Content-Security-Policy)

                  hm…

                  try this

                  edit ~/MagicMirror/index.html

                  < head>
                  	< title>MagicMirror²< /title>
                  	< meta name="google" content="notranslate" />
                  	< meta http-equiv="Content-type" content="text/html; charset=utf-8" />
                  
                  	< meta name="apple-mobile-web-app-capable" content="yes">
                  	< meta name="apple-mobile-web-app-status-bar-style" content="black">
                  	< meta name="format-detection" content="telephone=no">
                  	< meta name="mobile-web-app-capable" content="yes">
                  	< meta http-equiv="Content-Security-Policy" content="script-src 'self';"> < ---- insert this line without the space after < 
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 1
                  • swvalentiS Offline
                    swvalenti Project Sponsor
                    last edited by

                    Sam, that worked thank you very much!

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

                      @swvalenti i wonder why YOU see it and no one else does…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • swvalentiS Offline
                        swvalenti Project Sponsor
                        last edited by

                        I have no clue on that as all my units run the same hardware and OS

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 2 / 6
                        • 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