Skip to content

inofficial Toyota MyT (Europe) 2 A Better Route planner gateway using Fermyon spin

License

Notifications You must be signed in to change notification settings

avrabe/spin_myT2ABRP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inofficial Toyota MyT (Europe) to A Better Route Planner Gateway using Fermyon Spin

Rust

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

# 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

# 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

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

spin build
spin up
# Or for active development
spin watch

Query the system

curl http://12.0.0.1:3000/

About

inofficial Toyota MyT (Europe) 2 A Better Route planner gateway using Fermyon spin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published