- Consolidates `MetricViewModel` back to a single state flow
- Introduces a `MutableStateFlow` for state updates, allowing more independent control
- Moves `Telemetry`, `MeshPacket`, and config updates into separate coroutines
This commit updates the `getUser` function in `NodeDB` to set the ID of the user when creating a new `User` object, ensuring that the user ID is always populated.
Additionally, it refactors the `Message` class to use the proto `User` object instead of the `MeshUser` class. This change simplifies the code and improves consistency by utilizing the proto definition for user information.
* Request user info
* safe calls
* Fix: Ensure NodeInfo is sent when requesting user info
The `requestUserInfo` function now correctly sends `NodeInfo` when requesting user info by using the `
toNodeInfo()` method on `ourNodeInfo`. This ensures the recipient receives the necessary information.
* fix: remove unused parameters, use service's node db for our node entity
---------
Co-authored-by: musznik <bymucha@gmail.com>
- Activates by tapping "None (disable)" 7 times.
- Displays a confirmation message when `Demo Mode` is enabled.
- Simulates a connection to a Meshtastic device and allows the app to function without requiring real hardware.
* feat: Add ability to display environment metrics in Fahrenheit
The temperature values in the environment metrics charts and cards are now displayed in Fahrenheit or Celsius based on the user's preference. Celsius is still used as the base unit for calculations and storage.
* Refactor: Rename environmentDisplayTempInFahrenheit to environmentDisplayFahrenheit
Renamed the variable environmentDisplayTempInFahrenheit to environmentDisplayFahrenheit for better clarity and consistency.
* Refactor: Remove unused ENVIRONMENT_METRICS_COLORS
Removed the unused `ENVIRONMENT_METRICS_COLORS` variable from the `EnvironmentMetrics` component.
* Update: Add support for plotting iaq
Added green to the list of colors used for plotting environment metrics to support the newly added iaq readings.