An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

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

[![Rust](https://github.com/avrabe/spin_myT2ABRP/actions/workflows/rust.yml/badge.svg)](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