Read the statement by Michael Teeuw here.
MMM-Fuel black screen
-
@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 | }
-
@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 -
@sdetweil Thanks for your help. How can I check if electron is up to date. Possibly that is where the problem lies
-
@Arzeg we use version 19 in this release
at the commandline do
grep version ~/MagicMirror/node_modules/electron/package.json
-
@sdetweil My version is: 6.1.12 how can i update this?
-
@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"
-
@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 onv19.1.0
(notv19.0.15
) -
@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.
-
@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) -
@sdetweil manual with pull and npm install