Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waybar-wttr.py doesnt' respect units #1

Open
zombiehoffa opened this issue Jan 25, 2023 · 0 comments
Open

waybar-wttr.py doesnt' respect units #1

zombiehoffa opened this issue Jan 25, 2023 · 0 comments

Comments

@zombiehoffa
Copy link

Hi,
def format_temp(temp):
return (hour['FeelsLikeF']+"°").ljust(3)
hardcodes Fahrenheit when most places use celsius. I ended up just changing it to "FeelsLikeC" (also had to do this in a few more spots) and changing the requests.get url to https://wttr.in/MYCITY?m&format=j1 to force correct city and metric (otherwise whenever I connect my vpn if the weather update happens I get weird weather).

I am sure this is something that can be fixed proggramatically but I am not sure you will want to try or not as it works for you in this format, so hopefully if anyone else runs into this they can fix it from my paragraph above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant