Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
fix remaining electric range value
Browse files Browse the repository at this point in the history
  • Loading branch information
hdurdle committed Jul 9, 2019
1 parent 951c141 commit 960a529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -59,3 +59,4 @@ typings/

# next.js build output
.next
bmwtoken.json
2 changes: 1 addition & 1 deletion node_helper.js
Expand Up @@ -48,7 +48,7 @@ module.exports = NodeHelper.create({
self.bmwInfo = {
updateTime: moment.unix(attributes.updateTime_converted_timestamp / 1000).format(),
doorLock: attributes.door_lock_state,
electricRange: Number(attributes.beMaxRangeElectricMile).toFixed(),
electricRange: Number(attributes.beRemainingRangeElectricMile).toFixed(),
fuelRange: Number(attributes.beRemainingRangeFuelMile).toFixed(),
mileage: Number(attributes.mileage).toFixed(),
connectorStatus: attributes.connectorStatus,
Expand Down

0 comments on commit 960a529

Please sign in to comment.