Git Product home page Git Product logo

Comments (17)

krauskopf avatar krauskopf commented on August 11, 2024 1

Made a release (v4.0.3), based on the contributions from @OABsoftware and @dzett. Thanks!
Please give it a try.

from node-red-contrib-car-bmw.

OABsoftware avatar OABsoftware commented on August 11, 2024

Same here.
The https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles returns a 403 error.

from node-red-contrib-car-bmw.

Miki433 avatar Miki433 commented on August 11, 2024

Same Problem since 2 days...
28.5.2022, 12:05:03node: BMW X1 Hybridmsg : error
"Error: Server http statusCode 403"

from node-red-contrib-car-bmw.

OABsoftware avatar OABsoftware commented on August 11, 2024

Please update row 290 of bmw.js to:
'x-user-agent': 'android(SP1A.210812.016.C1);bmw;2.5.2(14945);row',

from node-red-contrib-car-bmw.

Miki433 avatar Miki433 commented on August 11, 2024

Please update row 290 of bmw.js to: 'x-user-agent': 'android(SP1A.210812.016.C1);bmw;2.5.2(14945);row',

worked great, thanks!

from node-red-contrib-car-bmw.

Blodstrupmo1 avatar Blodstrupmo1 commented on August 11, 2024

Please update row 290 of bmw.js to:

      'x-user-agent': 'android(SP1A.210812.016.C1);bmw;2.5.2(14945);row',

Worked here also. Thanks 😃

from node-red-contrib-car-bmw.

Donni1966 avatar Donni1966 commented on August 11, 2024

hmm works not for me:
"Error: Server http statusCode 503"

from node-red-contrib-car-bmw.

OABsoftware avatar OABsoftware commented on August 11, 2024

I found out that the "row" part at the end of the user agent string is the abbreviation of "rest of world".
If your region is North America, "row" should be replaced by "na".
It it is China, it should be "cn".
So the last part of the user agent string needs to be made region dependant.

from node-red-contrib-car-bmw.

Donni1966 avatar Donni1966 commented on August 11, 2024

hi ... are here solutions on the way. or not and i can deinstall the nodes? While i get only loading statistic and specifications. The List not brings me up a empty array.
no details of the mini se

from node-red-contrib-car-bmw.

oemich avatar oemich commented on August 11, 2024

Hi @Donni1966, at least for BMW it is working with the list node. I selected in the List node as Output "as multiple messages, one per car" and receive two messages for my cars. In the message.payload I find most of the needed information in the "properties" Object (e.g. door status, fuel level and combined rangem) and "status" object (e.g. currentMileage).

I cross checked with bimmer_connected and it seems that the user agent 'x-user-agent': 'android(SP1A.210812.016.C1);bmw;2.5.2(14945)', also contains the info of which brand app is requesting data (bmw or mini) maybe there is a check on the API for it?

from node-red-contrib-car-bmw.

Donni1966 avatar Donni1966 commented on August 11, 2024

that's the problem - I get with list and empty array.

no info inside

I cross checked with bimmer_connected and it seems that the user agent 'x-user-agent': 'android(SP1A.210812.016.C1);bmw;2.5.2(14945)', also contains the info of which brand app is requesting data (bmw or mini) maybe there is a check on the API for it?

sorry do not understand this

from node-red-contrib-car-bmw.

oemich avatar oemich commented on August 11, 2024

Hi @Donni1966 ,

can you check if my modification helps? You would need to install the module out of my forked and modified repository: https://github.com/oemich/node-red-contrib-car-bmw if you report that it works, I could incorporate it also here.

I cannot verify it by my own as I have no mini to test.

from node-red-contrib-car-bmw.

Donni1966 avatar Donni1966 commented on August 11, 2024

@oemich i installed via palette the version 0.4.4 and i try a List request -> result: Empty array :-/ or is there a way to install your fork? Do not know exactly how to do this

from node-red-contrib-car-bmw.

oemich avatar oemich commented on August 11, 2024

@Donni1966 you would need to install it differently:

  1. Uninstall todays node
  2. Got to your nodered installation folder in the terminal and perfom npm install https://github.com/oemich/node-red-contrib-car-bmw (https://nodered.org/docs/user-guide/runtime/adding-nodes#installing-with-npm)
  3. Restart nodered to see the newly installed node

Now you can try it ... the node is named the same way as from the original repository here.

from node-red-contrib-car-bmw.

Donni1966 avatar Donni1966 commented on August 11, 2024

puh that's mean I have to delete alle nodes with this config, deinstall and reinstall and configure again. For this I need more time as I have in the moment. it is possible to stop node-red install in the folder and start again?

from node-red-contrib-car-bmw.

oemich avatar oemich commented on August 11, 2024

I just tried it, and yes this would also work.

  • Stop your node Red
  • install the Updated "node" from my repository npm install https://github.com/oemich/node-red-contrib-car-bmw
  • Start your node red and test

Don't forget to install the original package after the test ... same steps as above just replace the npm install step with npm install node-red-contrib-car-bmw

If you confirm that it works with the change, I will create a Pull Request with a configurable option for the manufacturer.

from node-red-contrib-car-bmw.

Donni1966 avatar Donni1966 commented on August 11, 2024

thanx @oemich for the instruction - but no changes. Still and empty array :-/ so, looks like only bmw cars are listed.
so i finally switch to Home Assistant and read the data from there to put in on the dashboard.
The switches like Horn, Climatic on off ans lock system works fine. the charging statistic also.
for me at the moment works fine. Thanx for helping and trying

from node-red-contrib-car-bmw.

Related Issues (20)

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.