billziss-gh / EnergyBar

Supercharge your Mac's Touch Bar.
GNU General Public License v3.0
749 stars 34 forks source link

weather widget not refreshing #44

Open IshiMeresman opened 5 years ago

IshiMeresman commented 5 years ago

Awesome energy bar! small issue: what's the refresh rate for the weather widget? for some reason I can't trigger a refresh and get only old weather result or none.

billziss-gh commented 5 years ago

The weather widget refreshes itself once an hour. But it will also refresh itself every time it reappears on your touchbar (e.g. if you are using it with the clock, every time you swap between the clock and widget "faces").

At the same time the Weather widget only displays what Apple's internal WeatherKit framework tells it. So if the WeatherKit does not update the weather (e.g. because the weather remains the same or because you do not have Internet connectivity) then the displayed weather will not change.

In general the weather you get on EnergyBar and the weather you get on Notification Center should match, because they query the same source (WeatherKit). I believe I have also made EnergyBar query WeatherKit more proactively than NotificationCenter so I have found that EnergyBar displays more current weather (according to WeatherKit) than NotificationCenter in some circumstances.

ishaiMeresman commented 5 years ago

Thanks! overall great work! by the way, is there a way to "right click" on items in order to quit them from EnergyBar? thanks again and keep on the great job!

billziss-gh commented 5 years ago

If you long press on the clock widget or restart the app, a dialog will appear which allows you to customize what you want to have in the EnergyBar.