Closed nickthegroot closed 6 months ago
That's nice, I hadn't thought about handling it this way!
Thanks :)
I had to revert this change as it was not working with my coordinates for unknown reasons...
The code is now working this way:
const { city, zip } = position?.address || {};
location.current = zip || city;
The zip code should be enough to avoid city name collisions. Please let me know if this is working for you.
Description
I work in a city that shares a name with a larger one. As such, the weather widget's call to
wttr.in
was incorrectly giving the weather for the larger city instead of my own.This PR fixes the issue by instead fetching the weather based on a user's coordinates.
(Possibly) Related: #328
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
14.4.1 (23E224)
yabai-v7.1.0
Version 1.6 (82)
Checklist:
Changes to make to the documentation
N/A