-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from Hacksore/develop
v6.0.0-alpha1
- Loading branch information
Showing
25 changed files
with
619 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"status": { | ||
"lastStatusDate": "20210118153031", | ||
"airCtrlOn": false, | ||
"engine": false, | ||
"doorLock": false, | ||
"doorOpen": { | ||
"frontLeft": 0, | ||
"frontRight": 0, | ||
"backLeft": 0, | ||
"backRight": 0 | ||
}, | ||
"trunkOpen": false, | ||
"airTempUnit": "C", | ||
"airTemp": { | ||
"value": "00H", | ||
"unit": 0 | ||
}, | ||
"defrost": false, | ||
"acc": false, | ||
"evStatus": { | ||
"batteryCharge": false, | ||
"batteryStatus": 39, | ||
"batteryPlugin": 0, | ||
"remainTime2": { | ||
"etc1": { | ||
"value": 0, | ||
"unit": 1 | ||
}, | ||
"etc2": { | ||
"value": 0, | ||
"unit": 1 | ||
}, | ||
"etc3": { | ||
"value": 0, | ||
"unit": 1 | ||
}, | ||
"atc": { | ||
"value": 0, | ||
"unit": 1 | ||
} | ||
}, | ||
"drvDistance": [ | ||
{ | ||
"rangeByFuel": { | ||
"gasModeRange": { | ||
"value": 0, | ||
"unit": 1 | ||
}, | ||
"evModeRange": { | ||
"value": 141, | ||
"unit": 1 | ||
}, | ||
"totalAvailableRange": { | ||
"value": 141, | ||
"unit": 1 | ||
} | ||
}, | ||
"type": 2 | ||
} | ||
] | ||
}, | ||
"hoodOpen": true, | ||
"transCond": true, | ||
"steerWheelHeat": 0, | ||
"sideBackWindowHeat": 0, | ||
"dte": { | ||
"unit": 1 | ||
}, | ||
"tirePressureLamp": { | ||
"tirePressureLampAll": 0 | ||
}, | ||
"battery": { | ||
"batSignalReferenceValue": {} | ||
}, | ||
"remoteIgnition": true, | ||
"seatHeaterVentInfo": {}, | ||
"sleepModeCheck": false, | ||
"lampWireStatus": { | ||
"headLamp": {}, | ||
"stopLamp": {}, | ||
"turnSignalLamp": {} | ||
}, | ||
"windowOpen": {}, | ||
"engineRuntime": {} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { tempCodeToCelsius, celciusToTempCode } from '../util'; | ||
|
||
describe('Utility', () => { | ||
it('converts temp code to celsius', () => { | ||
expect(tempCodeToCelsius('0H')).toEqual(14); | ||
expect(tempCodeToCelsius('AH')).toEqual(19); | ||
}); | ||
|
||
it('converts celsius to temp code', () => { | ||
expect(celciusToTempCode(14)).toEqual('0H'); | ||
expect(celciusToTempCode(19)).toEqual('AH'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.