Skip to content

Configure day card lottie animation #4

@derekc00

Description

@derekc00

Getting the weather status (ex: dClearSky) for the day card animation is a little tricky.

In a nutshell, we are not given a general weather status for a future day (unlike the Onecall API 3.0). Instead, the api returns 8, 3hr data points for each day which include their own weather status. So, we get 8 weather statuses. It resembles this pattern: midnight=nClearSky, 3AM=nClearSky, 6AM=dClearSky, 9AM=dBrokenClouds, etc. So, some post-processing needs to be done here to get animations for the day cards.

A few strategies to fix the above point:

  • display the 12PM forecast weather status since that is most likely representative of the whole day
  • Regardless of day or night, we use the most popular status (ie. 5 out the 8 data points state "ClearSky", so we use "dClearSky")
  • display "dClearSky" statically (what's implemented right now) and call out the endpoint's shortcoming in the student-facing doc

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions