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 how did u upgrade?

      can u tell me the output of

      node -v
      npm -v

      an ‘attempt’ at a work around

      edit the module node_helper.js

      change the line

       const fs = require('fs/promises')
      

      to

       const fs = require('fs').promises
      

      I opened this issue on module github
      https://github.com/fewieden/MMM-Fuel/issues/99

      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

        Thanks for the fast reply.

        node version: 16.15.1
        npm version: 8.11.0

        Changed the line in the node_helper.js file.

        looks good now, but i need to Update my API key.

        What confuses me a bit is that the other modules are not affected, since I have the node_helper.js file in each module.

        Oh and thank you for opening the issue on github

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

          @Arzeg I don’t know why either … the author is very careful and quite proficient

          glad the workaround worked…

          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 @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
                        • 1
                        • 2
                        • 1 / 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