Giter VIP home page Giter VIP logo

node-red-contrib-car-bmw's People

Contributors

dependabot[bot] avatar dzett avatar jkellerer avatar krauskopf avatar oemich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-red-contrib-car-bmw's Issues

no data in Efficiency request

Hi ,

i don't get data after request from this Efficiency module. I get this in the debug

{"statusCode":404,"requestUrl":"https://ise-bev-prod-emea.bmwgroup.net/bev/vehicle/efficiency/v1/finfinfinfinfin","requestTimestamp":1616015515366,"logTransactionId":"c20ee54c-6a95-455e-a369-fededa96fab2"}

I think it is come today the first time.
Are they changing the output?
cu.

Server send http statusCode 200 on stage 2

When trying to get data using BMW-List (V0.4.7 and 0.4.6) from the USA website I get the error

Error: Server send http statusCode 200 on stage 2

If I enter my incorrect logon details and test again then it will fail at stage 1, so I am confident logon details are correct.

I doubt this is related, but I also have a BMW in the UK, and using the "rest of the world" for region and BMW-List works fine for this account.

Socket hang up

i have set up a server and try to use the list node.
there i get the following error:
"FetchError: request to https://customer.bmwgroup.com/gcdm/oauth/authenticate failed, reason: socket hang up"

do have any solution for me @krauskopf?
gerne auch deutsch

regards ingo

Feature request

Hello,
not really an issue, but don't know where to post it otherwise.
the node-red nodes work perfectly. But I wonder: Would it be possible to set the max AC charging rate directly through node-red?

In the BMW App I can set the max charging rate (AMPS). This would make it very interesting because I could set the Max charging rate to be inline with the amount of Watts my solarpanels are currently producing. As such I would be able to charge the car without taking anything from the grid.

It should be possible, because you can manually set this in the myBMW app.

this would be an amazing feature.

Request - Support for BMW Motorrad possible?

I have this working for our Mini but cannot get it working for a BMW motorbike (BMW Motorrad Connected). It uses the same login portal so I'd hoped it would work but it just returns a "Error: Server http statusCode 404" for GET State. I'm not sure whether it would be possible to add support?

"Error: Couldn't find token in response"

i've this error since yesterday :-(
i tried on different internet connections/locations... same error message
the app on my mobile phone was not updated and is still working

Server http statusCode 403 - only on status node

Since today I have been receiving statusCode 403 on the Get Node. Other nodes work fine.

To reproduce just drag a new get node into a flow - configure it correctly and trigger it over an inject node.

Error:
Error: Server http statusCode 403

The car installed an update today: 11/2023.73 on an i4 eDrive40

Request path contains unescaped characters

beim Starten stürzt node red mit folgendem Protokoll ab:

17 Jan 15:46:38 - [info] Flows gestartet
Token expired, requesting a new one
17 Jan 15:46:38 - [info] [car-bmw-list:BMW Fahrzeuge] Token init completed: 
Token: Zo5U1Y5UbOepZPtqN00p4JE0c5texsFb
TokenType: Bearer
17 Jan 15:46:38 - [info] [car-bmw-get:i3 Service Partner] Token init completed: 
Token: Zo5U1Y5UbOepZPtqN00p4JE0c5texsFb
TokenType: Bearer
17 Jan 15:46:38 - [info] [car-bmw-get:i3 Service Partner] Path: /api/vehicle/servicepartner/v1/WBY1Z41080VZ75329 
17 Jan 15:46:38 - [red] Uncaught Exception:
17 Jan 15:46:38 - TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
    at new ClientRequest (_http_client.js:115:13)
    at Object.request (https.js:289:10)
    at Object.request (/usr/lib/node_modules/node-red/node_modules/agent-base/patch-core.js:25:22)
    at Object.exports.call (/opt/fhem/.node-red/node_modules/node-red-contrib-car-bmw/lib/bmwrequest.js:26:20)
    at onSuccess (/opt/fhem/.node-red/node_modules/node-red-contrib-car-bmw/car-bmw.js:180:24)
    at readTokenData (/opt/fhem/.node-red/node_modules/node-red-contrib-car-bmw/lib/tokenmanager.js:97:5)
    at /opt/fhem/.node-red/node_modules/node-red-contrib-car-bmw/lib/tokenmanager.js:111:7
    at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)

