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

Let query vehicle with vehicleData without avoiding it to fall asleep #309

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
1db734e
Upgrade to GitHub-native Dependabot
dependabot-preview[bot] Apr 29, 2021
fa9c830
Redirect to registered region
GaoMjun Jun 16, 2021
2e48be2
Update auth.js
GaPhi Aug 17, 2021
cf822e8
Add "/api/1/vehicles" to API blueprint
jonahwh Sep 9, 2021
04e66b4
Add vehicleById and vehicleByIdAsync function
jonahwh Sep 9, 2021
db16a32
Merge branch 'mseminatore:master' into master
GaPhi Nov 2, 2021
2212bdf
Add SetChargingAmps API
GaPhi Nov 2, 2021
8ffcee8
Add setScheduledCharging calls
GaPhi Nov 2, 2021
2d716c8
Add setScheduledDeparture API calls
GaPhi Nov 2, 2021
4897d8c
Rollback auth.js
GaPhi Nov 3, 2021
cf7035d
Fix setScheduledDeparture missing parameters
GaPhi Nov 7, 2021
7d8fbae
Add doc for 3 new API calls
GaPhi Nov 7, 2021
df746e2
Fix typo
GaPhi Nov 7, 2021
3645ba9
NPM @gaphi/[email protected]
GaPhi Nov 16, 2021
e54a3e4
Time is not necessarily a 15min multiple
GaPhi Nov 19, 2021
84ad0ba
Add windowControl lat/lon arguments
GaPhi Nov 21, 2021
9df5e41
Update teslajs.min.js
GaPhi Nov 21, 2021
8fbf4c7
NPM 4.9.12-2
GaPhi Nov 21, 2021
8ad8572
Fix typo in maxDefrost function name
jonathanbardo Nov 23, 2021
b6a8da9
Merge pull request #1 from jonathanbardo/patch-1
GaPhi Nov 23, 2021
6ef30e3
Merge pull request #2 from jonahwh/273-vehicles
GaPhi Nov 23, 2021
aab377f
Merge pull request #3 from jonahwh/master
GaPhi Nov 23, 2021
df82c0d
Merge pull request #4 from GaoMjun/master
GaPhi Nov 23, 2021
2c1cf01
Bump ws from 8.2.2 to 8.3.0
dependabot[bot] Nov 24, 2021
2f4d982
Doc for setScheduleDeparture.enable
GaPhi Nov 24, 2021
29dc599
Merge pull request #5 from mseminatore/master
GaPhi Nov 24, 2021
feb1543
Bump ws from 8.2.2 to 8.3.0
dependabot[bot] Nov 24, 2021
ebbd3f2
Merge pull request #6 from DoctorMcKay/dependabot/npm_and_yarn/ws-8.3.0
GaPhi Nov 24, 2021
97cfa47
NPM 4.9.12-3
GaPhi Dec 3, 2021
c522ef6
Merge remote-tracking branch 'upstream/master'
GaPhi Dec 3, 2021
11d4ec2
Remove password for remoteStartDrive
GaPhi Dec 3, 2021
fe5d3ea
windowControl & remoteStart fixes
GaPhi Dec 3, 2021
9e7ce4a
Merge remote-tracking branch 'upstream/master'
GaPhi Dec 26, 2021
f475d76
Update package.json
GaPhi Dec 26, 2021
afc6aaa
Update teslajs.min.js
GaPhi Dec 26, 2021
53f7074
Merge branch 'mseminatore:master' into master
GaPhi Feb 4, 2022
034a75b
Add query parameters to vehicleData
GaPhi Feb 10, 2022
828f63e
API rework
GaPhi Feb 11, 2022
0c3b723
Update samples
GaPhi Feb 11, 2022
c61e8e5
Update doc
GaPhi Feb 11, 2022
59e8f6f
Fix typos
GaPhi Feb 11, 2022
6c1cf40
Prepare next pre-version
GaPhi Feb 11, 2022
16d526f
Add low level request API
GaPhi Feb 12, 2022
d1a0293
Update teslajs.js
GaPhi Feb 12, 2022
98bcd39
Update teslajs.min.js
GaPhi Feb 12, 2022
c25218e
Add query parameters to vehicleData
GaPhi Feb 10, 2022
8e6f777
Update test.js
GaPhi Feb 12, 2022
d6fe7b8
Update package.json
GaPhi Feb 12, 2022
76c96bd
Update DOCS.md
GaPhi Feb 12, 2022
02e88b7
Update README.md
GaPhi Feb 12, 2022
9691644
Merge branch 'patch-generic-apis'
GaPhi Feb 12, 2022
1acf5ed
Fix Frunk/Trunk open call doc
GaPhi Feb 12, 2022
e9f8f5d
Fix setChargeLimit
GaPhi Feb 17, 2022
4b36e85
Merge pull request #7 from mseminatore/master
GaPhi Aug 11, 2023
72708b4
Bump mocha from 10.1.0 to 10.2.0
dependabot[bot] Nov 15, 2023
ca7c1c8
Bump commander from 9.4.1 to 11.1.0
dependabot[bot] Nov 15, 2023
0974b11
Fix logout and maxDefrost arguments
GaPhi Nov 20, 2023
38680d0
Merge branch 'dependabot/npm_and_yarn/commander-11.1.0'
GaPhi Nov 20, 2023
64abfdd
Merge branch 'dependabot/npm_and_yarn/mocha-10.2.0'
GaPhi Nov 20, 2023
2b29fb7
Merge remote-tracking branch 'origin/dependabot/add-v2-config-file'
GaPhi Nov 20, 2023
5384712
Some bumps...
GaPhi Nov 20, 2023
51d2024
Fix "vehicle" API
GaPhi Nov 21, 2023
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Note that missing version entries are typically dependency updates for security.

