Tris20 / FairFareFinder

prioritizes finding destinations with the best weather conditions, while also ensuring travelers get the most economical deals on transportation and accommodation.
GNU General Public License v3.0
1 stars 2 forks source link

Embed Weather Results into Table View #26

Open mrjkey opened 5 months ago

mrjkey commented 5 months ago

Just realized that when I was going to check flights to Athens, that I also opened a tab to check the weather there. Would be good to also just provide a link to some weather site.

mrjkey commented 5 months ago

I guess we have one for this already, but it is google weather... haha, ya I guess that is fine. However, it wasn't obvious what clicking on that value would do. We should make it more obvious.

Tris20 commented 5 months ago

Already provided when you click wpi

Tris20 commented 5 months ago

Upgrade for this should be an embedded forecast in the table so user doesn't need to click anything.

Tris20 commented 5 months ago

Initial search for embedded weather looked like it might not be so straight forward. Happy to be proven wrong, but for the mean time we could push ahead with leaning on the openweathermap weather:description attribute which has na ID for each spefici weather type.

https://openweathermap.org/api/one-call-3#current

The OpenWeatherMap API offers a range of weather condition codes and corresponding descriptions to represent various weather states. These descriptions are part of the weather data returned by the API, specifically within the weather array of the response. Here is a list of common weather condition codes and their descriptions as provided by OpenWeatherMap:

Group 2xx: Thunderstorm 200 Thunderstorm with light rain 201 Thunderstorm with rain 202 Thunderstorm with heavy rain 210 Light thunderstorm 211 Thunderstorm 212 Heavy thunderstorm 221 Ragged thunderstorm 230 Thunderstorm with light drizzle 231 Thunderstorm with drizzle 232 Thunderstorm with heavy drizzle Group 3xx: Drizzle 300 Light intensity drizzle 301 Drizzle 302 Heavy intensity drizzle 310 Light intensity drizzle rain 311 Drizzle rain 312 Heavy intensity drizzle rain 313 Shower rain and drizzle 314 Heavy shower rain and drizzle 321 Shower drizzle Group 5xx: Rain 500 Light rain 501 Moderate rain 502 Heavy intensity rain 503 Very heavy rain 504 Extreme rain 511 Freezing rain 520 Light intensity shower rain 521 Shower rain 522 Heavy intensity shower rain 531 Ragged shower rain Group 6xx: Snow 600 Light snow 601 Snow 602 Heavy snow 611 Sleet 612 Light shower sleet 613 Shower sleet 615 Light rain and snow 616 Rain and snow 620 Light shower snow 621 Shower snow 622 Heavy shower snow Group 7xx: Atmosphere 701 Mist 711 Smoke 721 Haze 731 Sand/dust whirls 741 Fog 751 Sand 761 Dust 762 Volcanic ash 771 Squalls 781 Tornado Group 800: Clear 800 Clear sky Group 80x: Clouds 801 Few clouds: 11-25% 802 Scattered clouds: 25-50% 803 Broken clouds: 51-84% 804 Overcast clouds: 85-100%

We can link the IDs above to a set of open source images so that we represent the weather of the upcoming weekend natively inside the table.