G-Two / subarulink

A python package for interacting with Subaru STARLINK remote vehicle services.
Apache License 2.0
82 stars 14 forks source link

Blank / Example Config? #51

Closed mpalermo73 closed 2 years ago

mpalermo73 commented 2 years ago

Hi!

Is there a way to generate a blank / framework config, or do you have an example available that my eyes aren't finding?

Thank you!

M.

stboch commented 2 years ago

Currently not an example app, but you can look at the cli to see what features and code you need to implement.

mpalermo73 commented 2 years ago

OK. I got it. Thanks for pointing that out!

M.

G-Two commented 2 years ago

@mpalermo73 if you're looking for the format of the config file autogenerated/used by the CLI, then it is:

{
    "country": "USA",
    "username": "me@email.com",
    "password": "password",
    "pin": "1234",
    "device_name": "subarulink",
    "save_creds": "Y",
    "device_id": 1628400000,
    "default_vin": "JF2ABCDE6L0000001",
    "remote_start_preset": "FULL HEAT"
}

As @stboch mentioned, the CLI code will provide an example to start from if you want to write your own application (you should also take a look at DEVELOPERS.md). There is also an AWS Lambda example. There are others that also just wrap the provided CLI with their own custom script.