Commit graph

148 commits

Author SHA1 Message Date
Alex Janka fd1794744b cop&hvac enums 2024-05-24 19:42:48 +10:00
Alex Janka 3add4893f9 "parked" is a stupid name 2024-05-24 19:42:48 +10:00
Alex Janka b13c40429f shift state enum 2024-05-24 19:42:48 +10:00
Alex Janka 64aa35a969 charging state as enum 2024-05-24 19:42:48 +10:00
Alex Janka a2bc59fb34 fix speed type 2024-05-24 19:42:48 +10:00
Alex Janka 9ecf21554e derive Copy on VehicleId 2024-05-24 19:42:47 +10:00
Alex Janka 677d959e6d get rid of this one warning 2024-05-24 19:42:47 +10:00
Alex Janka 78d347f38e reverse proxied api url 2024-05-24 19:42:47 +10:00
Alex Janka 3123cad1a5 my changes 2024-05-24 19:42:44 +10:00
gak 13f4be3478
chore: v0.1.15 2024-04-12 11:14:32 +10:00
gak e326d17c14
chore: changelog 2024-04-12 11:14:20 +10:00
gak 6f7fb72943
fix: another invalid total_pack_energy 2024-04-12 11:10:15 +10:00
gak 62b3343b21
chore: v0.1.14 2024-04-12 08:53:29 +10:00
gak 19ac4b485d
chore: changelog release 2024-04-12 08:52:41 +10:00
gak 1e6c1d5ff3
fix: energy_left total_pack_energy` gone. Untagged handling 2024-04-12 08:49:20 +10:00
gak fcc9e63930
Merge pull request #18 from gak/dependabot/cargo/miette-7.2.0
chore(deps): update miette requirement from 5.10.0 to 7.2.0
2024-04-12 08:49:06 +10:00
gak afd833f13f
Merge pull request #23 from gak/dependabot/cargo/reqwest-0.12.3
chore(deps): update reqwest requirement from 0.11.23 to 0.12.3
2024-04-12 08:48:49 +10:00
gak 6723c0ad02
Merge pull request #24 from gak/dependabot/cargo/colored_json-5.0.0
chore(deps): update colored_json requirement from 4.1.0 to 5.0.0
2024-04-12 08:48:40 +10:00
dependabot[bot] 8b5141376e
chore(deps): update colored_json requirement from 4.1.0 to 5.0.0
Updates the requirements on [colored_json](https://github.com/ctron/colored_json) to permit the latest version.
- [Release notes](https://github.com/ctron/colored_json/releases)
- [Commits](https://github.com/ctron/colored_json/compare/v4.1.0...v5.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08 08:42:32 +00:00
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
dependabot[bot] 906ce9cf04
chore(deps): update miette requirement from 5.10.0 to 7.2.0
Updates the requirements on [miette](https://github.com/zkat/miette) to permit the latest version.
- [Release notes](https://github.com/zkat/miette/releases)
- [Changelog](https://github.com/zkat/miette/blob/main/CHANGELOG.md)
- [Commits](https://github.com/zkat/miette/compare/miette-derive-v5.10.0...miette-derive-v7.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-08 08:55:59 +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