aix-weather-widget icon indicating copy to clipboard operation
aix-weather-widget copied to clipboard

Android 11 finally killed it...

Open lazerhawk opened this issue 3 years ago • 36 comments

Looks like a permanent compatibility problem with Android 11, as the widget won't load.

Many thanks for years of service!

lazerhawk avatar Sep 10 '20 06:09 lazerhawk

The king is dead, long live the king... https://play.google.com/store/apps/details?id=com.cloud3squared.meteogram

rivonia avatar Sep 10 '20 13:09 rivonia

I am gonna miss Aix... Hope it's not abandoned.

bigmak40 avatar Sep 15 '20 17:09 bigmak40

Can't say I like meteograph. AIX was everything I wanted. Perhaps I can help fix it.

connortechnology avatar Sep 16 '20 14:09 connortechnology

Here's a snippet from logcat when it crashes - I do hope it'll be fixed, as I still cannot find anything better than this widget!

09-21 21:10:37.974 11936 11966 D AixUpdate: Updating both portrait and landscape mode
09-21 21:10:37.989 11936 11966 D AixUpdate: Scheduling next update for: 9/21/20 22:01 AwakeOnly=false
09-21 21:10:37.989 11936 11966 D AixUpdate: process() ended!
09-21 21:10:38.060  9059  9081 E FrameEvents: updateAcquireFence: Did not find frame.
09-21 21:10:38.063 11936 11954 E DatabaseUtils: Writing exception to parcel
09-21 21:10:38.063 11936 11954 E DatabaseUtils: java.lang.IllegalStateException
09-21 21:10:38.063 11936 11954 E DatabaseUtils:         at net.veierland.aix.AixProvider.getType(AixProvider.java:714)
09-21 21:10:38.063 11936 11954 E DatabaseUtils:         at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:2188)
09-21 21:10:38.063 11936 11954 E DatabaseUtils:         at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:2253)
09-21 21:10:38.063 11936 11954 E DatabaseUtils:         at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:553)
09-21 21:10:38.063 11936 11954 E DatabaseUtils:         at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:327)
09-21 21:10:38.063 11936 11954 E DatabaseUtils:         at android.os.Binder.execTransactInternal(Binder.java:1154)
09-21 21:10:38.063 11936 11954 E DatabaseUtils:         at android.os.Binder.execTransact(Binder.java:1123)
09-21 21:10:38.065  9059  9059 W AppWidgetHostView: Error inflating RemoteViews : android.widget.RemoteViews$ActionException: java.lang.IllegalStateException

tfoel avatar Sep 21 '20 19:09 tfoel

Can't say I like meteograph. AIX was everything I wanted. Perhaps I can help fix it.

Agreed, I tried it and it's way too complicated.

bigmak40 avatar Sep 23 '20 00:09 bigmak40

@bigmak40 it's as complicated as you want it to be. Simple version is: select the "AIX lookalike" preset from the Predefined Option Sets section of the settings, choose the location you want in the Location section, and that's it. Around three or four clicks. Doesn't seem complicated to me. Resulting comparison between meteogram and aix:

AIX v Meteogram

After that, the customisation possibilities are endless... if you want to. Or just leave in AIX-lookalike mode.

rivonia avatar Sep 23 '20 11:09 rivonia

Yeah, meteograph is just crazy configurable - but it's great!

alexbk66 avatar Sep 30 '20 14:09 alexbk66

Hello!

The Aix Weather Widget app was unpublished from Google Play on 2020-08-21 due to insufficient time available to maintain it further. I'm glad that the app has provided some value to its users over its lifetime, and I'm sorry for the inconvenience of removing it.

I hope that its source code may remain useful to someone :-)

pveierland avatar Oct 02 '20 16:10 pveierland

First of all, thank you again @pveierland for bringing us this amazing widget, and for publishing the app's code, we'll do our best to maintain the app, at least running on our device.

For those interested in fixing this bug, I've checked out the code and updated id to latest versions (migrate to AndroidX + latest version of build tools and dependencies...).

The error is located in AixProvider.java, in the getType function (here), thowing an exception if sUriMatcher.match(uri) doesn't match anything. A quick and dirty fix was to comment this line and return an empty string instead.

I'll try to investigate a bit more why this error occurs, fix the app in a better way, and put it on a forked repo.

AlainMuller avatar Oct 05 '20 20:10 AlainMuller

@bigmak40 it's as complicated as you want it to be. Simple version is: select the "AIX lookalike" preset from the Predefined Option Sets section of the settings, choose the location you want in the Location section, and that's it. Around three or four clicks. Doesn't seem complicated to me. Resulting comparison between meteogram and aix:

AIX v Meteogram