## V4.11.0
* Use an "args" object for all vehicle API calls

## V4.10.0
* merged several pull requests for new endpoints, remove password from remote start, bug fixes and added `vehicleById()`

Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ To download and install the library and all of its dependencies to a local
project directory use the following:

npm install teslajs

If you are building an npm package that depends upon this library then you
will want to use the **--save** parameter in order to update the
**package.json** file for your project. For example:

npm install teslajs --save

If you prefer to download and install the library globally for all future
node projects you may use:
Expand Down Expand Up @@ -219,15 +225,15 @@ vehicle for the account:

```javascript
var options = { authToken: result.authToken };
tjs.vehicle(options, function (err, vehicle) {
tjs.vehicle(options, null, function (err, vehicle) {
console.log("Vehicle " + vehicle.vin + " is: " + vehicle.state);
});
```

Or using the Async Promise-based calls:

```javascript
tjs.vehicleAsync(options).done(function(vehicle) {
tjs.vehicleAsync(options, null).done(function(vehicle) {
console.log("Vehicle " + vehicle.vin + " is: " + vehicle.state);
});
```
Expand All @@ -239,23 +245,23 @@ make other Tesla REST calls:

```javascript
var options = { authToken: result.authToken, vehicleID: vehicle.id_s };
tjs.chargeState(options, function (err, chargeState) {
tjs.chargeState(options, null, function (err, chargeState) {
console.log("Current charge level: " + chargeState.battery_level + '%');
});
```

And using the Async Promise-based calls:

```javascript
tjs.chargeStateAsync(options).done(function(chargeState) {
tjs.chargeStateAsync(options, null).done(function(chargeState) {
console.log("Current charge level: " + chargeState.battery_level + '%');
});
```

Or using the Async version of the `vehicleData()` API call:

```javascript
tjs.vehicleDataAsync(options).done(function(vehicleData) {
tjs.vehicleDataAsync(options, null).done(function(vehicleData) {
var chargeState = vehicleData.charge_state;
console.log("Current charge level: " + chargeState.battery_level + '%');
});
Expand Down
650 changes: 335 additions & 315 deletions docs/DOCS.md

Large diffs are not rendered by default.

Loading
Loading