Commit Graph

28 Commits

Author SHA1 Message Date
Aurélien LAJOIE efc2131442 [weather] Add delay between retry
Having an error message every minute is painful, double time to 15 min.
Reset to 1min in case of success.
2020-02-07 21:11:29 +01:00
Pavel Makhov 7403bdb0f6 gerrit widget 2019-09-22 22:44:50 -04:00
Aurélien LAJOIE e154daa8b6 [Weather] Add option to set the position of the notification 2019-09-18 01:31:26 +02:00
Aurélien LAJOIE 59ce0053ac Catch error is the answer is not a valid json string
This was triggered by a public wifi pushing an html file to all request
2019-09-18 01:27:22 +02:00
blix4 7997625cdc fix after applying blix4's commit 2019-09-03 21:21:49 -04:00
Sviatoslav Sydorenko b41daeb9b2 Query weather with async timeouts
Fixes #81
2019-09-02 15:45:17 -04:00
Pavel Makhov 434cdae5e2 pr #84 2019-07-11 13:31:46 -04:00
streetturtle 7df447fb50 externalize config for weather widget 2019-05-03 21:46:49 -04:00
Aurélien LAJOIE f19362afdf [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.
2019-02-20 14:36:41 +01:00
Pavel Makhov d198207ee2 Make temperature units customizable using the secrets.lua 2019-01-29 14:59:09 -05:00
Pavel Makhov ee396d7c5b add error handling to weather widget 2019-01-26 22:54:49 -05:00
Pavel Makhov 15e6d0fcd9 store api keys and client settings in secrets.lua 2019-01-25 22:26:16 -05:00
streetturtle 472d03be0e small refactoring 2018-10-08 11:48:48 -04:00
Sviatoslav Sydorenko c5181829f5
Reimplement wind direction detection properly
Fixes #39

Ref: https://www.campbellsci.eu/blog/convert-wind-directions
2018-03-27 18:46:58 +02:00
Sviatoslav Sydorenko 77b50a21e6
Take into account case with an unset wind degrees
Fixes exception, which happens when comparing nil to a number
2018-03-22 09:46:46 +01:00
Sviatoslav Sydorenko 2e12e47eb1
Beautify pop-up code style 2018-03-21 19:18:11 +01:00
Sviatoslav Sydorenko 1381ea5275
Access weather API via HTTPS 2018-03-21 19:17:56 +01:00
Sviatoslav Sydorenko 5a5c9eb8f0
Read city and api key from env first
Corresponding env vars are:
* AWW_WEATHER_CITY
* AWW_WEATHER_API_KEY
2018-03-21 19:16:43 +01:00
streetturtle 968d9ba784 few small changes 2018-01-20 23:17:25 -05:00
streetturtle 04ca3d56f4 few small changes 2018-01-20 23:16:38 -05:00
Roger Welsh 824af2b0ae Added wind direction to weather.lua 2018-01-14 13:41:54 +13:00
pmakhov 128aec5ef7 externalize api key 2017-12-04 11:56:21 -05:00
Pavel Makhov 10ffee904f Few small improvements for weather widget 2017-06-05 21:14:51 -04:00
streetturtle d2632b5c75 More details to popup message 2017-03-14 21:53:18 -04:00
Pavel Makhov 332075a603 Start timer 2017-03-03 13:33:27 -05:00
Pavel Makhov b6458cbe0c fix weather widget crash with no internet connection 2017-02-18 13:02:03 -05:00
Pavel Makhov b1a4270c4d fix typos in lua doc 2017-02-08 08:56:51 -05:00
streetturtle 1e540af00b weather widget 2017-02-07 20:31:34 -05:00