Skip to content

Cache weather data in weather_app to avoid reload on every open #533

Closed

Description

@jakkra

Every time the weather app is opened it fires a fresh BLE HTTP request and shows a loading spinner until the response arrives. The app already stores last_weather in RAM and re-fetches periodically (every 30 min via weather_app_fetch_work), but this cached data is never used to populate the UI on open. There's an existing TODO on line 85 of weather_app.c. The fix should show the last successful weather data immediately on open and refresh in the background.

Activity

  1. zpassion commented on Mar 3, 2026

    @zpassion

    Hi, I'm a beginner learning C programming and I'd like to take on this issue (cache weather data). Could you please tell me which file/function I should focus on modifying?

  2. jakkra commented on Mar 3, 2026

    @jakkra
    CollaboratorAuthor

    Hi, I'm a beginner learning C programming and I'd like to take on this issue (cache weather data). Could you please tell me which file/function I should focus on modifying?

    Hi! It's mentioned in the issue already, weather_app.c you should be able to figure it out from there.

  3. zpassion commented on Mar 8, 2026

    @zpassion

    Hi !All reported issues (indentation, regex double-escaping, pre-commit errors) have been fixed. The PR is now ready for final review and approval.

    Thanks!

  4. HongNguyen635 commented on Oct 25, 2026

    @HongNguyen635
    Contributor

    Hi @jakkra @zpassion, Is this still being worked on? If not, I’d be happy to pick it up and give it a try.

  5. jakkra commented on Oct 26, 2026

    @jakkra
    CollaboratorAuthor

    6. Hi @jakkra @zpassion, Is this still being worked on? If not, I’d be happy to pick it up and give it a try.

    Hi, funny you write just now, I actually without thinking I implemented this yesterday, will close this. Will merge today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions