Skip to content

Add service_url config option to volvooncall #2774

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

Merged
merged 1 commit into from
Jun 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions source/_components/volvooncall.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ volvooncall:
password: password
```

Users registered with Volvo in North America or China will need to specify a service url:

```yaml
# North America
volvooncall:
username: username
password: password
service_url: 'https://vocapi-na.wirelesscar.net/customerapi/rest/v3.0/'
```
```yaml
# China
volvooncall:
username: username
password: password
service_url: 'https://vocapi-cn.wirelesscar.net/customerapi/rest/v3.0/'
```

A more advanced example for setting the vehicle name and selecting what resources to display:

```yaml
Expand All @@ -43,6 +60,7 @@ Configuration variables:

- **username** (*Required*): The username associated with your Volvo On Call account.
- **password** (*Required*): The password for your given Volvo On Call account.
- **service_url** (*Optional*): The service URL to use for Volvo On Call (defaults to https://vocapi.wirelesscar.net/customerapi/rest/v3.0/).
- **name** (*Optional*): Make it possible to provide a name for the vehicles.
- **resources** (*Optional*): A list of resources to display (defaults to all available).