slint/examples/energy-monitor
Tobias Hunger b12575a4c4 janitor: Go over our spell checking setup
* Extend the cspell word list
* Remove those extensions from individual source files
* white-list licenses and such as we should not meddle with those
* Fix spelling
2023-10-16 09:01:51 +02:00
..
src Clippy polish 2023-06-28 14:22:30 +02:00
ui janitor: Go over our spell checking setup 2023-10-16 09:01:51 +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.3.0 2023-09-05 15:46:36 +02:00
index.html Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02: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.