2 releases
0.1.1 | Jun 24, 2023 |
---|---|
0.1.0 | Jun 24, 2023 |
#737 in Science
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
Links
- https://github.com/tomikaa87/gree-remote - Protocol description, API in several languages, CLI in python
Dependencies
~4–13MB
~143K SLoC