-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
26 lines (22 loc) · 1.03 KB
/
notes.txt
File metadata and controls
26 lines (22 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
openweathermap api
1. display time (should update dynamically) done
2. display date done
3. display location done
4. display weather at location done
- location name
- country
- description
- temperature
- humidity
- min-max temp
- wind speed
- wind direction
- icon
5. display forecast for tomorrow done
auto -> current_home_latlon -> forecast_home_latlon
button -> current_search_name -> forecast_search_latlon
4 API calls to include forecast information. 2 if forecast information but no cityname + country initials.
session storage/local storage to reduce API calls/min?
turns out, only 2 API calls are needed, since the OneCallAPI displays the region and city name (not country initials tho)
as long as I use some sort of geocoding to convert a city name to lat and long, I only need to make one API call for each city.
forecasting is now done, but dear oh dear... the way I implemented it is disgusting. But hey! I'll probably learn a better way to do it later on. For now, it works. And that's the only thing that matters.