Conversation
- Replaces the method of fetching the weather with a new one
- First grabs the location of the user using ip-api.com
- TODO: First try to grab location using Windows Location services (If not disabled)
- Takes the coordinates found, and calls OpenWeatherMap's API using a key I created to get the current weather conditions
- This new method is faster than grabbing the info from wttr.in due to the high latency of wttr.in
- wttr.in Ping is 115ms vs ip-api's 20ms and api.openweathermap.org 25ms under my favorable conditions
- This could vary based on location
|
It seems that Windows' reverse geocoding api ( |
- The .NET calls are ~10% faster than `Invoke-RestMethod`
Using |
Maybe: