slint/examples/energy-monitor
2023-03-02 09:55:58 +01:00
..
src energy-monitor: responsive view switch (#2293) 2023-02-27 13:28:48 +01:00
ui energy-monitor: layout tweaks 2023-03-02 09:55:58 +01:00
build.rs energy-monitor: responsive view switch (#2293) 2023-02-27 13:28:48 +01:00
Cargo.toml Fix no-std build of energy monitor 2023-02-27 11:49:04 +01:00
index.html CI: Add the energy monitor to the demo builds for embedded and WASM 2023-02-27 10:10:07 +01:00
README.md rename energy-mng to energery-monitor (#2291) 2023-02-27 09:15:01 +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_mng --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.