Skip to content

Froyo widget says when a read was last tried - #50

Merged
rayvader merged 1 commit into
mainfrom
fix/widget-stale-again
Nov 8, 2026
Merged

rayvader merged 1 commit into
mainfrom
fix/widget-stale-again

Conversation

@rayvader

@rayvader rayvader commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Summary

The Froyo · Upcoming widget stayed on "as of 05:48" for days with no hint why. The gateway log showed no background reads from the phone for 14 h, so the refresh job was not running at all. This makes that visible on the widget itself.

  • Every read stores froyo_tried_at when it starts, good or bad.
  • Header adds · tried HH:mm when that is newer than the last good read: Updated 05:48 · tried 20:40, as of 05:48 · network · tried 20:40.
  • Header adds · not updating when no read was good or tried for 2 h.
  • 24 h times. A longer count moves under the title (stackHeader now takes the count length), so none of it is cut.

Tests

  • Unit: headerAFreshGoodReadSaysOnlyUpdated, headerAReadTriedAfterTheLastGoodOneSaysTried, headerNoReadTriedFor2HoursSaysNotUpdating, aLongCountMovesUnderTheTitleSoNothingIsCut.
  • e2e: a failed refresh shows tried HH:mm; screenshot froyo-widget-tried.png.

Not covered

  • The phone-side cause (job not running) still needs Raymond: re-add the widget and set battery to Unrestricted.

Every read stores when it started, good or bad. The header adds
"· tried HH:mm" when that is newer than the last good read, e.g.
"Updated 05:48 · tried 20:40". When no read was good or even tried
for 2 h it adds "· not updating", so a stuck job shows. 24 h times.
A longer count moves under the title, so none of it is cut.
@rayvader
rayvader enabled auto-merge November 8, 2026 12:49
@rayvader
rayvader merged commit a0c10aa into main Nov 8, 2026
6 checks passed
@rayvader
rayvader deleted the fix/widget-stale-again branch November 8, 2026 13:43
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.

1 participant