https://github.com/avrabe/spin_myt2abrp
inofficial Toyota MyT (Europe) 2 A Better Route planner gateway using Fermyon spin
https://github.com/avrabe/spin_myt2abrp
abrp myt rust spin toyota
Last synced: about 1 year ago
JSON representation
inofficial Toyota MyT (Europe) 2 A Better Route planner gateway using Fermyon spin
- Host: GitHub
- URL: https://github.com/avrabe/spin_myt2abrp
- Owner: avrabe
- License: mit
- Created: 2023-06-24T11:20:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T01:33:32.000Z (over 1 year ago)
- Last Synced: 2025-04-13T12:57:38.747Z (about 1 year ago)
- Topics: abrp, myt, rust, spin, toyota
- Language: Rust
- Homepage:
- Size: 186 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Inofficial Toyota MyT (Europe) to A Better Route Planner Gateway using Fermyon Spin
[](https://github.com/avrabe/spin_myT2ABRP/actions/workflows/rust.yml)
Goal is to provide a gateway between the Toyota MyT (Europe) and A Better Route Planner for Telemetry information. The Toyota MyT uses an inofficial API described in [tojota]. So any change from Toyota might break this application.
## Setup the development environment
Install rust and the webassembly target
```sh
# Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install the wasm32-wasi target
rustup target add wasm32-wasi
```
Install spin
```sh
# Install spin
curl -fsSL https://developer.fermyon.com/downloads/install.sh | bash
# Move to a location for use
sudo mv spin /usr/local/bin/
```
Export the secrets used
```sh
export SPIN_VARIABLE_USERNAME=joe@doe.com
export SPIN_VARIABLE_PASSWORD=mysecret
export SPIN_VARIABLE_VIN=5YFBURHE3JP743261
```
Build the application and start the local server
```sh
spin build
spin up
# Or for active development
spin watch
```
Query the system
```sh
curl http://12.0.0.1:3000/
```
[tojota]: ttps://github.com/calmjm/tojota/tree/maste