#air #units #controlling #smart #hvac #ewpe #conditioning

gree

Controlling Gree Smart air conditioning units via Rust

2 releases

0.1.1 Jun 24, 2023
0.1.0 Jun 24, 2023

#623 in Science

39 downloads per month

Custom license

53KB
997 lines

gree-rs

Controlling Gree Smart air conditioning units via Rust

See examples.

Building with docker

This Dockerfile uses zig and cargo-zigbuild for easy cross-compilation.

Build docker image

docker build --tag vvv/cargo-zigbuild:1.70.0 .

Build example (works also in powershell)

docker run --rm -v "$(pwd):/project" vvv/cargo-zigbuild:1.70.0 --target arm-unknown-linux-gnueabihf.2.24 --example async_tool --features tokio --release

or, to save some time in repetitive builds (useful only if your host OS is Linux or (maybe) WSL; for non-WSL Win host the effect is negative):

docker run --rm -v "$(pwd):/project" -v "$(pwd)/../tmp/cache:/root/.cache" -v "$(pwd)/../tmp/registry:/usr/local/cargo/registry" vvv/cargo-zigbuild:1.70.0 --target arm-unknown-linux-gnueabihf.2.24 --example async_tool --features tokio --release

Dependencies

~4–15MB
~155K SLoC