[Feature request] Make Companion home screen more informative (battery %, clock/date, status icons, RF summary)
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c
- 領域
- embedded-iot
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C
- スター
- 3.9k
- フォーク
- 1.5k
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 61
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
meshcore-dev/MeshCore のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
meshcore-dev/MeshCore#4015 ·
メンテナーはふだん 2 日以内に返信
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new name対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
meshcore-dev/MeshCore#3891 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
meshcore-dev/MeshCore#3826 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
meshcore-dev/MeshCore#3825 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
meshcore-dev/MeshCore#3781 ·
メンテナーはふだん 2 日以内に返信
meshcore-dev/MeshCore の issue をすべて見る
似ている issue
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
389ds/389-ds-base#8251 ·
メンテナーはふだん 1 日以内に返信
-
bug data-types
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/clickhouse-cpp#645 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ROCm/hrx-system#3628 ·
メンテナーはふだん 1 日以内に返信