slint/examples/energy-monitor
2023-06-28 14:22:30 +02:00
..
src Clippy polish 2023-06-28 14:22:30 +02:00
ui Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
build.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Cargo.toml Bump version number to 1.1.1 2023-06-26 12:50:02 +00:00
index.html Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
README.md energy-monitor: polish (#2321) 2023-03-03 08:03:08 +01: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.