Heb dit berichtje op de Chevy Bolt forum geplaatst:
I have been looking at what messages the onStar web page exchanges with the backoffice. This has allowed me to build a little 'proof of concept' Java program that does more or less the same. Wonder if some of you want to play along Why? Well, simply because we can?
The responses I get show more than my onStar web page does. For example min range and max range.
Perhaps an interesting application can be that people who have build their own EVSE could use the logic in this app to make their EVSE retrieve actual SOC and terminate charging at any level they like.
Source + compiled version + required jar file can be found in this dropbox folder (
https://www.dropbox.com/sh/91f28pdnkuiq ... QsM0a?dl=0).
Copy everything in a local directory
Open a command prompt (or Terminal window on a Mac) and go to that folder
To compile: javac -cp json-20180813.jar onStar.java
To run: java -cp json-20180813.jar:. onStar <onStar username> <onStar password> 0
People with two or more Bolts (tied to the same account) could replace the 0 with 1 or 2 or 3 ...
Bunch of disclaimers:
- I am not a JAVA programmer. My source was googled together. So, any tips on how to improve my code are welcome, but please be gentle.
- There is virtually no error control.
- Pretty sure all communication between the app and the onStar web service is HTTPS. But don't blame me if ...
- I have been working with the European website. It talks to
https://gsp.eur.onstar.com. Quite likely the US version of the onStar website talks to a different URL. Then we need to find out and adjust the source, as the URL is hard coded for now.
Ampera e is online now Report Post