Added a WIFI widget, which shows signal strength, signal strength + wifi network name (on label_alt), and opens network settings (on right click)
Implemented @zombie-bear's weather widget fix from #103, as the current API doesn't seem to be working.
Description
I updated the config.yaml "last updated" information to reflect my updates.
Wifi Widget:
I added a new core "wifi' widget to widgets and validation. The widget uses os to get the user's signal strength, then displays said strength in the status bar using nerdfont icons (see image for icons)
On left click, the widget also displays the network name. It should be trivial to configure this to display other info, such as current upload/download rate. On right click, the widget opens Windows' network settings.
Weather Widget:
I implemented @zombie-bear's fix, using wttr.in instead of openweathermap.org. I, like zombie-bear, could not get openweathermap to function (possible due to API changes?), but after changing the API request to wttr.in had it working in seconds. I updated the default weather JSON paths to match the old content (temp in C, current condition), as well as the commented explanation in config.yaml.
Related Issues
105
103
Testing
OS: Windows 10 Pro
Komorebi: Yes
Python: 3.11.4
Terminal: Windows PowerShell in Windows Terminal
I ran the updated status bar on two computers in the default configuration (note that the missing icons are due to the default configuation using a nerdfont I don't have installed. This is already the case by default).
I linted the code using pylama (note that all errors seen in the image exist on the current yasb main branch, none of the added code is flagged).
I ran my custom theme with the new widget
I changed the config.yaml default options for wifi (eg: icons, update interval)
I tried multiple cities using wttr.in and verified the weather against local conditions
I haven't really been maintaining the python version of yasb as of recent, but this contribution looks great. The changes look pretty good so I'm happy to merge this in.
Pull Request - #105 & #103
Description
I updated the
config.yaml
"last updated" information to reflect my updates.Wifi Widget:
I added a new core "wifi' widget to
widgets
andvalidation
. The widget usesos
to get the user's signal strength, then displays said strength in the status bar using nerdfont icons (see image for icons) On left click, the widget also displays the network name. It should be trivial to configure this to display other info, such as current upload/download rate. On right click, the widget opens Windows' network settings.Weather Widget:
I implemented @zombie-bear's fix, using wttr.in instead of openweathermap.org. I, like zombie-bear, could not get openweathermap to function (possible due to API changes?), but after changing the API request to wttr.in had it working in seconds. I updated the default weather JSON paths to match the old content (temp in C, current condition), as well as the commented explanation in
config.yaml
.Related Issues
105
103
Testing
OS: Windows 10 Pro Komorebi: Yes Python: 3.11.4 Terminal: Windows PowerShell in Windows Terminal
I ran the updated status bar on two computers in the default configuration (note that the missing icons are due to the default configuation using a nerdfont I don't have installed. This is already the case by default).
I linted the code using pylama (note that all errors seen in the image exist on the current yasb main branch, none of the added code is flagged).
I ran my custom theme with the new widget
I changed the
config.yaml
default options for wifi (eg: icons, update interval)I tried multiple cities using wttr.in and verified the weather against local conditions
All of these performed as expected.