After that, the customisation possibilities are endless... if you want to. Or just leave in AIX-lookalike mode.

Hi, i can't find this Predefined Option Sets section in my Meteogram-Pro Settings. 🤔🤷🏻‍♂️

andreasrichter72 avatar Dec 09 '20 05:12 andreasrichter72

@andreasrichter72 it's the third section down from the top in the settings. Open that section, then choose the settings preview you like best... if the aix-lookalike isn't showing initially just hit Shuffle until it does.

rivonia avatar Dec 09 '20 13:12 rivonia

@bigmak40 it's as complicated as you want it to be. Simple version is: select the "AIX lookalike" preset from the Predefined Option Sets section of the settings, choose the location you want in the Location section, and that's it. Around three or four clicks. Doesn't seem complicated to me. Resulting comparison between meteogram and aix:

AIX v Meteogram

After that, the customisation possibilities are endless... if you want to. Or just leave in AIX-lookalike mode.

@andreasrichter72 Thank You, Thank You, Thank You. Just upgraded to Android 11 and was REALLY REALLY missing Aix. Would have never found Meteogram without your pointer.

btw, what's the difference between the Pro version and updating the standard version to Platinum (other then the periodic cost of the Platinum version versus the one time cost for the Pro version). I couldn't figure out the difference.

Did I say Thank You yet? 👍

tvBilly avatar Feb 03 '21 12:02 tvBilly

what's the difference between the Pro version and updating the standard version to Platinum

@tvBilly take a look at the features listed on the play store description for the Pro version. With the Pro version you get everything listed in the Pro Version section but not the Platinum Upgrade section. In other words, you can use the various "free" data sources, including the same ones that AIX uses, without any ongoing subscription.

rivonia avatar Feb 03 '21 13:02 rivonia

what's the difference between the Pro version and updating the standard version to Platinum

@tvBilly take a look at the features listed on the play store description for the Pro version. With the Pro version you get everything listed in the Pro Version section but not the Platinum Upgrade section. In other words, you can use the various "free" data sources, including the same ones that AIX uses, without any ongoing subscription.

@rivonia Thanks. Somehow I missed the section that clearly states the difference between the Platinum Upgrade and the Pro version. I only need the Pro version as I use NOAA as my source and don't have any need for the tide information. I was able to cancel my Platinum subscription and just buy the Pro version, thanks to the generous trial offer conditions that come with the Platinum Upgrade. Somehow I even had the sense to save my old widget settings to the server before I deleted the standard/platinum version and bought the Pro version (saved me 20 minutes of reconfiguring).

