Closed bjagasia closed 2 years ago
Just as I submitted the issue, I changed some colors around and suddenly the weather module showed up. I'm not exactly sure what I did, trying to retrace my steps but the weather module finally seems to be working after changing some colors around in another text segment. Weird..
@bjagasia I'll check as it doesn't seem to do anything. On mobile right now and I need a bigger display to see what the issue might be 😬
No worries! Thank you so much. Oh My Posh is great! Appreciate the prompt response. Got it working, definitely was something with the colors for me!
@bjagasia can you set the timeout really high? As it works on my end.
This is the segment I added:
{
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#389c09",
"properties": {
"apikey": "377f51bf77a0f614ef980d1e5bcfa2f9",
"location": "BASTOGNE,BE",
"units": "metric",
"http_timeout": 500,
"cache_timeout": 15,
"template": " {{ url (printf \"%s%.f%s\" .Weather .Temperature .UnitIcon) .URL }} "
},
"type": "owm",
"style": "powerline"
}
Hi, yes -- I had the timeout really high, but what fixed it for me was changing the colors around in another segment. Really weird, but everything seems to be good now. Thank you so much! I'll close out the ticket for now :)
I also found that you have to enter the City, State, and Country for the location. If you use only the City and State, it won't return anything.
For example, BOSTON,MA
doesn't work, but BOSTON,MA,US
does work.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
Hi,
I can't seem to get the Open Weather Map segment to work. I've tested my API key already and upped the timeout on my profile. I'm currently using the sonicboom_light.json theme. I've added the config below:
{ "powerline_symbol": "\ue0b6", "foreground": "#ffffff", "background": "#389c09", "invert_powerline": true, "properties": { "apikey": "377f51bf77a0f614ef980d1e5bcfa2f9", "location": "BASTOGNE,BE", "units": "imperial", "enable_hyperlink": true, "http_timeout": 500, "cache_timeout": 15, "template": "[{{.Weather}} ({{.Temperature}}{{.UnitIcon}})]({{.URL}})" }, "type": "owm", "style": "powerline" },
Theme
sonicboom_light.json
What OS are you seeing the problem on?
Windows, Linux
Which shell are you using?
bash, powershell
Log output