Jean-Tinland / simple-bar

A yabai status bar widget for Übersicht
https://www.jeantinland.com/toolbox/simple-bar
MIT License
1.21k stars 129 forks source link

Add simple Weather to Bar #90

Closed flewid closed 3 years ago

flewid commented 3 years ago

It would be nice to have simple weather on the statusbar, like ayu-nibar does it

https://github.com/ryanyz10/ayu-nibar

Jean-Tinland commented 3 years ago

That's a great suggestion, I can give it a try!

Jean-Tinland commented 3 years ago

If you pull the latest commit you'll find a Weather widget. You can activate it in settings.

Let me know if you encounter any problem.

flewid commented 3 years ago

hey cool! so mine shows , -2C

how do i set my location?

Jean-Tinland commented 3 years ago

You need to allow Übersicht access to your location. A popup should have opened when you activated the weather widget. You can manually enable it in macos settings.

image

I'll add a field in settings letting the user manually set a location. If nothing is set in this field, simple-bar will use the user geolocation.

Jean-Tinland commented 3 years ago

There is an issue which prevent the widget from working, I'm fixing it right now.

Jean-Tinland commented 3 years ago

Everything should be settled now, let me know if this is better.

Edit: You can setup a specific location in settings.

flewid commented 3 years ago

Cool, works now thank you. I did not receive the popup initially, however it was there in settings. It seems that when I have 'colors' checked off it's still colored though, with a 'rainbow' ish background. Here's a screen

https://www.dropbox.com/s/yifr5jy04sg2lc7/Screen%20Shot%202021-01-16%20at%205.44.42%20PM.png?dl=0

Jean-Tinland commented 3 years ago

There is indeed a special background during sunset & sunrise. I'll disable it in "no color" mode.

flewid commented 3 years ago

Thank you!

mikomagni commented 3 years ago

@Jean-Tinland very nice addition! Would it be possible to add a toggle to only show the temperature without the location name to keep Simple Bar smaller?

Screen Shot 2021-01-18 at 10 28 13 am
flewid commented 3 years ago

I like @MikoMagni 's Idea as well.

Plus it's kind of weird, but it's been dark now for 2 hours, and it's still showing me the sun icon?

g7mKT7LQ

Jean-Tinland commented 3 years ago

Thank you for your suggestions. I fixed some issues & added some options in settings for this weather widget:

  1. No more gradient background in "no color" mode (dark & light theme).
  2. Hide/show location (checkbox in settings).
  3. Clear sky at night now result in a Moon icon instead of a Sunny one.

Edit: typo

mikomagni commented 3 years ago

Thank you @Jean-Tinland

flewid commented 3 years ago

Great thanks, looks good.

Jean-Tinland commented 3 years ago

As it seems stable enough, I'll close this for now, feel free to re open it or create a new issue if necessary. Thank you for your help!

flewid commented 3 years ago

Thank you. I also noticed one more thing - I'm using the PyWal version for coloring (works great), however, now the gradient during sunrise/sunset is back (however, it's matching the PyWal colors now). Is it possible to have a checkbox to turn that feature off?

Jean-Tinland commented 3 years ago

Done :)

flewid commented 3 years ago

Cool thank you!