Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom location #3

Closed
lightonflux opened this issue Jan 19, 2023 · 4 comments
Closed

Use custom location #3

lightonflux opened this issue Jan 19, 2023 · 4 comments
Assignees
Labels
Upstream Bugs caused by Libgweather or GNOME Weather

Comments

@lightonflux
Copy link

GNOME Shell Version

43.2

Expected Behavior

Show weather of selected location

Current Behavior

Location is based on location, which can be inaccurate if connected via a VPN or similar.

Detailed Description

It would be nice to manually select the location.

Ideally, the extension would allow using the locations from gnome weather. But as far as i can tell, the integrated weather widget in the notification area is using the same “wrong” method to determine the weather location.

@CleoMenezesJr
Copy link
Owner

CleoMenezesJr commented Jan 19, 2023

First, thanks for using my extension and having the kindness to suggest something.
The idea is to always depend on GNOME Weather and thus not need any other dependencies, except the one already on the system.

Weather information is available in specific places, and those need to be added/kept up to date. The main issue people have started to notice is that Weather/Clocks don't find all the locations because of a change in the UI.

In the case of using VPN, you can simply use GNOME Weather to switch locations to a chosen city¹ and if that location is not listed, I recommend contributing to libgweather. This way, you and others will benefit from the availability of these locations.

As for the weather sources: it's generally easier if people submit those locations. See: https://gnome.pages.gitlab.gnome.org/libgweather/adding-locations.html

From now on, I'm also trying to contribute to make this extension common to more people.

¹
image

@CleoMenezesJr CleoMenezesJr self-assigned this Jan 20, 2023
@CleoMenezesJr CleoMenezesJr added the enhancement New feature or request label Jan 20, 2023
@lightonflux
Copy link
Author

use GNOME Weather to switch locations to a chosen city¹ and if that location is not listed

I already tried that, but the extension did not update. Or so i thought because there was a temperature difference between the two. That is why i thought it was using the VPN location. The gnome weather widget below the clocks in the notification/ area (super+m) is always showing the VPN location, regardless what is selected in Weather.

I just checked it again and the temp difference was there again. But this time i updated Weather manually. So it looks like by default your extension displays more recent data. But i cannot say for sure as both your extension and Weather do not display timestamps.

What is the refresh time in the extension (and Weather, if you know that too)?

And how long does one need to wait after switching location?

@lightonflux
Copy link
Author

Example: Switched to london, but it does not update (yet?):

grafik

@CleoMenezesJr
Copy link
Owner

It looks like a bug with GNOME Weather. I just looked at their repo and there is a related issue to it there.
As a workaround, for now you can use DConf to manually change and even add some city that is not listed in GNOME Weather.
Example:
image

@CleoMenezesJr CleoMenezesJr added Upstream Bugs caused by Libgweather or GNOME Weather and removed enhancement New feature or request labels Jan 22, 2023
@CleoMenezesJr CleoMenezesJr pinned this issue Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upstream Bugs caused by Libgweather or GNOME Weather
Projects
None yet
Development

No branches or pull requests

2 participants