From 761ce49d33398575cb9853e262e9e9882622a14f Mon Sep 17 00:00:00 2001 From: TA2k Date: Sun, 19 Nov 2023 19:49:20 +0100 Subject: [PATCH] change fetching trip --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 58afa51..e70a0a2 100644 --- a/main.js +++ b/main.js @@ -2629,7 +2629,7 @@ class VwWeconnect extends utils.Adapter { // error.response && this.log.error(JSON.stringify(error.response.data)); }); } - if (this.config.tripShortTerm == true) { + if (this.config.tripShortTerm == true && !this.blockTrip) { await axios({ method: "get", url: "https://emea.bff.cariad.digital/vehicle/v1/trips/" + vin + "/shortterm", @@ -2661,7 +2661,7 @@ class VwWeconnect extends utils.Adapter { error && error.response && this.log.error(JSON.stringify(error.response.data)); }); } - if (this.config.tripLongTerm == true) { + if (this.config.tripLongTerm == true && !this.blockTrip) { await axios({ method: "get", url: "https://emea.bff.cariad.digital/vehicle/v1/trips/" + vin + "/longterm",