Revert "Added a definition for the API URL for users in Canada"

This commit is contained in:
Michael Woods 2022-10-11 20:03:12 -04:00 committed by GitHub
parent e51ea1502a
commit 652fb16288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View File

@ -48,10 +48,6 @@ ONSTAR_PASSWORD=
ONSTAR_PIN= ONSTAR_PIN=
MQTT_USERNAME= MQTT_USERNAME=
MQTT_PASSWORD= MQTT_PASSWORD=
#For Canadian users, specify the canadian end-point as well:
ONSTAR_URL=https://api.gm.ca
``` ```
### Node.js ### Node.js
It's a typical node.js application, define the same environment values as described in the docker sections and run with: It's a typical node.js application, define the same environment values as described in the docker sections and run with:

View File

@ -15,7 +15,6 @@ const onstarConfig = {
username: process.env.ONSTAR_USERNAME, username: process.env.ONSTAR_USERNAME,
password: process.env.ONSTAR_PASSWORD, password: process.env.ONSTAR_PASSWORD,
onStarPin: process.env.ONSTAR_PIN, onStarPin: process.env.ONSTAR_PIN,
serviceUrl: process.env.ONSTAR_URL || "https://api.gm.com",
checkRequestStatus: process.env.ONSTAR_SYNC === "true" || true, checkRequestStatus: process.env.ONSTAR_SYNC === "true" || true,
refreshInterval: parseInt(process.env.ONSTAR_REFRESH) || (30 * 60 * 1000), // 30 min refreshInterval: parseInt(process.env.ONSTAR_REFRESH) || (30 * 60 * 1000), // 30 min
allowCommands: _.toLower(_.get(process, 'env.ONSTAR_ALLOW_COMMANDS', 'true')) === 'true' allowCommands: _.toLower(_.get(process, 'env.ONSTAR_ALLOW_COMMANDS', 'true')) === 'true'