krauskopf / node-red-contrib-car-bmw

Node-RED nodes for BMW ConnectedDrive
Other
11 stars 8 forks source link

Add unit system selection #18

Closed oemich closed 2 years ago

oemich commented 2 years ago

Hello @krauskopf ,

this pull request fixes #17 as the BMW API sets now the imperial units as default instead of the metric units, as it was before. This behavior change could bee seen in the child attributes of the status Object.

The default if no value is defined is set to "metric". In the config node it is now possible to define the to be used unit system.

I tested it locally not sure what else needs to be done.

Best Regards, Michael

krauskopf commented 2 years ago

Thanks for the PR :-)