Malawi-DCCMS / weather-app

An app to show the weather.
0 stars 0 forks source link

Landingpage Today #37

Closed LinUXBele closed 1 week ago

LinUXBele commented 8 months ago

When I open the app wondering what today's weather will be like I can quickly see a "summary" on top

WHERE When the user opens the app Above other content

WHAT

WHAT NOT Next five days is a different story

DESIGN Remember to use correct background with illustrations. If help is needed for the background image, do not hesitate to reach out! Also observe that black text is not black, please fetch the correct colour code from FIgma

FIGMA: https://www.figma.com/file/YfA7lEgqNGxntEUisqZU65/Design-file-Sarepta-Malawi-mobile-app?type=design&node-id=9%3A2&mode=design&t=PPIPUUH00ITpCe5X-1

Image

LinUXBele commented 8 months ago

@havardf @vegardb Was there a discussion on what to pick when presenting the user a temperatur and textal weather on this page?

havardf commented 8 months ago

Yes, we have to make decision here about what representates the weather for today.

First conceptually should it represent the middle of the day? Or should we try to have some sort of average of the remaining time of the whole date (day and night)?

And which values are ok to represent the period we decide on? api.met.no have parameters for periods (1,6,12), but not the same parameters across all the periods. Some parameters are only specified for a specific time. The parameters and periods accessible from the future DCCMS api might not be the same however.

I am not quite sure about the choices we have made on yr.no for this, but in any case, we need input from a meteorologist on this.

marianneand commented 8 months ago

We only have data from the current time and onwards. Min/max temperature must be calculated from the temperatures in the remaining part of the day.

Temperature in large font and textal weather should represent the same period. One possibility is the next 6 hours. Another more complexoption is to use 12 hours period early in the day, and late in the day 6 or 1 hour period.

marianneand commented 8 months ago

@danielmwakanema Description of which parameters to use from the api, as we talked about today

All data is from today in local time. The last time step to be included is 11pm local time, which is 21Z. Time step 22Z and 23Z is included in the next day. (Example: November 4th 2023 is from "time": "2023-11-03T22:00:00Z" to "time": "2023-11-04T21:00:00Z")

Temperature: temperature from the first time step (parameter: "air_temperature")

Max and Min temperatures needs to be calculated from the first time step of the time series until 21Z (parameter: "air_temperature")

Todays weather in text should use the same logic as for Weather symbol in #40. (parameter: "symbol_code").

@LinUXBele The “symbol_code” needs to be translated into short texts in the front end. This must be done for all languages supported in the app.

LinUXBele commented 6 months ago

-- PLEASE CHANGE --

NB This is NOT bug, its just that its to weak to be easy to read!

danielmwakanema commented 6 months ago

@LinUXBele, noted.

LinUXBele commented 3 months ago

Will change this to icon for people that struggle with language or written text, will add new story for this. Closing this.