Nach Neustart:

Failed to use existing token from file, error SyntaxError: Unexpected end of JSON input, will request a new one
Failed to use existing token from file, error SyntaxError: Unexpected end of JSON input, will request a new one
Failed to use existing token from file, error SyntaxError: Unexpected end of JSON input, will request a new one
17 Jan 15:50:45 - [warn] [car-bmw-list:BMW Fahrzeuge] Failed to read token:Error: unable to get local issuer certificate
17 Jan 15:50:45 - [warn] [car-bmw-get:i3 Services] Failed to read token:Error: unable to get local issuer certificate
17 Jan 15:50:45 - [warn] [car-bmw-get:i3 Service Partner] Failed to read token:Error: unable to get local issuer certificate
Failed to read file: Error: ENOENT: no such file or directory, open 'currenttoken.json'
Failed to read file: Error: ENOENT: no such file or directory, open 'currenttoken.json'
Failed to read file: Error: ENOENT: no such file or directory, open 'currenttoken.json'
Failed to read file: Error: ENOENT: no such file or directory, open 'currenttoken.json'

in Endlosschleife

Danke für den Support!

Won't save region or password after first configuration

I installed and configured first car. I entered my credentials and region (USA). Clicked update and then deploy. I inject a timestamp and get these errors.

Error: Couldn't find token in response

I then edit the BMW List Node and see that region is set to ROW and password has not been changed.

Feature request - open/close all windows

Its not really an Issues, but at least due to the fact, that there is no possiblity to open/close all windows by the BMW app I think, it could be a nice idea to do this by node red. Maybe its possible.

ECONNREFUSED

HI all,

Many thanks for this work, I've been using it since i got my G20 330e in February 2022 and it's been working great.

I started getting the 404 errors on 0.4.7, I've removed that and installed 0.5.0 and i now get "Error: connect ECONNREFUSED 160.46.245.252:443"

Matt.

http Error 403 when pulling the Status

With Version 0.6.0 I often see the following error:

26.4.2024, 17:34:31node: c28eb9af72a9904c
msg : error
"Error: Server http statusCode 403"

The error comes and goes, in between it works a few times. Always the same flow without changing anything.
Is there a API limit how often the status is allowed to pull in a specific time frame?
At the moment I check the status every 2 minutes.

Thanks for your support!
Stefan

Error: Server http statusCode 400

I'm continuously getting "Error: Server http statusCode 400" as an answer in Node-RED when using the BMW Get node and selecting Services or Service Partner in the Data type. It's rare because I don't get any error when selecting Charging Statistics or Charging Sessions in the Data type and it works well, giving the expected answer.

¿Does anyone know what's going on? I'm using version 0.4.5 with a BMW i3.

Thank you!

Not an issue: feature request

Would it be possible to add an action:

Initiate Charging
If the vehicle is plugged in, but not charging (due to an off peak setting?) it is possible to force the car to charge.

serviceType=CHARGE_NOW

With current focus on energy it would allow to trigger a charging session when there is an excess of solar energy or net capacity is available in these countries where you have capacity penalties.

Much appreciated

charging profiles / departure time

Are the charging profiles no longer available?
Had last used the weekly planner to determine the next planned departure time.

ps: thanks for sharing you work

statusCode 410 Error

Hi
i get may be last two days this error

Error: Server http statusCode 410

when i trigger "last trip" o "all trips"

any idea ?

if needful i can try to provide with al log file ...

byby, Michael

