gelin / weather-notification

An utility which displays the weather in the Android notification bar
GNU General Public License v3.0
26 stars 11 forks source link

weather update failed: problem communicating with api #48

Open gelin opened 6 years ago

gelin commented 6 years ago

Original report by Anonymous.


It gives that error when i update, but it seems to be returning data.

When I check debug logs, it has {"coord"....."temp:290.17".....}, so the API call is successfully returning data.

Using lineage 14.1

gelin commented 6 years ago

Original comment by Bjoern Schiessle (Bitbucket: schiessle, GitHub: schiessle).


I can verify that the same issue exist with LineageOS 15.1. I installed the app from fdroid, version 0.3.10.

The debug log shows that the data are received correctly. Still the app shows the API error and don't display the weather information.

gelin commented 5 years ago

Original comment by J Klein (Bitbucket: Dr_Schmoctor, ).


Exactly the same issue for me on Galaxy S7 7.0, logs shows updated weather data, but app says problem communicating with api

Edit (nov 14): I upgraded to Oreo 8.0 and the fdroid version works fine now.

gelin commented 5 years ago

Original comment by 陈少举 (Bitbucket: chenshaoju, GitHub: chenshaoju).


This issue only happens in F-Droid Version. Google Play version is fine.

gelin commented 5 years ago

Original comment by Bjoern Schiessle (Bitbucket: schiessle, GitHub: schiessle).


Indeed, I tested it and can confirm that the Google Play version works. Both ship version 0.3.10 of the app. Any idea how to find out what is broken on the fdroid build and how to fix it?

gelin commented 5 years ago

Original comment by J Klein (Bitbucket: Dr_Schmoctor, ).


I upgraded my s7 to Oreo 8.0 and the fdroid version works fine now.

gelin commented 5 years ago

Original comment by Patrick Wong (Bitbucket: HawkTalon, GitHub: HawkTalon).


Confirmed the issue on my side too.

  1. Both Google Play Store or FDroid version (0.3.10) doesn't work.
  2. Device: OnePlus 6, Android Pie 9.0, OxygenOS 9.0.2 (stock no-root), Amazfit Bip
  3. Tried: Regenerating keys, restarting phone, clean reinstallation (delete data files).

The app on its own works to update weather. Just would fail when the API key is inserted.

gelin commented 5 years ago

Original comment by easyKL (Bitbucket: easyKL, GitHub: easyKL).


Same here with an install from F-Droid on LOS 15.1 Different keys tried, restart done, & debug shows API returned data. Error message: Weather update failed: Problem communicating with API

gelin commented 5 years ago

Original comment by 133794m3r (Bitbucket: 133794m3r, GitHub: 133794m3r).


What's the difference between the google play version and the f-droid version that makes one work and the other not. I've done the same thing different API keys confirmed that it's working AOK from a different app, my api keys work just fine.

gelin commented 5 years ago

Original comment by John Snow (Bitbucket: isilmo, GitHub: isilmo).


I'm having this issue with the app from Aurora as well as the app from F-Droid. I've restarted, rebooted, generated new keys, etc. but nothing is working.

I'm on a Xiaomi Redmi Note 5 Pro with AOSP Extended.

gelin commented 5 years ago

Original comment by Denis Nelubin (Bitbucket: gelin, GitHub: gelin).


During my experiments I’ve found the OpenWeatherMap key is not activated immediately after the creation. There are many complains for this. In my case it took more than 10 minutes before the key start working.

The OpenWeatherMap support answers:

API keys take up to 2 hours to became active.

So, please, check again. Is the issue caused by the just-created new key which is not activated yet?

gelin commented 5 years ago

Original comment by K Everets (Bitbucket: [K Everets](https://bitbucket.org/K Everets), ).


I’m using the latest version in F-Droid (0.3.10 added on 2017-09-06), LineageOS 14.1, and I attempted to use an openweathermap key created in January 2018. Turning on debugging shows that the key appears to be working (there’s a valid response in files/debug showing the correct “coord”, sunrise/senset/forecast), however the “Weather Notification” app still shows a toast saying “Weather update failed: Problem communicating with API”.

The problem doesn’t appear to be the age of the key, but rather the parsing of the response.

gelin commented 5 years ago

Original comment by ge mi (Bitbucket: [ge mi](https://bitbucket.org/ge mi), ).


The error is because the free api key has no forecast/daily but the default key of the developer works because it has. The weather request works with both. So do not use personal free api key.

gelin commented 5 years ago

Original comment by Nacho Pro (Bitbucket: nachopro, GitHub: nachopro).


These are the services provided by OWM:

gelin commented 4 years ago

Original comment by Frans Meulenbroeks (Bitbucket: [Frans Meulenbroeks](https://bitbucket.org/Frans Meulenbroeks), ).


I had the same error message and debug logs. It worked for me for about two months, but stopped working on oct 25.

I removed the personal key as ge mi suggested and things start to work again.

This is on Android 7.1 on Moto G, not on lineage, app downloaded from F-droid

gelin commented 4 years ago

Original comment by Kyle Tirak (Bitbucket: [Kyle Tirak](https://bitbucket.org/Kyle Tirak), ).


I think this issue may be causing problems with Gadgetbridge devices like Pebble watchfaces that ask the user to use their own API key for OWM.

gelin commented 4 years ago

Starting from v0.3.11 the app uses "onecall" API of OpenWeatherMap. Probably, this can solve the issue.

lunainvictum commented 4 years ago

With the latest version, released 3 Days ago, still didnt working.

Using Lineageos 17.1

Everytime a Error popups with: Problem communication with API: https://put_long_openweatherurl_here

I wanted to add a debug log. But the path where the debug log should be, is empty too (its enabled).

wiselynx commented 4 years ago

I can give yet another confirmation about the problem. I was using v.3.10 from Fdroid which worked flawlessly since 3 days ago (last working update was on 22/06 at 08:20 CEST). Then it abruptly stopped working, and won't work neither with the builtin API n key nor with a personal one. If I enable debug, I can see JSON files for my API key which seem to be ok; no debug file is generated for the builtin key.

I tried upgrading to v.3.11 from PlayStore, and using my private API key it works but then the integration with Gadgetbridge breaks (which, being the reason for having Weather Notification in first place, makes the whole thing a bit pointless for me).

Please let me know if I can help by providing further details or making different attempts.

freecycler commented 4 years ago

I was using older version 0.3.9 on a very old FroYo device. Like everybody else on here it stopped working on 6/22. I would have liked to try the newer releases, but they do not seem to be compatible any more, and I can't seem to find a replacement app that is compatible. I do see what looks like the data being returned but it does not seem to get parsed since OpenWeatherMap made the change to OneCall. ... is there any hope that this app will ever again work with FroYo?

gelin commented 4 years ago

Froyo is Android SDK 8. It's too old. If somebody may fork the v0.3.9 and update the OWM APIs there, welcome. But not me, sorry.

Probably, it's better to try to adopt the current version to work with SDK 8. Because v0.3.9 cannot be built with the modern Android tools. But even com.android.support libraries require SDK 14. :(