Module widgets

Module widgets 

Source
Expand description

Reusable widget components for the TUI.

This module provides helper functions for creating styled widget components used throughout the terminal user interface.

Functionsยง

co2_trend
Calculate trend for CO2 readings.
convert_radon_for_device
Convert radon value for display based on device settings.
format_radon_for_device
Format radon value based on device settings.
format_temp_for_device
Format temperature value based on device settings.
radon_unit_for_device
Get the radon unit string based on device settings.
resample_sparkline_data
Resample sparkline data to fit a target width.
sparkline_data
Extracts primary sensor values from history records for use in a sparkline widget.
trend_indicator
Calculate trend indicator based on current and previous values. Returns (arrow character, color) tuple.