[Feature request] Make Companion home screen more informative (battery %, clock/date, status icons, RF summary)
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- c
- Área
- embedded-iot
Línea de trabajo
Start with examples/companion_radio/ui-new/UITask.cpp, especially renderBatteryIndicator() and HomeScreen::render(), then read examples/companion_radio/NodePrefs.h for timezone settings. The request spans battery, clock synchronization and refresh timing, connection and GPS status, RF data, and optional sensors across different displays and build targets. Done means the requested home screen information fits supported layouts and the listed validation cases pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Use case
When using a MeshCore Companion device in the field without constantly unlocking a phone, the main home screen (HomePage::FIRST) currently gives very limited at-a-glance information—especially on standard 128×64 OLED boards. Making the header bar and home screen more informative would make standalone use significantly more practical.
Current limitations
- No numeric battery percentage:
renderBatteryIndicator()inexamples/companion_radio/ui-new/UITask.cppalready calculatesbatteryPercentage, but only renders the graphical battery fill bar. - No clock or date on 128×64 displays: Clock and date rendering already exist behind
#ifdef UI_SHOW_CLOCKinUITask.cpp(usingNodePrefs::tz_offsetfromNodePrefs.h), but the layout usessetTextSize(3)aty=60, date aty=80, and connection status aty=110, which only fits tall screens (≥128 px height). - Status and RF info require cycling pages: Checking GPS fix state, recently heard nodes, or RF signal quality currently requires switching away from the home page.
Proposed improvements
-
Numeric battery percentage (and optional voltage) in the header bar
- Display the computed percentage (e.g.,
85%) alongside the battery icon inrenderBatteryIndicator(). - Use
drawTextEllipsized()for the node name inHomeScreen::render()with the remaining available header width so long names do not overlap the percentage, charging/plug icon, muted buzzer icon, or new status icons. - Optionally support showing voltage (
V) or switching between%andV(since linear3000–4200 mVestimation is approximate for LiPo cells).
- Display the computed percentage (e.g.,
-
Compact clock & date layout for 128×64 and larger screens
- Add a compact layout on
HomePage::FIRSTso time (HH:MM) and date (e.g.,DD/MMorDD/MM/YY) fit cleanly on 128×64 OLEDs alongside the unread message counter, while keeping the larger layout on tall displays. - Guard against an unsynced RTC: show
--:--(and hide/placeholder the date) until RTC time has been synced via BLE/app or GPS, instead of showing an invalid default date. - E-ink friendliness: avoid 5-second redraw flicker (
return 5000inHomeScreen::render()) on e-ink panels by refreshing clock updates on minute boundaries. - Optional follow-ups: 12h/24h format toggle and sub-hour
tz_offsetsupport (currently whole hours inNodePrefs).
- Add a compact layout on
-
Compact BLE / Wi-Fi and GPS icons in the header bar
- Replace (or supplement) the full-width
< Connected >line onHomePage::FIRSTwith a compact BLE / Wi-Fi connection icon in the status bar, freeing vertical space on 128×64 screens. - Add a small GPS indicator icon (e.g., active/fix status when
ENV_INCLUDE_GPS == 1) so users can verify GPS fix at a glance without navigating to the GPS page.
- Replace (or supplement) the full-width
-
Compact RF / network summary on the home screen
- Show a compact summary line on
HomePage::FIRSTwith recently heard node count (the_mesh.getRecentlyHeard(...)) and/or last received packet SNR/RSSI (or current noise floor viaradio_driver.getNoiseFloor()), providing quick field visibility into link quality.
- Show a compact summary line on
-
Optional external-sensor snippet (related to #3878)
- When an external environmental sensor (e.g., BME280/BME680) is present, optionally show a compact one-line reading (such as
22.4°C 48%) on the home screen, complementing the dedicated Sensors page requested in #3878.
- When an external environmental sensor (e.g., BME280/BME680) is present, optionally show a compact one-line reading (such as
Compatibility & configurability
- Keep
ui-tinyminimal and ensure 128×64 OLED layouts remain uncluttered. - Gate optional home-screen widgets behind build flags or
NodePrefssettings where appropriate so flash-constrained targets or users who prefer a minimal home screen can opt out.
Validation
- Verify header layout on 128×64 displays with long node names,
100%battery, charging icon, muted buzzer icon, and BLE/GPS icons (no overlap). - Verify clock/date rendering both before and after RTC sync (phone BLE sync and GPS sync) and with non-zero
tz_offset. - Verify e-ink targets do not refresh every 5 seconds solely for the clock.
- Verify RF summary updates after receiving packets and handles the empty/startup state cleanly.
- Lenguaje dominante
- C
- Estrellas
- 3.9k
- Forks
- 1.5k
- Merge medio
- 2 d 19 h
- PR fusionados (30 d)
- 61
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de meshcore-dev/MeshCore
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
meshcore-dev/MeshCore#4015 ·
Los mantenedores suelen responder en 2 días
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new namePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
meshcore-dev/MeshCore#3891 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
meshcore-dev/MeshCore#3826 ·
Los mantenedores suelen responder en 2 días
-
App Preset Australia: NTAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
meshcore-dev/MeshCore#3825 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
meshcore-dev/MeshCore#3781 ·
Los mantenedores suelen responder en 2 días
Todos los issues de meshcore-dev/MeshCore
Issues similares
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
389ds/389-ds-base#8251 ·
Los mantenedores suelen responder en 1 día
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ClickHouse/clickhouse-cpp#645 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ROCm/hrx-system#3628 ·
Los mantenedores suelen responder en 1 día