Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felgosdk/homeautomation
A Rust and Slint demo app created for Oxidize Conference Berlin
https://github.com/felgosdk/homeautomation
rust rust-lang slint slint-ui
Last synced: about 1 month ago
JSON representation
A Rust and Slint demo app created for Oxidize Conference Berlin
- Host: GitHub
- URL: https://github.com/felgosdk/homeautomation
- Owner: FelgoSDK
- License: mit
- Created: 2024-08-02T08:36:03.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T07:03:31.000Z (4 months ago)
- Last Synced: 2024-08-15T07:49:50.186Z (4 months ago)
- Topics: rust, rust-lang, slint, slint-ui
- Language: Slint
- Homepage: https://felgo.com/contact
- Size: 6.92 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Home Automation
Home Automation is a simple showcase application made by [Felgo](https://felgo.com/).
The application is an example of a home automation system written in Rust with the [Slint](https://slint.dev/) toolkit.
The main dashboard features several tiles. It is arranged differently in portrait and landscape orientations to optimize the user experience. The tiles can control household items (such as lockers, lights, and blinds) or display relevant information (like current weather and security camera previews). The application's user interface is responsive, adapting smoothly to different screen sizes.
### Check the application live [here](https://felgosdk.github.io/HomeAutomation/).
# Supported platforms
## Desktop
The application runs on all desktop platforms (Windows, Linux and macOS).To start the application, execute:
```
cargo run
```## Android
To be able to compile the application for Android, you must follow an initial setup. The instruction is available in [Slint's documentation](https://snapshots.slint.dev/master/docs/rust/slint/android/#building-and-deploying).To start the application, execute:
```
cargo apk run --lib
```## WebAssembly
It is also possible to embed the application in a web page. You need to install the `wasm-pack` crate for this.```
cargo install wasm-pack
```To build the application, execute:
```
wasm-pack build --target web --out-dir /pkg
```
To run locally:```
cp /wasm/index.html / # you can also provide your HTML file
cd & python3 -m http.server
```Now, you can access the application at http://localhost:8000/.