awesome-wm-widgets/weather.md

21 lines
692 B
Markdown
Raw Normal View History

2017-03-12 03:02:54 +01:00
---
layout: page
---
2017-02-08 02:31:34 +01:00
# Weather widget
2017-03-12 03:02:54 +01:00
![Weather Widget](https://github.com/streetturtle/AwesomeWM/blob/master/weather-widget/weather-widget.png?raw=true)
2017-02-08 02:31:34 +01:00
Note that widget uses the Arc icon theme, so it should be [installed](https://github.com/horst3180/arc-icon-theme#installation) first under **/usr/share/icons/Arc/** folder.
## Installation
- install lua socket
2017-03-12 21:38:18 +01:00
{% highlight bash %}
2017-02-08 15:51:21 +01:00
$ sudo apt-get install lua-socket
2017-03-12 21:38:18 +01:00
{% endhighlight %}
2017-02-08 02:31:34 +01:00
- download json parser for lua: https://github.com/rxi/json.lua
2017-02-08 15:51:21 +01:00
- get Open Weather Map app id here: https://openweathermap.org/appid
2017-02-13 02:58:50 +01:00
2017-03-12 03:02:54 +01:00
You can read how it works in more details [here](http://pavelmakhov.com/2017/02/weather-widget-for-awesome-wm)