I'm trying to enable weather widget for powerline but with no success. I added this code
{
"name": "weather",
"priority": 50,
"args": {
"unit": "F",
"location_query": "oslo, norway"
}
}
at the end of my theme file. When I start MacVim I get an error
Error detected while processing VimEnter Auto commands for "*":
2014-01-30 14:13:11,122:ERROR:vim:segment_generator:Failed to generate segment from {u'priority': 50, u'args': {u'location_query': u'oslo, norway', u'u
nit': u'F'}, u'name': u'weather'}: 'module' object has no attribute 'weather'
I've read powerline documentation but I'm still confused. Any help will be appreciated.
Here is how I configured weather for the Shell. I don't think it is possible with VI as it is not listed in the available segment
https://powerline.readthedocs.org/en/latest/configuration/segments/vim.html
Create the following folder tree:
~/.config/powerline/config.json
~/.config/powerline/themes/shell/netsamir.json
~/.config/powerline/colorschemes/shell/netsamir.json