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.

    MMM-Fuel black screen

    Scheduled Pinned Locked Moved Solved Troubleshooting
    20 Posts 4 Posters 1.8k 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 @Arzeg
      last edited by

      @Arzeg also, the particular library is not used in many modules, so would not affect more than 2 or 3 out of hundreds

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      ArzegA 1 Reply Last reply Reply Quote 0
      • ArzegA Offline
        Arzeg @sdetweil
        last edited by

        @sdetweil Okay.

        Unfortunately, there is still an error with the workaround. I have requested a new API key (which works by calling it from the address bar of a browser) but now I get an error message from the module that the API key has expired.

        0|mm     | MMM-Fuel: Failed to retrieve prices FetchError: request to https://creativecommons.tankerkoenig.de/json/list.php?lat=51.40488&lng=8.06148&rad=5&type=all&apikey=xxxxxx-xxxxx-xxxxx-xxxxx&sort=dist failed, reason: certificate has expired
        0|mm     |     at ClientRequest.<anonymous> (/home/pi/MagicMirror/modules/MMM-Fuel/node_modules/node-fetch/lib/index.js:1491:11)
        0|mm     |     at ClientRequest.emit (events.js:200:13)
        0|mm     |     at TLSSocket.socketErrorListener (_http_client.js:402:9)
        0|mm     |     at TLSSocket.emit (events.js:200:13)
        0|mm     |     at emitErrorNT (internal/streams/destroy.js:91:8)
        0|mm     |     at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
        0|mm     |     at processTicksAndRejections (internal/process/task_queues.js:84:9) {
        0|mm     |   message: 'request to ' +
        0|mm     |     'https://creativecommons.tankerkoenig.de/json/list.php?lat=51.40488&lng=8.06148&rad=5&type=all&apikey=xxxxxxx-xxxxx-xxxxx-xxxxx-xxxxx&sort=dist ' +
        0|mm     |     'failed, reason: certificate has expired',
        0|mm     |   type: 'system',
        0|mm     |   errno: 'CERT_HAS_EXPIRED',
        0|mm     |   code: 'CERT_HAS_EXPIRED'
        0|mm     | }
        
        S 1 Reply Last reply Reply Quote 1
        • S Offline
          sdetweil @Arzeg
          last edited by sdetweil

          @Arzeg said in MMM-Fuel black screen:

          reason: certificate has expired

          i don’t know how to fix that one

          that is the server side certificate required to make https: work

          there was a bug at one time (4 releases ago) where the runtime(electron) mis handled certificates, but we put a fix in for that

          I opened this issue
          https://github.com/fewieden/MMM-Fuel/issues/100
          also opened on in MM
          https://github.com/MichMich/MagicMirror/issues/2924

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          ArzegA 1 Reply Last reply Reply Quote 1
          • ArzegA Offline
            Arzeg @sdetweil
            last edited by

            @sdetweil Thanks for your help. How can I check if electron is up to date. Possibly that is where the problem lies

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

              @Arzeg we use version 19 in this release

              at the commandline do

              grep  version ~/MagicMirror/node_modules/electron/package.json
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              ArzegA 1 Reply Last reply Reply Quote 0
              • ArzegA Offline
                Arzeg @sdetweil
                last edited by

                @sdetweil My version is: 6.1.12 how can i update this?

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

                  @Arzeg eh?

                  can’t be

                  should be this

                  grep  version ~/MagicMirror/node_modules/electron/package.json
                    "version": "19.0.15",
                  

                  the release upgrade moved us from 17 to 19 (I am incorrect here, see later posts)

                  hm… how did u upgrade?

                  manual or my script?

                  lets check the package.json requested version

                  grep \"electron\": ~/MagicMirror/package.json 
                  		"electron": "^19.0.15"
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  ArzegA 1 Reply Last reply Reply Quote 0
                  • karsten13K Online
                    karsten13
                    last edited by

                    @sdetweil said in MMM-Fuel black screen:

                    the release upgrade moved us from 17 to 19

                    no, we were already on v19 with release v2.20.0, now we are on v19.1.0 (not v19.0.15)

                    1 Reply Last reply Reply Quote 1
                    • ArzegA Offline
                      Arzeg @sdetweil
                      last edited by sdetweil

                      @sdetweil ehm … i copied your command:

                      grep  version ~/MagicMirror/node_modules/electron/package.json
                        "version": "6.1.12",
                      

                      But that’s weird, I completely rebuilt the mirror about half a year ago. I can’t imagine that in that time the versions have moved from 6 to 19.

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

                        @Arzeg weird try this updated

                        grep  version /home/pi/MagicMirror/node_modules/electron/package.json
                        "electron": "^6.1.12"
                        

                        please advise how you upgraded

                        manual (git pull & npm install )
                        or automated (my script)

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        ArzegA 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