Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add australia region support #258

Merged
merged 4 commits into from
Mar 22, 2024

Conversation

bitnimble
Copy link
Contributor

@bitnimble bitnimble commented Jul 26, 2023

This PR adds support for Kia and Hyundai in Australia. It is largely a copy of the China + Europe authentication mechanisms, with some changes to the vehicle parser (seems like we get a little less information :'( )

I will probably look at consolidating the vehicle parsers at some stage now that we've hit ~3 identical implementations, but I need a bit more time actually using it to make sure that everything is correct.

@@ -45,20 +45,20 @@ const askForRegionInput = () => {
type: 'list',
name: 'region',
message: 'What Region are you in?',
choices: ['CN','US', 'EU', 'CA'],
choices: ['CN', 'US', 'EU', 'CA', 'AU'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change in this file, everything else is from Prettier

Comment on lines +28 to +33
import {
EUDatedDriveHistory,
EUDriveHistory,
EUPOIInformation,
historyDrivingPeriod,
} from '../interfaces/european.interfaces';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reuse the European drive history interfaces here as it's identical. I also notice China's is identical too. Seems like China/Europe/Australia all basically share the same API and interfaces, so probably worth just pulling them into a shared interface?

@bitnimble bitnimble force-pushed the bitnimble/add-australia-support branch from 3940e52 to c8487d1 Compare February 13, 2024 10:54
@bitnimble bitnimble marked this pull request as ready for review March 20, 2024 08:36
@bitnimble bitnimble changed the title add australia region support feat: add australia region support Mar 20, 2024
}
step: 0.5,
},
// TODO: verify the Australian temp code ranges
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm like 90% sure this is correct, but will need to validate more in the future with some other vehicles just in case.

@Hacksore
Copy link
Owner

Hacksore commented Mar 20, 2024

Can you give this a test @bitnimble and we can :shipit: if all is working well.

I did just publish hacksore/hks:native-au.
https://hub.docker.com/layers/hacksore/hks/native-au/images/sha256-a9362d7ecb24a9e341eec06afdd19d6738279c85f7a43d48bad7ec7583ce038f?context=repo

@bitnimble
Copy link
Contributor Author

Tested and working! It did generate a new CFB, but both the old and new ones work, so I'm not really sure what's up there...

@Hacksore Hacksore merged commit f29c85a into Hacksore:master Mar 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants