JaouherK / streamDeck-weatherPlugin

Popular Stream Deck plugin for Weather reporting
https://jaouherk.github.io/streamDeck-weatherPlugin/
GNU General Public License v3.0
47 stars 16 forks source link

Bug report - Weather Key, Open Weather #84

Open sorren4 opened 2 years ago

sorren4 commented 2 years ago

Please write here a description of the bug and the steps to reproduce it. I created a new API key from Open Weather and changed the key in the Stream Deck software for the key that I use for that purpose. I even re-entered/set the specific settings for the data I was looking for (location, frequency, etc.). However, it doesn't want to update. I see the calls being made from the Stream Deck to the Open Weather console but it's not updating in the Steam Deck. The feature does seem to work with Weather API but that one regularly expires on me and I have to manually renew it. I'd prefer to use Open Weather if it is a functional option still. Thanks.

sorren4 commented 2 years ago

I may have it sorted. Open Weather doesn't support the state format when entering location. It wants the city, comma, 2 letter country code. So I had to put in 'my city, US' and it seems to work. Though it's hard to know if it's my exact city since there may be multiple instances of my city name in the US but only one in my state.

trust17 commented 2 years ago

I have tried what @sorren4 says and it does not work well, I put "micity, ES" and it still gives error. Thank you.

itsPinguiz commented 2 years ago

Same problem here. I have performed the following steps:

I still get the yellow triangle with an exclamation point inside of it anytime I push the button.

biglat1595 commented 2 years ago

I do have the same problem.

NGPixel commented 2 years ago

Looks like you need to press Enter in both the API Key and City Name fields, otherwise it doesn't appear the save it properly, leading to the yellow exclamation icon.

JebusWookiee commented 2 years ago

I had the same issues, I did a search for my city in Open Weather and then Copy and pasted the exact naming they give back. works now.

Formatting is "Melbourne, AU" needs to have a capital and the country is 2 letters and capitals.

nathaningram commented 2 years ago

Same issue with Open Weather. API and City are in but I get the triangle with exclamation point like others. I have tried using other cities, and I've made sure that the city names are correct per the listing on Open Weather.

traeblain commented 1 year ago

All had the same problem. It appears it won't work if the API produced multiple results, which OpenWeather is hard to correct for. i.e. Greenville produce NC, SC, MS, TX etc...

So you have to be able to put something in that narrows it down to a single item. I could only get it to work with WeatherAPI. In Weather API you should see API Explorer link. Go there and test your city to see if it shows the correct city. Also make sure you don't use "," in the command...the plugin seems to have issues with that. So for instance, if you want Greenville SC instead of the default NC, you'd put "Greenville SC" in the city name.

Also like @NGPixel said, make sure you hit enter after entering your API key and City Name to ensure it saves.

Hope that works for you all.

miguelsolorio commented 1 year ago

I encountered the same bug where the warning icon appeared when testing out the API. But it seems like issue is with OpenWeather and per their instructions when creating an account:

Within the next couple of hours, it will be activated and ready to use

So this won't work right away. After setting it up last night I tried it today and saw the weather appear after pressing the weather icon. So this does work it just has a delayed affect. You can also test the API using their samples and you'll receive a 401 error code which means:

Your API key is not activated yet. Within the next couple of hours, it will be activated and ready to use.