@Dobbie03 I was looking at the polybar thread under the artwork section, and saw your polybar config at one point contained a weather ?script?.. though when trying to look at your config to get an idea for how to do it, it was 404’d so I assume you changed/moved it?
Must’ve done something wrong. I wrote the weather script in at ~/.config/polybar/weather, added the module to modules.conf and then changed the workspaces module to weather… now I just have a white line separator that keeps reappearing and disappearing.
I’ll have to solve it in the morning I s’pose.
EDIT-- I’m not good at going to bed I suppose, so I tried some things
Noticed I had made it with sudo nano, so I didn’t own the file…
so sudo chown jase ./.config/polybar/weather
And just to make sure it could be executed chmod +x ./.config/polybar/weather though I’m not sure this was necessary.
@Xase, here is the weather script I use. You need to be a member of Gitlab and logged in.
For the weather to show up you need to create an account with openweathermap.org, replace the api key with yours and change the city name to your home town.
Thank you @Dobbie03. I unfortunately didn’t get it to work yet, probably missing something stupid simple. I tried both the city name and the city code. No change =/ Just the separator pops up and disappears.
In ArchLabs, for example, fonts 0-4 were already declared so I made weather icons font #5
Therefore, your label-font would be 6 in this example;
label-font = 6
Hi,
Does anyone know how to view the weather in Italian?
I can make @Dobbie03 modules work, but not @anon37345411, do you know why?
Then tomorrow, I see if I can make @mrneilypops work
thanks to all
I thought I accomplished that with chmod +x ./.config/polybar/weather ?
I have it executable though, just double checked with thunar.
I think I found the issue though… it’s using the curly double quotes that have a left and right instead of the mono quotes. I think because I used Atom it copied the formatting. Will report in a few moments
Edit:
It was the curly quotes, AND the blank format = line in glenn’s module I think as well… as after I removed that and the curly quotes “” in exchange for "" :o
Started right up after I removed format = then I noticed there was an error on line 5 since the script was actually trying to run… and saw the quotes looked weird.
The module @Dobbie03.
It does not seem to me the same.
Maybe it’s the old woman who’s changing me.
[module/weather]
type = custom/script
exec = /home/don/.config/polybar/weather.sh
click-middle = weather.sh
label = %output%
interval = 1800