Malawi-DCCMS / weather-app

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

Landing page WITHOUT location turned on #40

Closed LinUXBele closed 1 week ago

LinUXBele commented 8 months ago

When I've chosen not to allow my phone to track my location, I still want a landing page in the Malawi weather app, so that my phone settings do not dictate what apps I can use-

WHERE As a landing page if location for some reason is not available

WHAT Show search field

Show 5 biggest cities in Malawi and the weather

1. Lilongwe
2. Blantyre
3. Mzuzu
4. Zomba
5. Kasungu

For each city show this information 
Weather icon and degrees celcius
Max and Min temp for the day
Icon showing weather for the day

WHAT NOT

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

without location
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")

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

Weather symbol varies depending on the time of the day: before 04Z (6am local time): value from the time step 04Z valid for the next 12 hours (6am-6pm local time) (Example: "time": "2023-11-04T04:00:00Z", ... next_12_hours": {"summary": {"symbol_code": "partlycloudy_day"}) 05Z to 10Z (7am-12am local time): value from the time step 10Z valid for the next 6 hour (12am-6pm local time) (Example: "time": "2023-11-04T10:00:00Z", ... next_6_hours": {"summary": {"symbol_code": "partlycloudy_day"}) from 11Z (1pm local time): 1h symbol valid from the first time step (Example: "time": "2023-11-04T11:00:00Z", ... next_1_hours": {"summary": {"symbol_code": "partlycloudy_day"}) Weather symbol and weather text in issue #40 and #37 should use the same logic.

LinUXBele commented 6 months ago

PLEASE FIX THESE:

vegardb commented 3 months ago

See #112

LinUXBele commented 3 months ago

Search field removed Cities dont have link, registered as bug here: #120 Will make new bug for the removal of backbutton

Will close this story