Read the statement by Michael Teeuw here.
MMM-WeConnect - Show data from your electric Volkswagen
-
@ottopaulsen cool!
-
Hi Otto, thanks for making this. But I cant get it to work. MM just keeps restarting when I add this code.
Also, the username and password for weconnect. How do you enter that. Is it just ‘username’ ‘password’? Or do you need the whole <weconnect.username> etc?
Thanks again.
Btw, i removed two of the locations, since i dont need them. Not sure if this breaks anything…
{ module: 'MMM-WeConnect', position: 'top_right', config: { email: 'xxx', password: 'xxx', refreshIntervalSeconds: 180, size: 300, // This is the size of the drawing showDistance: true, showPosition: true, showBatteryPercent: true, showRange: true, showConnectionStatus: true, showDriving: true, showBattery: true, logging: false, // Write some data to console.log() colors: { car: "gray", text: "#ccc", rangeText: "black", chargingSign: "yellow", lightsOn: "yellow", lightsOff: "#222", wheels: "#222" }, batteryColors: [ { upTo: 20, background: "pink", forground: "red", text: "yellow" }, { upTo: 50, background: "pink", forground: "orange", text: "yellow" }, { upTo: 75, background: "#666", forground: "blue", text: "yellow" }, { upTo: 100, background: "#666", forground: "green", text: "yellow" } ], positions: [ {name: "Hjemme", lat: 59.422110, lon: 5.264839, marginMeters: 50} ], homePosition: "Hjemme" } },
-
@ottopaulsen great job, but I can not connect to the portal and login. See Error in Log: at Request.plumbing.callback (/home/pi/MagicMirror/modules/MMM-WeConnect/node_modules/request-promise-core/lib/plumbing.js:87:29)
at Request.RP$callback [as _callback] (/home/pi/MagicMirror/modules/MMM-WeConnect/node_modules/request-promise-core/lib/plumbing.js:46:31)
at self.callback (/home/pi/MagicMirror/modules/MMM-WeConnect/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request.onRequestError (/home/pi/MagicMirror/modules/MMM-WeConnect/node_modules/request/request.js:881:8)
at ClientRequest.emit (events.js:182:13)
at TLSSocket.socketErrorListener (_http_client.js:382:9)
at TLSSocket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
name: ‘RequestError’,
message: ‘Error: unable to verify the first certificate’,
cause:
{ Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1055:34)
at TLSSocket.emit (events.js:182:13)
at TLSSocket._finishInit (_tls_wrap.js:635:8) code: ‘UNABLE_TO_VERIFY_LEAF_SIGNATURE’ },
error:
{ Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1055:34)
at TLSSocket.emit (events.js:182:13)
at TLSSocket._finishInit (_tls_wrap.js:635:8) code: ‘UNABLE_TO_VERIFY_LEAF_SIGNATURE’ },Any idea ?
-
@Andi1927 said in MMM-WeConnect - Show data from your electric Volkswagen:
message: ‘Error: unable to verify the first certificate’,
some certificate error…
-
I see the certifcate error but why the Url to the VW page is correct in the browser there is no error ?