penguin-teal / gnome-openweather

A GNOME Shell extension to show the weather of any location on Earth.
GNU General Public License v3.0
58 stars 18 forks source link

can't set API key, value is set to empty #47

Closed netphantm closed 5 months ago

netphantm commented 5 months ago

Description

Personal API Key field conains a "!" and 'forgets' API key if I paste one there. after re-opening the settings dialog, this field is empty again.

System

Ubuntu 24.10

Settings

{"app-version":"136","git-version":"136.r1.g8d02397","gnome-version":"46.0","user-locale":"en","appid":"<KEY>","actual-city":"0","weather-provider":"'openweathermap'","has-run":"true","days-forecast":"3","delay-ext-init":"10","locs":"[(0, '<NAME>', 0, '<PLACE>'), (0, '<NAME>', 0, '<PLACE>')]","expand-forecast":"true","weatherapidotcom-key":"<KEY>"}

image

from the log

2024-06-16T14:53:33.680834+02:00 zoidberg gjs[107065]: JS ERROR: Error: GSettings key keys not found in schema org.gnome.shell.extensions.openweatherrefined#012_checkKey@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:779:23#012createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:729:30#012settingsSetKeys@file:///home/hugo/.local/share/gnome-shell/extensions/openweather-extension@penguin-teal.github.io/locs.js:381:12#012GeneralPage/<@file:///home/hugo/.local/share/gnome-shell/extensions/openweather-extension@penguin-teal.github.io/preferences/generalPage.js:470:22#012_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
mlmilliman commented 5 months ago

The same goes for geolocation data. The extension doesn't use the keys for geolocation either.

Austaras commented 5 months ago

Duplicate of #41, but maybe a new release should be made soon as possible?

netphantm commented 5 months ago

yeah, I didn't find that one, cos it's closed..

businessBoris commented 5 months ago

Got an Open Weather API key and can't add/enter the key in the extension as it says it's invalid. I've copy-pasted it from the Open Weather email and it's not accepted - there's no way to actually test the key validity - no button to click etc - it just shows a triangle with a pling (!) in. I've waited the several hours to let them make it valid. I guess that's probably why it isn't saved anywhere. Either way, that feature doesn't work at all.

lev741 commented 5 months ago

Same on Fedora 40 Workstation. I tried use dconf to set key but no luck.

pnearing commented 5 months ago

Duplicate of #41, but maybe a new release should be made soon as possible?

In the comment thread there, about 2 weeks ago, penguin-teal, the owner of the repo said a release will be soon. Is there any update on this?

jhpratt commented 5 months ago

Based on #51 (which presumably fixes this issue), this worked for me:

gsettings --schemadir ~/.local/share/gnome-shell/extensions/openweather-extension@penguin-teal.github.io/schemas set org.gnome.shell.extensions.openweatherrefined custom-keys "['', '<key>', '', '']"
lamyergeier commented 5 months ago

Facing it on Fedora 40 Gnome

djandiek commented 5 months ago

Just tried @jhpratt solution (using my API key) for openweathermap.org and it works.

penguin-teal commented 5 months ago

Duplicate of #41.