From 90f79a18c00d9c06d6ce457a9299580045eba7e4 Mon Sep 17 00:00:00 2001 From: Ferenc- Date: Fri, 20 Jul 2018 13:50:47 +0200 Subject: [PATCH 1/2] Add language option to prettyweather --- _site/content/posts/modules/prettyweather.md | 5 +++++ docs/posts/modules/prettyweather/index.html | 5 +++++ weatherservices/prettyweather/widget.go | 11 +++++++---- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/_site/content/posts/modules/prettyweather.md b/_site/content/posts/modules/prettyweather.md index 66a78c1e3..24c0c4cad 100644 --- a/_site/content/posts/modules/prettyweather.md +++ b/_site/content/posts/modules/prettyweather.md @@ -37,6 +37,7 @@ None. refreshInterval: 300 unit: "c" view: 0 + language: "en" ``` ### Attributes @@ -65,3 +66,7 @@ Values: `F` for Fahrenheit, `C` for Celcius. `view`
_Optional_ Wttr.in view configuration.
Values: See `curl wttr.in/:help` for more details. + +`language`
+_Optional_ Wttr.in language configuration.
+Values: See `curl wttr.in/:translation` for more details. diff --git a/docs/posts/modules/prettyweather/index.html b/docs/posts/modules/prettyweather/index.html index fc88defa3..3a1d57f0f 100644 --- a/docs/posts/modules/prettyweather/index.html +++ b/docs/posts/modules/prettyweather/index.html @@ -163,6 +163,7 @@

Configuration

refreshInterval: 300 unit: "c" view: 0 + language: "en"

Attributes

city
@@ -190,6 +191,10 @@

Attributes

Optional Wttr.in view configuration.
Values: See curl wttr.in/:help for more details.

+

language
+Optional Wttr.in language configuration.
+Values: See curl wttr.in/:translation for more details.

+ + view: 0 language: "en"

Attributes