JohnCoates/Aerial

Weather overlay location not updating in Sonoma 14.0

stilwellweather opened this issue · 11 comments

General troubleshooting tips

Before logging an issue please check that:

  • You have the latest version installed (There may be a beta version that fixes your issue), see here for the latest releases and bug fixes: https://github.com/JohnCoates/Aerial/releases
  • Your issue isn't already mentioned in our issues. You may find a workaround there or a similar request already made.
  • Your problem isn't mentioned in the troubleshooting page.

If none of this fixes your issue, tell us about the problem you are experiencing or the feature you'd like to request.

Required information

In order to help us sort your issue, we ask that you provide the following information:

  • Mac model: 2022 M2 13" MBP
  • macOS version: 14.0
  • Monitor setup: built-in display only

If appropriate, please enable Debug mode and Log to disk in Advanced tab and replicate your bug, then attach the AerialLog.txt file (You can access this file through the Advanced tab).

Description of issue / Feature request

Whenever I take my laptop to work, the location used for the weather overlay never updates.

I tried re-installing Aerial through Homebrew and the issue persisted.

I tried turning location services off and the program was still pulling a location for me - my home city.

After reviewing the log file (attached), it looks like Aerial is using cached location data rather than dynamically updating my location as it did under Ventura.
AerialLog.txt

glouel commented

Hey @stilwellweather

Your log extract is from System Settings so it doesn't mean much. What you see in that precise case is that Aerial will only fetch those once per time it's launched. This is a local runtime cache that is hit in that instance.

There is however (I think, been a while I worked on this) a secondary cache where I store your last known location in preferences, this is a workaround for cases where your location may not be available.

There's a bunch of new restrictions for screensavers in Sonoma so it's quite possible that location services can't run when the screen saver is running and I missed that, but that's not what your log shows. I'll try to have another look but in general you want a log from the screensaver itself running, not under system settings (which has a different set of restrictions, I know, it doesn't make sense, but that's the way it works 😩).

I'll try to have a look and keep you posted.

glouel commented

Quick update, I think I can confirm that this is a new restriction. Usually allowing legacyScreenSaver to access your location was enough but for some reason it fails :

2023-10-05 19:39:56.151 : Starting Location initialization
2023-10-05 19:39:56.151 : Location services disabled
2023-10-05 19:39:56.151 : Couldn't retrieve your location, using latest cached coordinates instead

I'll try to dig a bit but it's just one more of these annoying restrictions. As a workaround in the meantime, if you use Aerial Companion, because it's unrestricted (providing you allow it to use your location, obviously, that's in system settings), it should be able to look up your location fine and the screensaver will use that later on.

Can confirm Aerial Companion is able to access my location as I move around. Likely going to use that moving forward. Thanks for the tip!

Spoke too soon - I'm seeing the same issue in the Aerial Companion log as well. Did the exact same troubleshooting steps and it's still pulling my work address rather than my home address.

Probably going to turn the overlay off for the time being and turn it back on if/when there's a solution. Thank you for looking into this!
AerialUnderCompanionLog.txt

glouel commented

I think because it caches your location, it will only look it up again if you quit/restart Companion.

It's not great and I'll try to think of a workaround for this.

glouel commented

@stilwellweather i should have a workaround later today, would you have some time to give it a test ?

glouel commented

@stilwellweather

Afterwards location should work again. Please note though, weather is cached for 15 minutes between launches (this is to make sure we don't get kicked of the free weather forecast api). Let me know how it works for you.

Sure thing!

I'm remote today - I'll be able to report if the location automatically updates tomorrow. Thanks for jumping on this so quick!

Looks like it's updating like it did pre-Sonoma. I work where three different municipalities overlap and it looks like the overlay is moving between the municipalities (which is normal behavior) like before. I'd consider this resolved.

glouel commented

Awesome, thanks for confirming ! there's a 15 mins delay between updates so it's possible if your commute is short you get the wrong location (and it was exactly the same before), but for 99.9% of the cases it should be fine !

Closing this, let me know if you still hit an issue, take care!