From f19362afdfc248f96c3513b7be1d6b22bcae75e3 Mon Sep 17 00:00:00 2001 From: Aurélien LAJOIE Date: Wed, 20 Feb 2019 14:24:36 +0100 Subject: [weather] Check if the response is not null before decoding it. With network glitch you can have sometimes empty answer, this was triggering an exception. --- weather-widget/weather.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua index 484c2c6..d5f07f8 100644 --- a/weather-widget/weather.lua +++ b/weather-widget/weather.lua @@ -97,7 +97,7 @@ weather_timer:connect_signal("timeout", function () .. secrets.weather_widget_city .. '&appid=' .. secrets.weather_widget_api_key .. '&units=' .. secrets.weather_widget_units) - if (status ~= 200) then + if (status ~= 200 and resp_json ~= nil) then local err_resp = json.decode(resp_json) naughty.notify{ title = 'Weather Widget Error', -- cgit v1.2.3 From 98bcfd09d3dd894fbfb0f5c005aeb3cba67e8a59 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 24 Feb 2019 08:57:37 -0500 Subject: Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 84915bc..5160147 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Awesome WM widgets - + +![stars](https://img.shields.io/github/stars/streetturtle/awesome-wm-widgets.svg) +![forks](https://img.shields.io/github/forks/streetturtle/awesome-wm-widgets.svg) + Set of super simple widgets compatible with Awesome Window Manager v.4+. ![screenshot](./screenshot.png) -- cgit v1.2.3 From 2400807c896aa035da3138864f2fb3ad173a2734 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 24 Feb 2019 09:24:33 -0500 Subject: awesome logo --- awesome.png | Bin 0 -> 580 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 awesome.png diff --git a/awesome.png b/awesome.png new file mode 100644 index 0000000..6960955 Binary files /dev/null and b/awesome.png differ -- cgit v1.2.3 From 776c7bcb98ec631e56b50801988e4403adcb01ca Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 24 Feb 2019 09:25:23 -0500 Subject: Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5160147..19b639f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Awesome WM widgets +![logo](./awesome.png) ![stars](https://img.shields.io/github/stars/streetturtle/awesome-wm-widgets.svg) ![forks](https://img.shields.io/github/forks/streetturtle/awesome-wm-widgets.svg) -- cgit v1.2.3 From 3e92e76024114ea09148d0768d7ba2c6c4a24bd7 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 24 Feb 2019 09:32:26 -0500 Subject: Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 19b639f..3ef3107 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ -# Awesome WM widgets -![logo](./awesome.png) +

+ logo +

![stars](https://img.shields.io/github/stars/streetturtle/awesome-wm-widgets.svg) ![forks](https://img.shields.io/github/forks/streetturtle/awesome-wm-widgets.svg) -- cgit v1.2.3 From 3cf2ef50387848305052235d60f09deb7433eeb0 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 24 Feb 2019 15:29:14 -0500 Subject: Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ef3107..a2fc3ec 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,10 @@ logo

-![stars](https://img.shields.io/github/stars/streetturtle/awesome-wm-widgets.svg) -![forks](https://img.shields.io/github/forks/streetturtle/awesome-wm-widgets.svg) +

+ + +

Set of super simple widgets compatible with Awesome Window Manager v.4+. -- cgit v1.2.3 From 900983a4bfc9d6dec82b92056273818c3b8e80d7 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 24 Feb 2019 16:43:53 -0500 Subject: awesome-0 --- awesome-o.png | Bin 0 -> 1301 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 awesome-o.png diff --git a/awesome-o.png b/awesome-o.png new file mode 100644 index 0000000..424d008 Binary files /dev/null and b/awesome-o.png differ -- cgit v1.2.3 From 737d8bcebd5705f38ef0aeb6b884e722761c4903 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 24 Feb 2019 16:44:42 -0500 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a2fc3ec..c873e6a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- logo + logo

-- cgit v1.2.3