Skip to content

feat: show firmware update progress on e-ink display - #33

Open
maxekman wants to merge 2 commits into
protolux-electronics:mainfrom
maxekman:feat/firmware-update-progress
Open

feat: show firmware update progress on e-ink display#33
maxekman wants to merge 2 commits into
protolux-electronics:mainfrom
maxekman:feat/firmware-update-progress

Conversation

@maxekman

Copy link
Copy Markdown

Summary

  • Custom NervesHubLink.Client hooks into fwup progress callbacks
  • Progress bar renders across the top of the e-ink display, throttled to every 5%
  • Full-screen "Rebooting..." message shown before device restarts (3s delay)
  • New FirmwareProgress Agent for state + Registry pub/sub to trigger screen re-renders

Closes #24

Test plan

  • NameBadge.FirmwareProgress.set_state({:downloading, 50}) shows progress bar on host preview
  • Full simulation: for p <- 0..100//5, do: (NameBadge.FirmwareProgress.set_state({:downloading, p}); Process.sleep(1500))
  • :rebooting state shows clean full-screen message
  • :idle clears progress bar
  • OTA update via NervesCloud shows end-to-end progress

Custom NervesHubLink.Client hooks into fwup progress callbacks
and renders a progress bar across the top of the screen. Shows
a full-screen 'Rebooting...' message before the device restarts.
Throttled to re-render every 5% to avoid overwhelming e-ink.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show firmware update progress

1 participant