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.
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/