I'm just beginning to fathom all that Meteograph can do. As long as I have your ear, and if you don't mind, how did you get the "Daylight" shading to show the horizontal grading (representing the sunset and sunrise duration) and how did you remove the "Daylight" vertical shading (which I don't know what it represents). Also, how did you get rid of the vertical line representing midnight and the horizontal line indicating freezing (at 32°F or 0°C).

tvBilly avatar Feb 03 '21 14:02 tvBilly

how did you get the "Daylight" shading to show the horizontal grading (representing the sunset and sunrise duration)

Look in the Sunrise and Sunset section, then change Gradient to "horizontal". Note that this is an artificial representation of sunrise/set duration (probably similar to AIX)... i.e. just a fixed fade width regardless of location and time of year. You can instead use the "twilight stages" feature in the same section to add bands (even with horizontal shading) to provide a more realistic representation of sunrise/sunset duration, i.e. taking account of the actual twilight duration (whichever one you want)... that's for another day maybe but it's pretty cool.

how did you get rid of the vertical line representing midnight

Not sure... think you might be able to by setting Theme in Chart Style section to "Custom..." and then going from there?

and the horizontal line indicating freezing (at 32°F or 0°C).

Look in the Common Temperature Settings section.

rivonia avatar Feb 03 '21 14:02 rivonia

how did you get rid of the vertical line representing midnight

Not sure... think you might be able to by setting Theme in Chart Style section to "Custom..." and then going from there?

@rivonia That was the place. Just needed to set the "Width of vertical line between days" to 0. (No need to access "Custom"

All your other solutions were correct (and I'll play with the "twilight stages" section, as you say, another day).

Again, thanks for the help!

tvBilly avatar Feb 03 '21 15:02 tvBilly

Oh, glad I found this repo and comments. What a great widget it is, serving me from early Android days. I stumbled upon Meteogram which is also inspired by AIX. It's sad that AIX no longer works on Android 11, but all good things come to an end and many thanks to author for making such a wonderful widget

andreyzh avatar Mar 03 '21 18:03 andreyzh

For all who can't live without AIX like me ;) : https://github.com/Gitsaibot/AF-Weather-Widget

Only tested with android 10 and 11! You can use my fork if you want to build it yourself. @AlainMuller Did you find a solution for the error ?

Edit: It seems that under android 11 the AixProvider is called again after the AixUpdate. Why I do not know. But the sUriMatcher then returns the value: AIXRENDER which does not occur in the switch case query.

Gitsaibot avatar Mar 04 '21 18:03 Gitsaibot

Thanks to @pveierland for this great gadget and @Gitsaibot for giving it a maintenance. I can't live without it too ;-).

It does work on my Android 6 nubia phone.

feg2hi avatar Mar 07 '21 17:03 feg2hi

Thank you @Gitsaibot I've pull your code to my fork, the error was due to a change in the met.no API, see @jacekfabirkiewicz update here : https://github.com/jacekfabirkiewicz/aix-weather-widget/commit/a76ab4db579e0c80380ceba07605c66fd809afad

Glad to see so much people still enjoying this widget! 😄

AlainMuller avatar Mar 11 '21 10:03 AlainMuller

I find it slightly amusing how some people are so frightened of change... there are at least two other widgets on the Play Store that are being actively maintained (see here) and that do almost exactly the same as AIX.

rivonia avatar Mar 11 '21 11:03 rivonia

Its not much being frightened oh change than help maintaining an open source tool that has been used for several years and that just do the job right. I think we all owe this app a little help for what it has done for us during all the time. 😉

AlainMuller avatar Mar 11 '21 11:03 AlainMuller

Just adding to the long list of thank yous!

It was a brilliant widget! Thank you, @pveierland, for your work!

janexner avatar Mar 11 '21 12:03 janexner

@AlainMuller fair enough but since switching from AIX widget to meteogram widget, I won't be looking back:

example

rivonia avatar Mar 11 '21 16:03 rivonia

@AlainMuller fair enough but since switching from AIX widget to meteogram widget, I won't be looking back:

Exactly. It's highly configurable, and you can make it look exactly like AIX (there's even preset for this)

alexbk66 avatar Mar 11 '21 23:03 alexbk66

Those looking for another alternative with fewer options but simpler configuration could also have a look at Glance Weather: https://play.google.com/store/apps/details?id=com.meliorize.glanceweather

Artboard 1

Meliorize avatar Mar 13 '21 17:03 Meliorize

In weather app - the weather is important, no matter how nice it looks - if temperature is 6 deg off - would you use it? AIX forecast was always spot on, including rain.

alexbk66 avatar Mar 14 '21 01:03 alexbk66

@alexbk66 all of the AIX alternatives mentioned here use the same data sources as AIX, so you'll get exactly the same weather forecast. This one also has a whole bunch of other sources to try too.

rivonia avatar Mar 14 '21 12:03 rivonia

Just dropping in to thank the developer for such a nice little widget, has been with me ever since the days of android 2.1 on the Xperia X8. Never missed a beat!

RnebDG avatar Mar 31 '21 13:03 RnebDG

Thank you @Gitsaibot I've pull your code to my fork, the error was due to a change in the met.no API, see @jacekfabirkiewicz update here : jacekfabirkiewicz@a76ab4d

As you have noticed, locationforecast version 1.9 was terminated a month ago in favour of 2.0. However @AlainMuller @Gitsaibot there is still some work that needs to be done after forking the original code.

The aa033wckd2azu8v41 subdomain belongs to @pveierland and has his personal contact information. Since he has officially ended support and has pulled the app from the store, as well as existing installations no longer working, the subdomain will be removed soon. Please contact us at [email protected] to register a new subdomain if you plan to put up a new version on Google Play (in the mean time you can use the main api.met.no domain).

Also, the README in the source code clearly states:

The user agent information must be changed if used in a modified application. The GeoNames username must be changed if used in a modified application.

After checking the logs, we notice that all your forked versions still identify themselves with @pveierland's personal contact information. I haven't checked the GeoNames username in the forked codebases, but I assume this has not been changed either.

    662 "Aix Weather Widget/0.1.9.20 (https://www.veierland.net/aix/; [email protected])"
     15 "Aix Weather Widget/0.2.1.03 (https://www.veierland.net/aix/; [email protected])"
    562 "Aix Weather Widget/1.0 (https://www.veierland.net/aix/; [email protected])"
      6 "Aix Weather Widget RB/0.2.0.0 (https://www.veierland.net/aix/; [email protected])"

In addition to violating his privacy this is also a breach of our TOS. If you fork the code you must replace the User-Agent header with something that identifies your specific fork, e.g. a link to your GitHub repo. Ideally, the subdomain name, User-Agent string and Geonames username should not reside in the code at all, but in a local configuration file used only during installation.

geira avatar Apr 07 '21 13:04 geira