slint/examples/energy-monitor
2023-12-11 11:21:37 +00:00
..
src Clippy polish 2023-06-28 14:22:30 +02:00
ui cleanup examples according to upcoming code guidelines (#3809) 2023-11-02 11:04:40 +01:00
build.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Cargo.toml Bump version number to 1.4.0 2023-12-11 11:21:37 +00:00
index.html Energy monitor: restore wasm canvas size to demo's preferred size 2023-11-06 08:26:03 +01:00
README.md xtask: Fix up license headers 2023-08-17 08:55:28 +02:00

See the MCU backend Readme to see how to run the example on a smaller device like the Raspberry Pi Pico.

The example can run with the mcu simulator with the following command

cargo run -p energy-monitor --no-default-features --features=simulator --release

display weather data

To display real weather data in the demo an application key from https://www.weatherapi.com/ is needed. The api key can be injected by settings the WEATHER_API environment variable. With the WEATHER_LAT and WEATHER_LONG variable position can be set, default is Berlin.