Reopen Feature Request #28 because does not work on iX3

I tried the latest version on our BMW iX3. Only some features work, most do not.
For 'Stop Charging' and 'Start Charging' I get "Error: Server http statusCode 500: Internal Server Error"
For 'Change Charging Settings' the command seems to be accepted, but nothing changes in the car. For example I request to change to 80% max charging level and 6 Amp charging, the response is: { eventId: "db203faf-28f5-42c0-927c-2b0e22…", creationTime: "2023-08-16T08:44:42.44409Z" }
If I request the 'Charging Profile' the response is "Error: Server http statusCode 500"
'State', 'Charging Statistics', 'Charging Sessions' all work as expected.

Distances in miles instead of km

It seems that the BMW API changed its defaulting. In the Response from the "List" node I get units in imperial format ("mi" instead of "km" and "gal" instead of "l"). It seems that only the "Status" element with its sub elements is affected, the "properties" element is still metric.

Example from msg.payload.status:
{"lastUpdatedAt":"2022-06-14T06:14:51Z","currentMileage":{"mileage":4970,"units":"mi","formattedMileage":"4,970"}, ...}

Affected elements are:

  • currentMileage
  • requiredServices
  • fuelIndicators

I found a related issue and fix on bimmerconnected/bimmer_connected#449

Unexpected end of JSON Input

Hello, thank you for your work on this code!

I was trying to implement but am getting the following error message:

Failed to parse data , error SyntaxError: Unexpected end of JSON input

the node red console output this:

24 Apr 15:32:09 - [info] [car-bmw-list:38ad96f9.6993fa] Token init completed: 

Token: **REDACTED**

TokenType: Bearer

24 Apr 15:32:09 - [warn] [car-bmw-list:38ad96f9.6993fa] Failed to parse data , error SyntaxError: Unexpected end of JSON input

this is for a USA based BMW connected drive account. If there's any additional details that I can provide please let me know.

thank you.

SyntaxError: Unexpected token = (line:27)

Hi
Just tried to use this and when installing via Node-red pallette manager the install reports

SyntaxError: Unexpected token = (line:27)

Which if I then deploy a it stops all flows from working due to the error.

crashes with "TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters"

25 May 19:36:28 - [info] Starting flows
25 May 19:36:28 - [info] Started flows
25 May 19:36:29 - [info] Server now running at http://127.0.0.1:1880/
25 May 19:36:29 - [red] Uncaught Exception:
25 May 19:36:29 - TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
at new ClientRequest (_http_client.js:115:13)
at Object.request (https.js:281:10)
at Object.request (/usr/lib/node_modules/node-red/node_modules/agent-base/patch-core.js:23:20)
at Object.exports.call (/home/pi/.node-red/node_modules/node-red-contrib-car-bmw/lib/bmwrequest.js:26:20)
at onSuccess (/home/pi/.node-red/node_modules/node-red-contrib-car-bmw/car-bmw.js:180:24)
at readTokenData (/home/pi/.node-red/node_modules/node-red-contrib-car-bmw/lib/tokenmanager.js:97:5)
at /home/pi/.node-red/node_modules/node-red-contrib-car-bmw/lib/tokenmanager.js:111:7
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
nodered.service: main process exited, code=exited, status=1/FAILURE
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool...

Getting Error: connect ECONNREFUSED

With 0.4.6 the car-bmw-get node receives "Getting Error: connect ECONNREFUSED" for most data types. Only charging statistics and charging sessions works. Car is a 2017 i3

Error attempting to authenticate

Getting an error 'ENOENT: no such file or directory, open 'currenttoken.json''
Failed to read token: Couldn't find token in response

I've tried the default URL as well as 'connecteddrive.bmwusa.com'

Error: Server http statusCode 503

Since a couple of days I am receiving statusCode 503 with version 0.4.1. Has BMW again changed anything? Are others getting this error too?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.