Commit graph

128 commits

Author SHA1 Message Date
dependabot[bot] 0de5ee26b9
chore(deps): update reqwest requirement from 0.11.23 to 0.12.3
Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest) to permit the latest version.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.23...v0.12.3)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08 08:42:13 +00:00
gak b7e2f94884
Merge pull request #17 from gak/dependabot/cargo/rustls-0.23.0
chore(deps): update rustls requirement from 0.22.2 to 0.23.0
2024-03-01 21:52:58 +11:00
dependabot[bot] 63015deb1b
chore(deps): update rustls requirement from 0.22.2 to 0.23.0
Updates the requirements on [rustls](https://github.com/rustls/rustls) to permit the latest version.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.22.2...v/0.23.0)

---
updated-dependencies:
- dependency-name: rustls
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-01 08:53:16 +00:00
gak 325b899504
Merge pull request #14 from gak/dependabot/cargo/strum-0.26.1
chore(deps): update strum requirement from 0.25.0 to 0.26.1
2024-01-29 21:47:37 +11:00
dependabot[bot] a16ca64151
chore(deps): update strum requirement from 0.25.0 to 0.26.1
---
updated-dependencies:
- dependency-name: strum
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 08:16:42 +00:00
gak 4ba1dd2c33
chore: v0.1.13 2024-01-24 10:26:40 +11:00
gak 796c09c17a
fix: remove vehicles list (#13) 2024-01-24 10:25:41 +11:00
gak c8b45d5c3e
chore: v0.1.12 2024-01-20 19:46:12 +11:00
gak 280f5751cc
chore: more deps 2024-01-20 19:42:17 +11:00
gak c2b12df27b
chore: dep upgrades 2024-01-20 19:42:13 +11:00
gak 85e3728a1d
fix: powerwall api new fields 2024-01-20 19:40:35 +11:00
gak 491d9a58a8
Merge pull request #12 from gak/dependabot/cargo/rustls-0.22.1
chore(deps): update rustls requirement from 0.21.7 to 0.22.1
2023-12-17 12:49:49 +10:00
dependabot[bot] 0676b6cf00
chore(deps): update rustls requirement from 0.21.7 to 0.22.1
Updates the requirements on [rustls](https://github.com/rustls/rustls) to permit the latest version.
- [Release notes](https://github.com/rustls/rustls/releases)
- [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustls/rustls/compare/v/0.21.7...v/0.22.1)

---
updated-dependencies:
- dependency-name: rustls
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 08:28:45 +00:00
gak cddc3ae452
chore: v0.1.11 2023-11-11 11:27:57 +11:00
gak d6fb574e5d
chore(changelog): 0.1.11 2023-11-11 11:26:56 +11:00
gak 6facc27d8b
change!: vehicle_data now accepts a struct instead of VehicleId
To support "endpoints", e.g. requesting GPS.

From https://developer.tesla.com/docs/fleet-api#vehicle_data

String of URL-encoded, semicolon-separated values. Can be many of 'charge_state',
'climate_state', 'closures_state', 'drive_state', 'gui_settings', 'location_data',
'vehicle_config', 'vehicle_state', 'vehicle_data_combo'.

Before:

let vehicle_data = api.vehicle_data(&vehicle_id).await.unwrap();

After:

let get_vehicle_data = GetVehicleData::new(vehicles_id);
let vehicle_data = api.vehicle_data(&get_vehicle_data).await.unwrap();

Or with a endpoints:

let get_vehicle_data = GetVehicleData::new_with_endpoints(123u64, vec![Endpoint::ChargeState, Endpoint::ClimateState]);
let vehicle_data = api.vehicle_data(&get_vehicle_data).await.unwrap();

CLI:

You can still use vehicle-data without endpoints, but you won't get
location data. To fetch location_data:

teslatte api vehicle 123 vehicle-data location_data
2023-11-11 11:07:24 +11:00
gak f0f4a61fa2
chore: v0.1.10 2023-11-11 09:57:20 +11:00
gak dc63638641
chore(changelog): 0.1.10 2023-11-11 09:56:47 +11:00
gak 35f2ac6d26
fix: vehicle api changes as of "api_version 67"
add: VehicleData:
- cached_data
- command_signing
- release_notes_supported

add: ClimateState:
- auto_steering_wheel_heat
- cop_activation_temperature,
- steering_wheel_heat_level

DriveState now Optional:
- gps_as_of
- heading
- latitude
- longitude
- native_latitude
- native_location_supported
- native_longitude
- native_type

Drivestate add:
- active_route_traffic_minutes_delay

GuiSettings add:
- gui_tirepressure_units

VehicleConfig add:
- cop_user_set_temp_supported
- webcam_selfie_supported

VehicleState add:
- media_info: MediaInfo
- tpms_hard_warning_fl
- tpms_hard_warning_fr
- tpms_hard_warning_rl
- tpms_hard_warning_rr
- tpms_rcp_front_value
- tpms_rcp_rear_value
- tpms_last_seen_pressure_time_fl
- tpms_last_seen_pressure_time_fr
- tpms_last_seen_pressure_time_rl
- tpms_last_seen_pressure_time_rr
- tpms_soft_warning_fl
- tpms_soft_warning_fr
- tpms_soft_warning_rl
- tpms_soft_warning_rr

MediaInfo add:
- audio_volume
- audio_volume_increment
- audio_volume_max
2023-11-11 09:38:44 +11:00
gak b69fc9bff9
chore: v0.1.9 2023-11-06 12:00:07 +11:00
gak 4c650d936e
docs(changelog): wall connector changelog 2023-11-06 11:59:14 +11:00
gak eec64e3e7b
feat: support registered wall connectors 2023-11-06 11:59:14 +11:00
gak 36572f1ce2
ci: daily deps check 2023-11-03 09:32:10 +10:00
gak aee8fb5eb6
docs(readme): add build status badge 2023-11-03 10:26:58 +11:00
gak 60d5cfe3be
chore: v0.1.8 2023-11-03 10:22:19 +11:00
gak ea21aa2fcf
docs(changelog): note the issue for #10 2023-11-03 10:21:40 +11:00
gak 1b2a785547
docs(changelog): changes for 0.1.8 2023-11-03 10:17:55 +11:00
gak 9584cbe1d6
chore: colored_json 3.3.0 -> 4.0.0 (was yanked) 2023-11-03 07:46:55 +11:00
gak 463355ce2d
docs: README and API updates about APIs 2023-10-25 15:49:57 +11:00
gak 514e8ec134
feat(tesla_api_coverage): API.md impl matrix generation 2023-10-25 15:16:44 +11:00
gak 10fe1969c2
wip(tesla_api_coverage): initial API.md generated! 2023-10-25 14:44:34 +11:00
gak 4f24db9bdb
wip(tesla_api_coverage): rename keys based on similar urls 2023-10-25 13:46:42 +11:00
gak 9d4d7804a2
wip(tesla_api_coverage): more massaging of endpoints 2023-10-25 12:24:36 +11:00
gak d66f15a91e
wip(tesla_api_coverage): teslatte endpoint done, shows all counts 2023-10-25 07:56:01 +11:00
gak 20b02d8b86
wip(tesla_api_coverage): more tests 2023-10-24 12:40:44 +11:00
gak 85ca49b49d
wip(tesla_api_coverage): broken, but wip parse teslatte endpoints 2023-10-24 12:30:48 +11:00
gak 3f7df753b1
wip(tesla_api_coverage): start to compare api 2023-10-23 16:17:50 +11:00
gak d0b8f6df67
wip(tesla_api_coverage): scrape vehicle command 2023-10-23 14:25:33 +11:00
gak 503effc7ef
wip: A tool to scrape the fleet api website 2023-10-22 14:47:06 +11:00
gak 65f13033a6
docs: woops, random ` in readme 2023-10-22 10:45:55 +11:00
gak d561b94051
chore: nightly notes and rust-toolchain 2023-10-22 10:45:03 +11:00
gak 0627ee2c16
fix!: Remove async_fn_in_trait feature. Ignore warning.
This is because the latest nightly doesn't require the feature and it
added a warning for public async traits and not sure how to properly
handle it yet.
2023-10-22 10:23:33 +11:00
gak 08a6d6abb1
ci: action to use rust nightly 2023-10-22 08:42:59 +10:00
gak 67860eaf99
Update README.md 2023-10-22 08:41:02 +10:00
gak 3e544847ee
ci: Create rust.yml 2023-10-22 08:36:33 +10:00
gak 39627f347e
Merge pull request #8 from gak/7-refactor-api 2023-10-22 08:34:41 +10:00
gak 8c059769ee
refactor!: Rename Api to OwnerApi. Remove ResponseData<T>. Add VehicleApi trait.
Significant refactor to progress towards different API access that Tesla
has introduced. See issues #6 and #7.

Removed `ResponseData` because it wasn't very ergonomic, forcing the user
to deref or call data(). Also it had specific fields for JSON output
which was only used for the CLI, so I introduced a field
`print_responses` in OwnerApi that the CLI can use.
2023-10-22 09:17:32 +11:00
gak a8b58e1157
refactor: Api -> OwnerApi 2023-10-20 12:18:38 +11:00
gak a0cc8bf987
doc: Specify Owner API 2023-10-20 11:09:52 +10:00
gak 304c21c8d3
docs: mention fleet api in README 2023-10-20 12:00:06 +11:00