1
0
Fork 0
spaceapi-tuerpie-nix/README.md

627 B

Spaceapi Tuerpi

Feeding our SpaceAPI with Data from our entrance door.

Setup

Please change DOOR_PIN accordingly.

DOOR_PIN defaults to a closed door, when HIGH.

You need to provide the environment variables SPACEAPI_URL and API_KEY.

Build

Install stable version of rust and run a regular cargo build:

cargo build

Cross compile

Install arm toolchain and libmusl for static linked binaries:

apt-get install gcc-arm-linux-gnueabihf musl-dev musl-tools

Build the application for raspberry pi:

cargo build --target=armv7-unknown-linux-musleabihf